mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 05:04:01 +08:00
update workflow scripts to just fail as early as possible
This commit is contained in:
parent
34d15e156e
commit
3426049833
8
.github/workflows/build-linux.yml
vendored
8
.github/workflows/build-linux.yml
vendored
@ -80,21 +80,18 @@ jobs:
|
||||
|
||||
### build (release mode)
|
||||
- name: Build release mode
|
||||
continue-on-error: true
|
||||
shell: bash
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: "sudo chmod 777 build_linux.sh && ./build_linux.sh release"
|
||||
|
||||
### package (release mode)
|
||||
- name: Package build (release)
|
||||
if: success()
|
||||
shell: bash
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: sudo chmod 77 package_linux.sh && sudo ./package_linux.sh release
|
||||
|
||||
### upload artifact/package to github Actions (release mode)
|
||||
- name: Upload build pacakge (release)
|
||||
if: success()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: "build-linux-release-${{ github.sha }}"
|
||||
@ -105,21 +102,18 @@ jobs:
|
||||
|
||||
### build (debug mode)
|
||||
- name: Build debug mode
|
||||
continue-on-error: true
|
||||
shell: bash
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: "sudo chmod 777 build_linux.sh && ./build_linux.sh debug"
|
||||
|
||||
### package (debug mode)
|
||||
- name: Package build (debug)
|
||||
if: success()
|
||||
shell: bash
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: sudo chmod 77 package_linux.sh && sudo ./package_linux.sh debug
|
||||
|
||||
### upload artifact/package to github Actions (debug mode)
|
||||
- name: Upload build pacakge (debug)
|
||||
if: success()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: "build-linux-debug-${{ github.sha }}"
|
||||
@ -130,7 +124,7 @@ jobs:
|
||||
|
||||
### release (debug + release modes) if this is a tag push
|
||||
- name: Release
|
||||
if: success() && startsWith(github.ref, 'refs/tags/')
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: "${{ env.PACKAGE_ROOT_PATH }}/**/*"
|
||||
|
8
.github/workflows/build-win.yml
vendored
8
.github/workflows/build-win.yml
vendored
@ -86,21 +86,18 @@ jobs:
|
||||
|
||||
### build (release mode)
|
||||
- name: Build release mode
|
||||
continue-on-error: true
|
||||
shell: cmd
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: build_win.bat release
|
||||
|
||||
### package (release mode)
|
||||
- name: Package build (release)
|
||||
if: success()
|
||||
shell: cmd
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: package_win.bat release
|
||||
|
||||
### upload artifact/package to github Actions (release mode)
|
||||
- name: Upload build pacakge (release)
|
||||
if: success()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: "build-win-release-${{ github.sha }}"
|
||||
@ -111,21 +108,18 @@ jobs:
|
||||
|
||||
### build (debug mode)
|
||||
- name: Build debug mode
|
||||
continue-on-error: true
|
||||
shell: cmd
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: build_win.bat debug
|
||||
|
||||
### package (debug mode)
|
||||
- name: Package build (debug)
|
||||
if: success()
|
||||
shell: cmd
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: package_win.bat debug
|
||||
|
||||
### upload artifact/package to github Actions (debug mode)
|
||||
- name: Upload build pacakge (debug)
|
||||
if: success()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: "build-win-debug-${{ github.sha }}"
|
||||
@ -136,7 +130,7 @@ jobs:
|
||||
|
||||
### release (debug + release modes) if this is a tag push
|
||||
- name: Release
|
||||
if: success() && startsWith(github.ref, 'refs/tags/')
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: "${{ env.PACKAGE_ROOT_PATH }}/**/*"
|
||||
|
Loading…
Reference in New Issue
Block a user