]> git.stg.codes - stg.git/commitdiff
Move strategy into job.
authorMaksym Mamontov <madf@madf.info>
Fri, 19 Aug 2022 18:00:25 +0000 (21:00 +0300)
committerMaksym Mamontov <madf@madf.info>
Fri, 19 Aug 2022 18:00:25 +0000 (21:00 +0300)
.github/workflows/buildtest.yml

index a321898b60aeaaaeeb6ee4ce9df4b6026633ceae..ac41663c99651c830892c7778404da2d9af25ced 100644 (file)
@@ -6,12 +6,6 @@ env:
   # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
   BUILD_TYPE: Release
 
   # 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
 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
 
     # 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
 
     steps:
     - uses: actions/checkout@v2