+ reorder steps to upload artifact after build

+ use commit hash in artifact name
This commit is contained in:
ota 2023-12-16 06:22:06 +02:00 committed by otavepto
parent c408cc4808
commit 69b29efc26

View File

@ -87,7 +87,6 @@ jobs:
path: build-win-deps path: build-win-deps
fail-on-cache-miss: true fail-on-cache-miss: true
### build
- name: Clone third-party build helpers (common/win) - name: Clone third-party build helpers (common/win)
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
@ -96,29 +95,30 @@ jobs:
path: "${{env.THIRD_PARTY_BASE_DIR}}/common/win" path: "${{env.THIRD_PARTY_BASE_DIR}}/common/win"
lfs: true lfs: true
### build + upload release
- name: Build release mode - name: Build release mode
shell: cmd shell: cmd
working-directory: ${{env.GITHUB_WORKSPACE}} working-directory: ${{env.GITHUB_WORKSPACE}}
run: build_win.bat release run: build_win.bat release
- name: Upload build (release)
uses: actions/upload-artifact@v4
with:
name: "build-win-release-${{ github.sha }}"
path: 'build-win/release/'
if-no-files-found: 'error'
compression-level: 9
### build + upload debug
- name: Build debug mode - name: Build debug mode
shell: cmd shell: cmd
working-directory: ${{env.GITHUB_WORKSPACE}} working-directory: ${{env.GITHUB_WORKSPACE}}
run: build_win.bat debug run: build_win.bat debug
### upload artifacts
- name: Upload build (release)
uses: actions/upload-artifact@v4
with:
name: 'build-win-release'
path: 'build-win/release/'
if-no-files-found: 'error'
compression-level: 9
- name: Upload build (debug) - name: Upload build (debug)
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: 'build-win-debug' name: "build-win-debug-${{ github.sha }}"
path: 'build-win/debug/' path: 'build-win/debug/'
if-no-files-found: 'error' if-no-files-found: 'error'
compression-level: 9 compression-level: 9