diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-07-02 14:49:57 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-07-02 14:49:57 +0300 |
commit | 98bb4fafffc2d6d5bc181c5e55140ac1d40b267c (patch) | |
tree | 449e90742ce4fa2657b1df2075cbd93313e24438 /.github/workflows | |
parent | workflows/test: factor out steps + refactoring (diff) | |
download | setup-gcc-98bb4fafffc2d6d5bc181c5e55140ac1d40b267c.tar.gz setup-gcc-98bb4fafffc2d6d5bc181c5e55140ac1d40b267c.zip |
workflows/test: test multiple versions
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/test.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5de83a8..2215272 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,6 +31,35 @@ jobs: - name: Check cc/c++ uses: ./.github/actions/check-cc + versions: + strategy: + matrix: + os: [ubuntu-18.04, ubuntu-20.04] + version: [4.8, 5, 6, 7, 8, 9, 10, 11] + exclude: + - {os: ubuntu-20.04, version: 4.8} + - {os: ubuntu-20.04, version: 5} + - {os: ubuntu-20.04, version: 6} + runs-on: '${{ matrix.os }}' + name: 'Version: ${{ matrix.os }} / ${{ matrix.version }}' + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up GCC + uses: ./ + with: + version: '${{ matrix.version }}' + platform: '${{ matrix.platform }}' + cc: 1 + - name: Build foo.exe + uses: ./.github/actions/build-foo + - name: Run foo.exe + uses: ./.github/actions/run-foo + - name: Check cc/c++ + uses: ./.github/actions/check-cc + with: + version: '${{ matrix.version }}' + cygwin: strategy: matrix: |