Skip to content

Commit

Permalink
Test GNU toolchain for win7/8 compatibility
Browse files Browse the repository at this point in the history
Test GNU toolchain for win7/8 compatibility
  • Loading branch information
johnmave126 committed Jan 24, 2021
1 parent 1f51914 commit c22a19b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ jobs:
name: x64
- target: i686-pc-windows-msvc
name: x86
- target: x86_64-pc-windows-gnu
name: x64-gnu
- target: i686-pc-windows-gnu
name: x86-gnu

steps:
- name: Checkout
Expand All @@ -70,10 +74,20 @@ jobs:
uses: actions-rs/toolchain@v1
with:
target: ${{ matrix.edition.target }}
toolchain: stable
toolchain: stable-${{ matrix.edition.target }}
default: true
override: true

- name: Add mingw32 to path for i686-gnu
run: echo "C:\msys64\mingw32\bin" >> $GITHUB_PATH
if: matrix.edition.target == 'i686-pc-windows-gnu'
shell: bash

- name: Add mingw64 to path for x86_64-gnu
run: echo "C:\msys64\mingw64\bin" >> $GITHUB_PATH
if: matrix.edition.target == 'x86_64-pc-windows-gnu'
shell: bash

- name: Build
run: cargo build --target ${{ matrix.edition.target }} --release

Expand Down

0 comments on commit c22a19b

Please sign in to comment.