This commit is contained in:
parent
d5eddc8376
commit
d30284328a
2 changed files with 30 additions and 27 deletions
30
.forgejo/workflows/build.yml
Normal file
30
.forgejo/workflows/build.yml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
name: Build project
|
||||||
|
|
||||||
|
on: [push, workflow_dispatch]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: node-bookworm
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: 'recursive'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
apt update
|
||||||
|
apt install -y gcc gcc-multilib g++ g++-multilib \
|
||||||
|
python3 pipx python3-pip python3-setuptools python3-wheel ninja-build
|
||||||
|
pipx install meson
|
||||||
|
pipx ensurepath
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: ./build-matrix.sh
|
||||||
|
|
||||||
|
- name: Upload binaries
|
||||||
|
uses: forgejo/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: binaries_${{github.sha}}.zip
|
||||||
|
path: ${{ github.workspace }}/hl2sdk-starter/bin/*.so
|
||||||
|
|
27
.github/workflows/build.yml
vendored
27
.github/workflows/build.yml
vendored
|
@ -1,27 +0,0 @@
|
||||||
name: Build project
|
|
||||||
on: [push, workflow_dispatch]
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout this repo
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
path: 'hl2sdk-starter'
|
|
||||||
submodules: 'recursive'
|
|
||||||
- name: Install dependencies
|
|
||||||
run: >
|
|
||||||
sudo apt-get update &&
|
|
||||||
sudo apt-get install gcc gcc-multilib g++ g++-multilib
|
|
||||||
python3 python3-pip python3-setuptools python3-wheel ninja-build &&
|
|
||||||
pip3 install --user meson
|
|
||||||
- name: Build
|
|
||||||
run: >
|
|
||||||
cd ${{ github.workspace }}/hl2sdk-starter &&
|
|
||||||
./build-matrix.sh
|
|
||||||
- name: Upload binaries
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: binaries_${{github.sha}}
|
|
||||||
path: ${{ github.workspace }}/hl2sdk-starter/bin/*.so
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue