ci: move 'set -eu' to after source_cmd
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index ab73718..71fb85d 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -104,8 +104,8 @@ jobs:
- name: Run build-time tests (CMake)
if: "! matrix.platform.autotools"
run: |
- set -eu
${{ matrix.platform.source_cmd }}
+ set -eu
export SDL_TESTS_QUICK=1
ctest -VV --test-dir build/
if test "${{ runner.os }}" = "Linux"; then
@@ -122,8 +122,8 @@ jobs:
- name: Configure (Autotools)
if: matrix.platform.autotools
run: |
- set -eu
${{ matrix.platform.source_cmd }}
+ set -eu
rm -fr build-autotools
mkdir build-autotools
./autogen.sh
@@ -154,8 +154,8 @@ jobs:
- name: Build (Autotools)
if: matrix.platform.autotools
run: |
- set -eu
${{ matrix.platform.source_cmd }}
+ set -eu
parallel="$(getconf _NPROCESSORS_ONLN)"
make -j"${parallel}" -C build-autotools V=1
if test "${{ runner.os }}" != "macOS" ; then
@@ -164,8 +164,8 @@ jobs:
- name: Run build-time tests (Autotools)
if: ${{ matrix.platform.autotools && (runner.os != 'macOS') }}
run: |
- set -eu
${{ matrix.platform.source_cmd }}
+ set -eu
curdir="$(pwd)"
parallel="$(getconf _NPROCESSORS_ONLN)"
export SDL_TESTS_QUICK=1
@@ -177,8 +177,8 @@ jobs:
- name: Install (Autotools)
if: matrix.platform.autotools
run: |
- set -eu
${{ matrix.platform.source_cmd }}
+ set -eu
curdir="$(pwd)"
parallel="$(getconf _NPROCESSORS_ONLN)"
make -j"${parallel}" -C build-autotools install V=1
@@ -219,8 +219,8 @@ jobs:
- name: Run installed-tests (Autotools)
if: "runner.os == 'Linux' && matrix.platform.autotools"
run: |
- set -eu
${{ matrix.platform.source_cmd }}
+ set -eu
parallel="$(getconf _NPROCESSORS_ONLN)"
sudo make -j"${parallel}" -C build-autotools install
sudo make -j"${parallel}" -C build-autotools/test install