Skip to content

Commit

Permalink
Updated workflow to use static libjxl
Browse files Browse the repository at this point in the history
  • Loading branch information
SalOne22 committed Oct 15, 2023
1 parent 336fcb3 commit df1feaf
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/rimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ on:
push:
branches:
- main
paths-ignore:
- '**/*.md'
pull_request:
branches:
- main
paths-ignore:
- '**/*.md'

jobs:
test:
Expand Down Expand Up @@ -86,6 +90,16 @@ jobs:
toolchain: stable
target: ${{ matrix.target }}

- name: Download libjxl 🔃
if: matrix.target == 'x86_64-pc-windows-msvc'
uses: robinraju/release-downloader@v1.8
with:
repository: libjxl/libjxl
tag: v0.8.2
fileName: 'jxl-x64-windows-static.zip'
out-file-path: 'lib'
extract: true

- name: Build 🏗 (not msvc)
if: matrix.target != 'x86_64-pc-windows-msvc'
uses: actions-rs/cargo@v1
Expand All @@ -98,10 +112,11 @@ jobs:
shell: cmd
run: |
call "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
cargo build --features avif,webp --release
set DEP_JXL_LIB=%GITHUB_WORKSPACE%/lib
cargo build --all-features --release
- name: Test 🧪
if: matrix.target == 'x86_64-unknown-linux-gnu' || matrix.target == 'x86_64-apple-darwin'
if: matrix.target == 'x86_64-unknown-linux-gnu' || matrix.target == 'x86_64-apple-darwin' || matrix.target == 'x86_64-pc-windows-msvc'
uses: actions-rs/cargo@v1
with:
command: test
Expand Down

0 comments on commit df1feaf

Please sign in to comment.