hl2sdk-starter/.forgejo/workflows/build.yml

30 lines
701 B
YAML
Raw Normal View History

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
apt install -y gcc gcc-multilib g++ g++-multilib python3 python3-pip
pip3 python3-setuptools python3-wheel ninja-build
2024-04-25 05:35:16 +03:00
pip3 install --user 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:
2024-04-27 15:54:55 +03:00
name: binaries_${{github.sha}}
path: ${{ github.workspace }}/hl2sdk-starter/bin/*.so
2024-04-25 05:35:16 +03:00