2024-04-25 05:35:16 +03:00
|
|
|
name: Build project
|
2025-01-13 22:53:59 +02:00
|
|
|
|
2024-04-25 05:35:16 +03:00
|
|
|
on: [push, workflow_dispatch]
|
2025-01-13 22:53:59 +02:00
|
|
|
|
2024-04-25 05:35:16 +03:00
|
|
|
jobs:
|
|
|
|
build:
|
2025-01-13 22:53:59 +02:00
|
|
|
runs-on: node-bookworm
|
2024-04-25 05:35:16 +03:00
|
|
|
steps:
|
2025-01-13 22:53:59 +02:00
|
|
|
- name: Checkout
|
2024-04-25 05:52:45 +03:00
|
|
|
uses: actions/checkout@v4
|
2024-04-25 05:35:16 +03:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
2025-01-13 22:53:59 +02:00
|
|
|
|
2024-04-25 05:35:16 +03:00
|
|
|
- name: Install dependencies
|
2025-01-13 22:53:59 +02:00
|
|
|
run: |
|
2025-01-13 22:57:48 +02:00
|
|
|
apt update
|
2025-01-13 23:02:32 +02:00
|
|
|
apt install -y gcc gcc-multilib g++ g++-multilib \
|
|
|
|
python3 python3-pip python3-setuptools python3-wheel ninja-build
|
2025-01-13 23:04:19 +02:00
|
|
|
pipx install meson
|
2025-01-13 22:53:59 +02:00
|
|
|
|
2024-04-27 15:54:55 +03:00
|
|
|
- name: Build
|
2025-01-13 22:53:59 +02:00
|
|
|
run: ./build-matrix.sh
|
|
|
|
|
2024-04-27 15:54:55 +03:00
|
|
|
- name: Upload binaries
|
2025-01-13 22:53:59 +02:00
|
|
|
uses: forgejo/upload-artifact@v4
|
2024-04-25 05:52:45 +03:00
|
|
|
with:
|
2025-01-13 23:02:32 +02:00
|
|
|
name: binaries_${{github.sha}}.zip
|
2024-04-27 15:54:55 +03:00
|
|
|
path: ${{ github.workspace }}/hl2sdk-starter/bin/*.so
|
2024-04-25 05:35:16 +03:00
|
|
|
|