Skip to content

Commit

Permalink
workflows/test: add a job to test different versions
Browse files Browse the repository at this point in the history
  • Loading branch information
egor-tensin committed Jan 7, 2023
1 parent e35dfca commit 84c781b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 84c781b

Please sign in to comment.