From 77e3dc62d556a680a94e28e0b6ed25627afd21ab Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 3 Jul 2021 01:48:08 +0300 Subject: support installing multiple versions --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 77edef1..e9ef424 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,6 +34,36 @@ jobs: - name: Check cc/c++ uses: ./.github/actions/check-cc + versions: + strategy: + matrix: + os: [ubuntu-18.04, ubuntu-20.04] + version: ['5.0', '6.0', 7, 8, 9, 10, 11, 12] + exclude: + - {os: ubuntu-20.04, version: '5.0'} + - {os: ubuntu-20.04, version: '6.0'} + - {os: ubuntu-20.04, version: 7} + - {os: ubuntu-20.04, version: 8} + runs-on: '${{ matrix.os }}' + name: 'Version: ${{ matrix.os }} / ${{ matrix.version }}' + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Clang + 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: -- cgit v1.2.3