Add new run-time generated C++ API #317
Workflow file for this run
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: Unit Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ${{github.workspace}} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y gcc-12-riscv64-linux-gnu g++-12-riscv64-linux-gnu cmake | |
- name: Configure | |
run: cmake -B ${{github.workspace}}/.build -DCMAKE_BUILD_TYPE=Release | |
- name: Build the unittests | |
run: cmake --build ${{github.workspace}}/.build --parallel 6 | |
- name: Download and extract Godot | |
working-directory: ${{github.workspace}}/tests | |
run: | | |
wget -q https://github.com/godotengine/godot-builds/releases/download/4.3-stable/Godot_v4.3-stable_linux.x86_64.zip | |
unzip -q Godot_v4.3-stable_linux.x86_64.zip | |
- name: Run Gut tests | |
working-directory: ${{github.workspace}}/tests | |
run: | | |
# Run the tests | |
CI=1 GODOT=./Godot_v4.3-stable_linux.x86_64 ./run_unittests.sh |