From df1feaf1b71e9a00405b4b5b443a6b3a0588d1f5 Mon Sep 17 00:00:00 2001 From: Vladyslav Vladinov <111443297+SalOne22@users.noreply.github.com> Date: Sun, 15 Oct 2023 14:05:54 +0200 Subject: [PATCH] Updated workflow to use static libjxl --- .github/workflows/rimage.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rimage.yml b/.github/workflows/rimage.yml index c29be36e..a1a1befc 100644 --- a/.github/workflows/rimage.yml +++ b/.github/workflows/rimage.yml @@ -4,9 +4,13 @@ on: push: branches: - main + paths-ignore: + - '**/*.md' pull_request: branches: - main + paths-ignore: + - '**/*.md' jobs: test: @@ -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 @@ -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