]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Move variables to env [CI]
authorfennecdjay <fennecdjay@gwion.tk>
Mon, 26 Oct 2020 11:26:50 +0000 (12:26 +0100)
committerfennecdjay <fennecdjay@gwion.tk>
Mon, 26 Oct 2020 11:26:50 +0000 (12:26 +0100)
.github/workflows/bot.yml
.github/workflows/linux.yml
.github/workflows/macos.yml
.github/workflows/windows.yml

index bad284bfa5c764bde4c54a8cfd77901a73964e7b..dc29e1fa95a6d48f0b5b3504c5c8b9774cf27241 100644 (file)
@@ -1,4 +1,3 @@
-
 name: Update Bot
 
 on:
index 260f2ee3c90118947f776189f030d7c668bfc48a..831a2e331290f33dd6c34b03aaf7f3bebc9e6e03 100644 (file)
@@ -15,6 +15,10 @@ jobs:
     name: Linux ${{ matrix.cc }} ${{ matrix.double && 'double' || 'float '}}
     runs-on: ubuntu-latest
     if: "!contains(github.event.head_commit.message, '[skip ci]')"
+    env:
+      CC: ${{ matrix.cc }}
+      USE_DOUBLE: ${{ matrix.double }}
+      USE_DEBUG: 1
     strategy:
       matrix:
         cc: [gcc, clang]
@@ -29,10 +33,6 @@ jobs:
 
     - name: Build
       run: make
-      env:
-        CC: ${{ matrix.cc }}
-        USE_DOUBLE: ${{ matrix.double }}
-        USE_DEBUG: 1
 
     - name: Test
       run: make test
index 5e02268800b1c0f77221d07b7f9737819fd43f77..380834d51b23fc621927dcec5851b1fa54f782ac 100644 (file)
@@ -15,6 +15,10 @@ jobs:
     name: MacOS ${{ matrix.cc }} ${{ matrix.double && 'double' || 'float '}}
     runs-on: macos-latest
     if: "!contains(github.event.head_commit.message, '[skip ci]')"
+    env:
+      CC: ${{ matrix.cc }}
+      USE_DOUBLE: ${{ matrix.double }}
+      USE_DEBUG: 1
     strategy:
       matrix:
         cc: [gcc, clang]
@@ -29,10 +33,6 @@ jobs:
 
     - name: Build
       run: make
-      env:
-        CC: ${{ matrix.cc }}
-        USE_DOUBLE: ${{ matrix.double }}
-        USE_DEBUG: 1
 
     - name: Test
       run: make test
index eaf4313ac632fac16d5a238140271f00afabd3cb..1492f6a206c37e5f24683cb47475283b8f6f00d9 100644 (file)
@@ -15,6 +15,10 @@ jobs:
     name: Windows ${{ matrix.double && 'double' || 'float '}}
     runs-on: windows-latest
     if: "!contains(github.event.head_commit.message, '[skip ci]')"
+    env:
+      CC: gcc
+      USE_DOUBLE: ${{ matrix.double }}
+      BUILD_ON_WINDOWS: 1
     strategy:
       matrix:
         double: [0, 1]
@@ -28,13 +32,6 @@ jobs:
 
       - name: Build
         run: make
-        env:
-          CC: gcc
-          USE_DOUBLE: ${{ matrix.double }}
-          BUILD_ON_WINDOWS: 1
 
       - name: Test
         run: make test
-        env:
-          CC: gcc
-          BUILD_ON_WINDOWS: 1