update workflow scripts to just fail as early as possible

This commit is contained in:
otavepto 2023-12-25 15:22:02 +02:00
parent 34d15e156e
commit 3426049833
2 changed files with 2 additions and 14 deletions

View File

@ -80,21 +80,18 @@ jobs:
### build (release mode) ### build (release mode)
- name: Build release mode - name: Build release mode
continue-on-error: true
shell: bash shell: bash
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
run: "sudo chmod 777 build_linux.sh && ./build_linux.sh release" run: "sudo chmod 777 build_linux.sh && ./build_linux.sh release"
### package (release mode) ### package (release mode)
- name: Package build (release) - name: Package build (release)
if: success()
shell: bash shell: bash
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
run: sudo chmod 77 package_linux.sh && sudo ./package_linux.sh release run: sudo chmod 77 package_linux.sh && sudo ./package_linux.sh release
### upload artifact/package to github Actions (release mode) ### upload artifact/package to github Actions (release mode)
- name: Upload build pacakge (release) - name: Upload build pacakge (release)
if: success()
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: "build-linux-release-${{ github.sha }}" name: "build-linux-release-${{ github.sha }}"
@ -105,21 +102,18 @@ jobs:
### build (debug mode) ### build (debug mode)
- name: Build debug mode - name: Build debug mode
continue-on-error: true
shell: bash shell: bash
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
run: "sudo chmod 777 build_linux.sh && ./build_linux.sh debug" run: "sudo chmod 777 build_linux.sh && ./build_linux.sh debug"
### package (debug mode) ### package (debug mode)
- name: Package build (debug) - name: Package build (debug)
if: success()
shell: bash shell: bash
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
run: sudo chmod 77 package_linux.sh && sudo ./package_linux.sh debug run: sudo chmod 77 package_linux.sh && sudo ./package_linux.sh debug
### upload artifact/package to github Actions (debug mode) ### upload artifact/package to github Actions (debug mode)
- name: Upload build pacakge (debug) - name: Upload build pacakge (debug)
if: success()
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: "build-linux-debug-${{ github.sha }}" name: "build-linux-debug-${{ github.sha }}"
@ -130,7 +124,7 @@ jobs:
### release (debug + release modes) if this is a tag push ### release (debug + release modes) if this is a tag push
- name: Release - name: Release
if: success() && startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
files: "${{ env.PACKAGE_ROOT_PATH }}/**/*" files: "${{ env.PACKAGE_ROOT_PATH }}/**/*"

View File

@ -86,21 +86,18 @@ jobs:
### build (release mode) ### build (release mode)
- name: Build release mode - name: Build release mode
continue-on-error: true
shell: cmd shell: cmd
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
run: build_win.bat release run: build_win.bat release
### package (release mode) ### package (release mode)
- name: Package build (release) - name: Package build (release)
if: success()
shell: cmd shell: cmd
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
run: package_win.bat release run: package_win.bat release
### upload artifact/package to github Actions (release mode) ### upload artifact/package to github Actions (release mode)
- name: Upload build pacakge (release) - name: Upload build pacakge (release)
if: success()
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: "build-win-release-${{ github.sha }}" name: "build-win-release-${{ github.sha }}"
@ -111,21 +108,18 @@ jobs:
### build (debug mode) ### build (debug mode)
- name: Build debug mode - name: Build debug mode
continue-on-error: true
shell: cmd shell: cmd
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
run: build_win.bat debug run: build_win.bat debug
### package (debug mode) ### package (debug mode)
- name: Package build (debug) - name: Package build (debug)
if: success()
shell: cmd shell: cmd
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
run: package_win.bat debug run: package_win.bat debug
### upload artifact/package to github Actions (debug mode) ### upload artifact/package to github Actions (debug mode)
- name: Upload build pacakge (debug) - name: Upload build pacakge (debug)
if: success()
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: "build-win-debug-${{ github.sha }}" name: "build-win-debug-${{ github.sha }}"
@ -136,7 +130,7 @@ jobs:
### release (debug + release modes) if this is a tag push ### release (debug + release modes) if this is a tag push
- name: Release - name: Release
if: success() && startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
files: "${{ env.PACKAGE_ROOT_PATH }}/**/*" files: "${{ env.PACKAGE_ROOT_PATH }}/**/*"