Skip to content

Temp: Only build tracy-exe #4

Temp: Only build tracy-exe

Temp: Only build tracy-exe #4

Workflow file for this run

name: Build Native Binaries

Check failure on line 1 in .github/workflows/build-native.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-native.yml

Invalid workflow file

(Line: 18, Col: 13): Unexpected symbol: '"Linux"'. Located at position 14 within expression: runner.os == "Linux", (Line: 24, Col: 13): Unexpected symbol: '"macOS"'. Located at position 14 within expression: runner.os == "macOS"
on:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ubuntu-24.04, windows-2025, macos-15]
output: [tracy-exe]
runs-on: ${{ matrix.os }}
steps:
- name: Setup dependencies (Linux)
if: runner.os == "Linux"
run: |
sudo apt-get update
sudo apt-get install -y ccache mold libglfw3-dev libfreetype-dev libcapstone-dev libdbus-1-dev libtbb-dev libgtk-3-dev debuginfod libwayland-dev libxkbcommon-dev libglvnd-dev wayland-protocols
- name: Setup dependencies (Mac)
if: runner.os == "macOS"
run: |
brew update
brew install ccache mold glfw freetype capstone tbb
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: "10.0.100-rc.2.25502.107"
- name: Cache .git folder
uses: actions/cache@v4
with:
path: .git
key: git-{{ hashFiles('**/.gitmodules') }}
- name: Checkout repository
uses: actions/checkout@v5.0.0
with:
repository: Exanite-GameDev/Exanite.GameDev
token: ${{ secrets._GITHUB_TOKEN }}
submodules: recursive
lfs: false
- name: Setup build system
run: dotnet build projects/Exanite.Engine.BuildSystem
- name: Build
run: dotnet run --project projects/Exanite.Engine.BuildSystem -- build-${{ matrix.output }}
- name: Upload artifacts
uses: actions/upload-artifact@v5
with:
name: ${{ matrix.output }}-${{ matrix.os }}
path: outputs/runtimes
combine-outputs:
runs-on: ubuntu-latest
if: always()
needs: [build]
steps:
- name: Download artifacts
uses: actions/download-artifact@v5
with:
path: artifacts
- name: Combine into one folder
run: |
mkdir combined
cp -r artifacts/*/* combined
- name: Upload artifacts
uses: actions/upload-artifact@v5
with:
name: combined
path: combined