From 181d207f7700b6909d86b8029d3a37952c2168eb Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 26 Oct 2020 12:26:50 +0100 Subject: [PATCH] :wrench: Move variables to env [CI] --- .github/workflows/bot.yml | 1 - .github/workflows/linux.yml | 8 ++++---- .github/workflows/macos.yml | 8 ++++---- .github/workflows/windows.yml | 11 ++++------- 4 files changed, 12 insertions(+), 16 deletions(-) diff --git a/.github/workflows/bot.yml b/.github/workflows/bot.yml index bad284bf..dc29e1fa 100644 --- a/.github/workflows/bot.yml +++ b/.github/workflows/bot.yml @@ -1,4 +1,3 @@ - name: Update Bot on: diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 260f2ee3..831a2e33 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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 diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 5e022688..380834d5 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -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 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index eaf4313a..1492f6a2 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -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 -- 2.43.0