Skip to content

Try to fix runners again #124

Try to fix runners again

Try to fix runners again #124

name: Linux Build
on: [workflow_dispatch, pull_request, push]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, ubuntu-22.04]
configuration:
- Release
- ReleaseStatic
- Debug
- DebugStatic
platform:
- 64
- ARM64
runs-on: ${{ matrix.os }}
steps:
- name: Set up Git
uses: actions/checkout@v4
- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt-get install -y uuid-dev
- name: Install vcpkg
uses: lukka/run-vcpkg@v10
with:
vcpkgGitURL: "https://github.com/microsoft/vcpkg.git"
vcpkgGitCommitId: "215a2535590f1f63788ac9bd2ed58ad15e6afdff"
- name: Setup Premake
run: |
git clone https://github.com/premake/premake-core
cd premake-core
make -f Bootstrap.mak linux
cd ..
./premake-core/bin/release/premake5 gmake2
- name: Install Vcpkg Libraries
run: |
vcpkg install
vcpkg install --additional-features=static
- name: Build Project
run: |
make -j $(nproc) config=${{ matrix.configuration }}_${{ matrix.platform }}
- name: Create and Upload Artifact
if: ${{ github.event_name != 'pull_request' }}
uses: actions/upload-artifact@v4
with:
name: BlackTek-Server-${{ matrix.os }}-${{ matrix.configuration }}-${{ matrix.platform }}-${{ github.sha }}
path: |
BlackTek-Server