Apply changes meant for e7fd3265a54c9be40d1b1de51ed6c6b52ce03f96 #156
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linux Build | |
on: [workflow_dispatch, pull_request, push] | |
jobs: | |
linux_build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-24.04, ubuntu-22.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set up Git | |
uses: actions/checkout@v4 | |
- name: Install Uuid | |
run: | | |
if ! pkg-config --exists uuid; then | |
echo "libuuid is not installed. Installing it..." | |
sudo apt-get update | |
sudo apt-get install -y uuid-dev | |
else | |
echo "libuuid is already installed." | |
fi | |
- name: Ensure Correct VCPKG Baseline | |
uses: lukka/run-vcpkg@main | |
with: | |
vcpkgGitURL: "https://github.com/microsoft/vcpkg.git" | |
vcpkgGitCommitId: ${{ steps.vcpkg-step.outputs.vcpkgGitCommitId }} | |
- 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 | |
- name: Compile Release 64 | |
run: | | |
make -j $(nproc) config=release_64 | |
- name: Compile Debug 64 | |
run: | | |
make -j $(nproc) config=debug_64 |