Skip to content

Commit

Permalink
Combine OS artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
nosoop committed Jul 11, 2024
1 parent 882b199 commit 5e96ddf
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions .github/workflows/build-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,19 @@ jobs:
- os: ubuntu-20.04
target_arch: x86
os_short: linux
package_ext: tar.gz

- os: ubuntu-20.04
target_arch: x86_64
os_short: linux64
package_ext: x64.tar.gz

- os: windows-latest
target_arch: x86
os_short: win
package_ext: zip
vs_dev_arch: x86

- os: windows-latest
target_arch: x86_64
os_short: win64
package_ext: x64.zip
vs_dev_arch: x64

steps:
Expand Down Expand Up @@ -172,6 +168,40 @@ jobs:
python3 ../configure.py --sdks=tf2 --sm-path="${{ github.workspace }}/sourcemod" --mms-path="${{ github.workspace }}/mmsource" --symbol-files --enable-optimize --hl2sdk-manifest-path="${{ github.workspace }}/hl2sdk-manifests" --targets ${{ matrix.target_arch }}
ambuild
- name: Upload Build Artifact
id: upload-build-artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os_short }}-${{ matrix.target_arch }}
path: src/build/package

combine_packages:
name: Upload assets for for ${{ matrix.os_short }}
needs: [build, create_release]
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- windows-latest
include:
- os: ubuntu-20.04
os_short: linux
package_ext: .tar.gz
- os: windows-latest
os_short: win
package_ext: zip

steps:
- name: Download Build Artifacts
uses: actions/download-artifact@v4
with:
path: src/build/package
pattern: ${{ matrix.os_short }}*
merge-multiple: true

- name: Build Package (Windows)
if: runner.os == 'Windows'
working-directory: src/build
Expand Down

0 comments on commit 5e96ddf

Please sign in to comment.