mirror of https://github.com/rusefi/rusefi-1.git
Properly catch simulator build failure (#1716)
* catch error * file still returns 0 if not found
This commit is contained in:
parent
b2f4491492
commit
a0fbd8a81e
|
@ -19,7 +19,7 @@ jobs:
|
|||
|
||||
- name: Compile Simulator
|
||||
working-directory: ./simulator/
|
||||
run: sh compile.sh
|
||||
run: bash compile.sh
|
||||
|
||||
- name: Upload built simulator
|
||||
uses: actions/upload-artifact@v2
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
rm -f build/rusefi_simulator.exe
|
||||
make -j4 -r
|
||||
[ $? -eq 0 ] || { echo "Simulator compilation failed"; exit 1; }
|
||||
file build/rusefi_simulator
|
||||
echo "TIMESTAMP $(date "+%D %T.%2N") just compiled rusefi simulator"
|
||||
|
|
Loading…
Reference in New Issue