Update workflow to use build script
This commit is contained in:
parent
1cf76863ff
commit
902ed33796
1 changed files with 6 additions and 13 deletions
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
|
@ -2,12 +2,7 @@ name: Build project
|
||||||
on: [push, workflow_dispatch]
|
on: [push, workflow_dispatch]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
runs-on: ubuntu-latest
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
arch: ['x86', 'x64']
|
|
||||||
buildtype: ['debug', 'release']
|
|
||||||
runs-on: ${{matrix.os}}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout this repo
|
- name: Checkout this repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -20,15 +15,13 @@ jobs:
|
||||||
sudo apt-get install gcc gcc-multilib g++ g++-multilib
|
sudo apt-get install gcc gcc-multilib g++ g++-multilib
|
||||||
python3 python3-pip python3-setuptools python3-wheel ninja-build &&
|
python3 python3-pip python3-setuptools python3-wheel ninja-build &&
|
||||||
pip3 install --user meson
|
pip3 install --user meson
|
||||||
- name: Build ${{matrix.arch}} ${{matrix.buildtype}}
|
- name: Build
|
||||||
run: >
|
run: >
|
||||||
cd ${{ github.workspace }}/hl2sdk-starter &&
|
cd ${{ github.workspace }}/hl2sdk-starter &&
|
||||||
meson setup -D arch=${{matrix.arch}} -D buildtype=${{matrix.buildtype}} build &&
|
./build-matrix.sh
|
||||||
cd build &&
|
- name: Upload binaries
|
||||||
meson compile
|
|
||||||
- name: Upload plugin artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{matrix.os}}_${{matrix.arch}}_${{matrix.buildtype}}_${{github.sha}}
|
name: binaries_${{github.sha}}
|
||||||
path: ${{ github.workspace }}/hl2sdk-starter/build/src/server_plugin.so
|
path: ${{ github.workspace }}/hl2sdk-starter/bin/*.so
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue