Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 52 additions & 6 deletions .github/workflows/build-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,31 @@ jobs:
os:
- ubuntu-20.04
- windows-latest
target_arch:
- x86
- x86_64
include:
- meta_branch: "1.11-dev"
sm_branch: "1.11-dev"
- meta_branch: "1.12-dev"
sm_branch: "1.12-dev"
spcomp_version: "1.11.x"

- 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

- 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
vs_dev_arch: x64

steps:
- name: Prepare env
Expand All @@ -54,7 +67,7 @@ jobs:
run: |
:: See https://github.com/microsoft/vswhere/wiki/Find-VC
for /f "usebackq delims=*" %%i in (`vswhere -latest -property installationPath`) do (
call "%%i"\Common7\Tools\vsdevcmd.bat -arch=x86 -host_arch=x64
call "%%i"\Common7\Tools\vsdevcmd.bat -arch=${{ matrix.vs_dev_arch }} -host_arch=x64
)

:: Loop over all environment variables and make them global.
Expand Down Expand Up @@ -110,8 +123,41 @@ jobs:
run: |
mkdir build
cd build
python3 ../configure.py --sm-path="${{ github.workspace }}/sourcemod" --mms-path="${{ github.workspace }}/mmsource" --symbol-files --enable-optimize
python3 ../configure.py --sm-path="${{ github.workspace }}/sourcemod" --mms-path="${{ github.workspace }}/mmsource" --symbol-files --enable-optimize --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]
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'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull-request-ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
- ubuntu-22.04
- windows-latest
include:
- meta_branch: "1.11-dev"
sm_branch: "1.11-dev"
- meta_branch: "1.12-dev"
sm_branch: "1.12-dev"
spcomp_version: "1.11.x"

- os: ubuntu-20.04
Expand Down
Loading