From 0684211c28a62df2f5e3e5357d482922361ac8df Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Thu, 7 Apr 2022 10:25:32 -0700 Subject: [PATCH 1/2] ci: add MinGW build for Rust crate --- .github/workflows/main.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1eba1365..ba8acfec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,7 +50,12 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + include: + - os: ubuntu-latest + - os: macos-latest + - os: windows-latest + - os: windows-latest + target: x86_64-pc-windows-gnu defaults: run: working-directory: rust @@ -58,6 +63,10 @@ jobs: - uses: actions/checkout@v2 with: submodules: recursive + - run: rustup target add ${{ matrix.target }} + if: matrix.target != '' + - run: echo CARGO_BUILD_TARGET=${{ matrix.target }} >> $GITHUB_ENV + if: matrix.target != '' - name: Build Rust crate run: cargo build - name: Test Rust crate From 2308ad91d5ec58f5750ab9bbfd82d29fe0253177 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Thu, 7 Apr 2022 10:36:04 -0700 Subject: [PATCH 2/2] switch to windows-2019 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ba8acfec..aa52e92d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,7 +54,7 @@ jobs: - os: ubuntu-latest - os: macos-latest - os: windows-latest - - os: windows-latest + - os: windows-2019 target: x86_64-pc-windows-gnu defaults: run: