Skip to content

Commit

Permalink
Without "set -e" the job will always be successful. see vmactions/fre…
Browse files Browse the repository at this point in the history
…ebsd-vm#72 for details
  • Loading branch information
pippocao committed Sep 29, 2024
1 parent e92cba2 commit 3dca8b3
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,9 @@ jobs:
- name: Build for Debian
run: |
while :; do echo "Still compiling..."; sleep 60; done &
PERIODIC_OUTPUT_PID=$!
cd build/test/linux
chmod +x *.sh
./RunTest_GCC.sh
kill $PERIODIC_OUTPUT_PID
build_debian_test_and_run_Clang:
runs-on: ubuntu-latest
Expand All @@ -140,12 +137,9 @@ jobs:
- name: Build for Debian
run: |
while :; do echo "Still compiling..."; sleep 60; done &
PERIODIC_OUTPUT_PID=$!
cd build/test/linux
chmod +x *.sh
./RunTest_Clang.sh
kill $PERIODIC_OUTPUT_PID
#Mac
Expand Down Expand Up @@ -186,17 +180,15 @@ jobs:
pkg install -y gcc cmake bash openjdk11
run: |
set -e -x
pkg info -l openjdk11 | grep 'bin/java'
export JAVA_HOME="/usr/local/openjdk11"
export PATH="$JAVA_HOME/bin:$PATH"
echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV
echo "PATH=$PATH" >> $GITHUB_ENV
cd build/test/unix_like
chmod +x *.sh
while :; do echo "Still compiling..."; sleep 60; done &
PERIODIC_OUTPUT_PID=$!
./RunTest_GCC.sh
kill $PERIODIC_OUTPUT_PID
build_freeBSD_test_and_run_Clang:
runs-on: ubuntu-latest
Expand All @@ -213,14 +205,12 @@ jobs:
pkg install -y gcc cmake bash openjdk11
run: |
set -e -x
pkg info -l openjdk11 | grep 'bin/java'
export JAVA_HOME="/usr/local/openjdk11"
export PATH="$JAVA_HOME/bin:$PATH"
echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV
echo "PATH=$PATH" >> $GITHUB_ENV
cd build/test/unix_like
chmod +x *.sh
while :; do echo "Still compiling..."; sleep 60; done &
PERIODIC_OUTPUT_PID=$!
./RunTest_Clang.sh
kill $PERIODIC_OUTPUT_PID

0 comments on commit 3dca8b3

Please sign in to comment.