Skip to content

Build

Build #9

Workflow file for this run

name: Build
on:
workflow_dispatch:
workflow_call:
jobs:
build-windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Download Banjo toolchain
run: Invoke-WebRequest -OutFile banjo-x86_64-windows.zip https://github.com/chnoblouch/banjo-lang/releases/latest/download/banjo-x86_64-windows.zip
- name: Extract Banjo toolchain
run: Expand-Archive .\banjo-x86_64-windows.zip $ENV:USERPROFILE
- name: Add Banjo toolchain to PATH
run: echo "$ENV:USERPROFILE\banjo-x86_64-windows\bin" | Out-File -FilePath $ENV:GITHUB_PATH -Encoding utf8 -Append
- name: Build OpenXR runtime
working-directory: "${{ github.workspace }}/openxr_runtime"
run: banjo build
- name: Build camera capture library
working-directory: "${{ github.workspace }}/camera_capture"
run: banjo build
- name: Build display surface library
working-directory: "${{ github.workspace }}/display_surface"
run: banjo build
- name: Set up tracker venv
working-directory: "${{ github.workspace }}/tracker"
run: |
python -m venv venv
./venv/Scripts/pip install -r requirements.txt
- name: Package
run: python package.py
- name: Archive
run: 7z a aethervr-x86_64-windows.zip aethervr-x86_64-windows
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: build-x86_64-windows
path: aethervr-x86_64-windows.zip