Skip to content

Commit

Permalink
Final fixes for vcpkg install
Browse files Browse the repository at this point in the history
  • Loading branch information
SalOne22 committed Oct 15, 2023
1 parent 12470dd commit 700ad3b
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/rimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,23 @@ jobs:
if: matrix.target == 'x86_64-apple-darwin'
run: brew install jpeg-xl

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

- name: Install libjxl πŸ”ƒ
- name: Install libjxl πŸ§‘β€πŸ’» (msvc)
if: matrix.target == 'x86_64-pc-windows-msvc'
uses: johnwason/vcpkg-action@v5
id: vcpkg
with:
pkgs: libjxl
triplet: x64-windows-static-release
triplet: x64-windows-release
revision: master
token: ${{ github.token }}

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

- name: Build πŸ— (not msvc)
if: matrix.target != 'x86_64-pc-windows-msvc'
uses: actions-rs/cargo@v1
Expand All @@ -112,8 +112,7 @@ jobs:
shell: cmd
run: |
call "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
set DEP_JXL_LIB=${{github.workspace}}\vcpkg\installed\x64-windows-static-release\lib
dir %DEP_JXL_LIB%
set DEP_JXL_LIB=${{github.workspace}}\vcpkg\installed\x64-windows-release\lib
cargo build --all-features --release
- name: Test πŸ§ͺ
Expand Down

0 comments on commit 700ad3b

Please sign in to comment.