Skip to content

Commit

Permalink
Updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SalOne22 committed Oct 15, 2023
1 parent bef4e00 commit acfc486
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/rimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- x86_64-unknown-linux-gnu
- aarch64-unknown-linux-gnu
- x86_64-pc-windows-gnu
- x86_64-pc-windows-msvc
- x86_64-apple-darwin
- aarch64-apple-darwin

Expand All @@ -32,6 +33,8 @@ jobs:
target-apt-arch: arm64
- target: x86_64-pc-windows-gnu
os: windows-latest
- target: x86_64-pc-windows-msvc
os: windows-2019
- target: x86_64-apple-darwin
os: macos-latest
- target: aarch64-apple-darwin
Expand Down Expand Up @@ -76,19 +79,31 @@ jobs:
if: matrix.target == 'x86_64-apple-darwin'
run: brew install jpeg-xl

- name: Setup libjxl πŸ§‘β€πŸ’» (msvc)
if: endsWith(matrix.target, '-msvc')
run: brew install jpeg-xl

- name: Setup rust toolchain πŸ¦€
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: ${{ matrix.target }}

- name: Build πŸ—
- name: Build πŸ— (not msvc)
if: matrix.target != 'x86_64-pc-windows-msvc'
uses: actions-rs/cargo@v1
with:
command: build
args: --all-features --release

- name: Build πŸ— (msvc)
if: matrix.target == 'x86_64-pc-windows-msvc'
shell: cmd
run: |
call "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
cargo build --features avif,webp --release
- name: Test πŸ§ͺ
if: matrix.target == 'x86_64-unknown-linux-gnu' || matrix.target == 'x86_64-apple-darwin'
uses: actions-rs/cargo@v1
Expand Down

0 comments on commit acfc486

Please sign in to comment.