mirror of
https://github.com/Source2ZE/MovementUnlocker.git
synced 2026-09-27 20:57:04 +02:00
Migrate to build containers & start SteamRT4 builds
This commit is contained in:
parent
a2a78ed01b
commit
6148f39ad3
2 changed files with 29 additions and 22 deletions
|
|
@ -4,26 +4,31 @@ on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: ${{ matrix.name }} Build
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
container: ${{ matrix.container }}
|
container: ${{ matrix.container }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-2022, ubuntu-latest]
|
|
||||||
include:
|
include:
|
||||||
- os: windows-2022
|
- os: windows-latest
|
||||||
|
name: Windows
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
container: registry.gitlab.steamos.cloud/steamrt/sniper/sdk
|
name: SteamRT3
|
||||||
|
container: ghcr.io/source2ze/build-containers:steamrt3
|
||||||
|
- os: ubuntu-latest
|
||||||
|
name: SteamRT4
|
||||||
|
container: ghcr.io/source2ze/build-containers:steamrt4
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
path: MovementUnlocker
|
path: MovementUnlocker
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Checkout Metamod
|
- name: Checkout Metamod
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
repository: alliedmodders/metamod-source
|
repository: alliedmodders/metamod-source
|
||||||
ref: master
|
ref: master
|
||||||
|
|
@ -31,38 +36,35 @@ jobs:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Checkout HL2SDK
|
- name: Checkout HL2SDK
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
repository: alliedmodders/hl2sdk
|
repository: alliedmodders/hl2sdk
|
||||||
ref: cs2
|
ref: cs2
|
||||||
path: hl2sdk-cs2
|
path: hl2sdk-cs2
|
||||||
|
|
||||||
- name: Checkout AMBuild
|
- name: Checkout AMBuild
|
||||||
uses: actions/checkout@v4
|
if: matrix.os == 'windows-latest'
|
||||||
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
repository: alliedmodders/ambuild
|
repository: alliedmodders/ambuild
|
||||||
path: ambuild
|
path: ambuild
|
||||||
|
|
||||||
- name: Install AMBuild
|
- name: Install AMBuild
|
||||||
shell: bash
|
if: matrix.os == 'windows-latest'
|
||||||
run: |
|
run: pip install setuptools && cd ambuild && python setup.py install && cd ..
|
||||||
if [ "$RUNNER_OS" == "Windows" ]; then
|
|
||||||
pip install setuptools
|
|
||||||
fi
|
|
||||||
cd ambuild && python setup.py install && cd ..
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: MovementUnlocker
|
working-directory: MovementUnlocker
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
python ../configure.py --enable-optimize --symbol-files --sdks cs2
|
python ../configure.py --enable-optimize --sdks cs2
|
||||||
ambuild
|
ambuild
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: ${{ runner.os }}
|
name: ${{ matrix.name }}
|
||||||
path: MovementUnlocker/build/package
|
path: MovementUnlocker/build/package
|
||||||
|
|
||||||
release:
|
release:
|
||||||
|
|
@ -73,15 +75,20 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v8
|
||||||
|
|
||||||
- name: Package
|
- name: Package
|
||||||
run: |
|
run: |
|
||||||
version=`echo $GITHUB_REF | sed "s/refs\/tags\///"`
|
version=`echo $GITHUB_REF | sed "s/refs\/tags\///"`
|
||||||
ls -Rall
|
ls -Rall
|
||||||
if [ -d "./Linux/" ]; then
|
if [ -d "./SteamRT3/" ]; then
|
||||||
cd ./Linux/
|
cd ./SteamRT3/
|
||||||
tar -czf ../${{ github.event.repository.name }}-${version}-linux.tar.gz *
|
tar -czf ../${{ github.event.repository.name }}-${version}-steamrt3.tar.gz *
|
||||||
|
cd -
|
||||||
|
fi
|
||||||
|
if [ -d "./SteamRT4/" ]; then
|
||||||
|
cd ./SteamRT4/
|
||||||
|
tar -czf ../${{ github.event.repository.name }}-${version}-steamrt4.tar.gz *
|
||||||
cd -
|
cd -
|
||||||
fi
|
fi
|
||||||
if [ -d "./Windows/" ]; then
|
if [ -d "./Windows/" ]; then
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit a57b3095a6fc31a98b13e2d73ebb668dac4f1300
|
Subproject commit 20b3a014264b38908c4a5d4eb263ba2c488f3dc1
|
||||||
Loading…
Add table
Add a link
Reference in a new issue