From: Maksym Mamontov Date: Fri, 19 Aug 2022 18:00:25 +0000 (+0300) Subject: Move strategy into job. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/be1b46cc784e43cd28c5521bdcde79bd7463fb40 Move strategy into job. --- diff --git a/.github/workflows/buildtest.yml b/.github/workflows/buildtest.yml index a321898b..ac41663c 100644 --- a/.github/workflows/buildtest.yml +++ b/.github/workflows/buildtest.yml @@ -6,12 +6,6 @@ env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) BUILD_TYPE: Release -strategy: - matrix: - compiler: - - { CC: gcc, CXX: g++ } - - { CC: clang, CXX: clang++ } - jobs: build: # The CMake configure and build commands are platform agnostic and should work equally @@ -20,6 +14,12 @@ jobs: # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix runs-on: ubuntu-latest + strategy: + matrix: + compiler: + - { CC: gcc, CXX: g++ } + - { CC: clang, CXX: clang++ } + steps: - uses: actions/checkout@v2