Skip to content

Commit

Permalink
CI: Use MSYS2 toolchain for x86_64-pc-windows-gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
barrbrain authored and lu-zero committed Dec 13, 2023
1 parent bbe201e commit 390d0c8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,23 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}

- name: Install mingw-w64-x86_64-binutils and mingw-w64-x86_64-gcc
run: |
C:\msys64\usr\bin\pacman.exe --noconfirm --needed -S mingw-w64-x86_64-binutils mingw-w64-x86_64-gcc
if: contains(matrix.toolchain, 'windows-gnu')

- name: Build rav1e
env:
RUSTFLAGS: "-C target-cpu=${{ matrix.target_cpu }}"
CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER: "C:\\msys64\\mingw64\\bin\\x86_64-w64-mingw32-gcc.exe"
CARGO_TARGET_X86_64_PC_WINDOWS_GNU_AR: "C:\\msys64\\mingw64\\bin\\ar.exe"
run: cargo build --profile ${{ matrix.profile }}

- name: Run cargo-c
env:
RUSTFLAGS: "-C target-cpu=${{ matrix.target_cpu }}"
CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER: "C:\\msys64\\mingw64\\bin\\x86_64-w64-mingw32-gcc.exe"
CARGO_TARGET_X86_64_PC_WINDOWS_GNU_AR: "C:\\msys64\\mingw64\\bin\\ar.exe"
run: |
cargo fetch
cargo cinstall --profile ${{ matrix.profile }} --destdir="C:\" --offline
Expand Down

0 comments on commit 390d0c8

Please sign in to comment.