Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
flaribbit authored Oct 28, 2023
1 parent 7832099 commit 1c9055f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: cache vcpkg
- name: Cache vcpkg
uses: actions/cache@v3
with:
key: vcpkg-win64
path: C:/vcpkg/installed
- name: setup vcpkg
- name: Setup vcpkg
run: vcpkg install libheif:x64-windows-static
- name: Build
run: |
Expand All @@ -31,19 +31,21 @@ jobs:
with:
name: win64
path: target/release/imgfind.exe
- name: Prepare Release
if: startsWith(github.ref, 'refs/tags/')
run: cp target/release/imgfind.exe target/release/imgfind-win64.exe
- name: Release
uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
allowUpdates: true
name: win64
artifacts: target/release/imgfind.exe
artifacts: target/release/imgfind-win64.exe

build-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup
- name: Setup
run: |
wget https://github.com/flaribbit/imgfind/releases/download/model/libheif.so -O .github/libheif.so
cargo install cross --git https://github.com/cross-rs/cross
Expand All @@ -53,10 +55,12 @@ jobs:
with:
name: android-aarch64
path: target/aarch64-linux-android/release/imgfind
- name: Prepare Release
if: startsWith(github.ref, 'refs/tags/')
run: cp target/aarch64-linux-android/release/imgfind target/aarch64-linux-android/release/imgfind-android
- name: Release
uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
allowUpdates: true
name: android-aarch64
artifacts: target/aarch64-linux-android/release/imgfind
artifacts: target/aarch64-linux-android/release/imgfind-android

0 comments on commit 1c9055f

Please sign in to comment.