From 6afb4560d0d816508915eb24d2495408fc969218 Mon Sep 17 00:00:00 2001 From: ota Date: Sat, 16 Dec 2023 09:56:33 +0200 Subject: [PATCH] + friendly name for linux gen emu config workflow + don't fail job on failure of release/debug + update workflows to add on-success condition in upload --- .github/workflows/build-gen_emu_config-linux.yml | 2 +- .github/workflows/build-linux.yml | 10 +++++++--- .github/workflows/build-win.yml | 8 ++++++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-gen_emu_config-linux.yml b/.github/workflows/build-gen_emu_config-linux.yml index 90078ba8..9e8ed917 100644 --- a/.github/workflows/build-gen_emu_config-linux.yml +++ b/.github/workflows/build-gen_emu_config-linux.yml @@ -1,4 +1,4 @@ -name: Generate emu config (Windows) +name: Generate emu config (Linux) on: push: diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 03c4af1a..f799e8f9 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -3,8 +3,8 @@ name: Linux-build on: push: branches: [ "ci_runner" ] - pull_request: - branches: [ "ci_runner" ] + # pull_request: + # branches: [ "ci_runner" ] permissions: contents: read @@ -87,11 +87,13 @@ jobs: ### build + upload release - 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" - name: Upload build (release) + if: success() uses: actions/upload-artifact@v4 with: name: "build-linux-release-${{ github.sha }}" @@ -101,11 +103,13 @@ jobs: ### build + upload debug - name: Build debug mode + continue-on-error: true shell: bash working-directory: ${{ github.workspace }} - run: build_linux.sh debug + run: "sudo chmod 777 build_linux.sh && ./build_linux.sh debug" - name: Upload build (debug) + if: success() uses: actions/upload-artifact@v4 with: name: "build-linux-debug-${{ github.sha }}" diff --git a/.github/workflows/build-win.yml b/.github/workflows/build-win.yml index 8421981c..212997db 100644 --- a/.github/workflows/build-win.yml +++ b/.github/workflows/build-win.yml @@ -3,8 +3,8 @@ name: Windows-build on: push: branches: [ "ci_runner" ] - pull_request: - branches: [ "ci_runner" ] + # pull_request: + # branches: [ "ci_runner" ] permissions: contents: read @@ -93,11 +93,13 @@ jobs: ### build + upload release - name: Build release mode + continue-on-error: true shell: cmd working-directory: ${{ github.workspace }} run: build_win.bat release - name: Upload build (release) + if: success() uses: actions/upload-artifact@v4 with: name: "build-win-release-${{ github.sha }}" @@ -107,11 +109,13 @@ jobs: ### build + upload debug - name: Build debug mode + continue-on-error: true shell: cmd working-directory: ${{ github.workspace }} run: build_win.bat debug - name: Upload build (debug) + if: success() uses: actions/upload-artifact@v4 with: name: "build-win-debug-${{ github.sha }}"