aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-01-07 20:18:28 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-01-07 20:21:54 +0100
commit84c781b557efd538dec66bde06988d81cd3138cf (patch)
treee3facf7702137d4eabc63ba8e1f2c11f86a6d019 /.github/workflows
parentREADME: update (diff)
downloadsetup-mingw-master.tar.gz
setup-mingw-master.zip
workflows/test: add a job to test different versionsHEADv2.2.0v2master
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index af944d5..9e0a3b3 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -76,3 +76,28 @@ jobs:
if: runner.os == 'Windows'
- name: Check cc/c++
uses: ./.github/actions/check-cc
+
+ different_versions:
+ strategy:
+ matrix:
+ version: ['8.1.0', '12.2.0']
+ runs-on: windows-latest
+ name: 'Version: ${{ matrix.version }}'
+ defaults:
+ run:
+ shell: pwsh
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Clean up PATH
+ uses: egor-tensin/cleanup-path@v3
+ - name: Set up MinGW
+ id: setup
+ uses: ./
+ with:
+ version: '${{ matrix.version }}'
+ - name: Build foo.exe
+ run: |
+ & '${{ steps.setup.outputs.gxx }}' -std=c++14 -o foo foo.cpp
+ - name: Run foo.exe
+ uses: ./.github/actions/run-foo