Add workflow for building examples #1
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: Godot Sandbox Examples | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
env: | |
CC: gcc-14-riscv64-linux-gnu | |
CXX: g++-14-riscv64-linux-gnu | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y g++-14-riscv64-linux-gnu | |
- name: Build asm example | |
working-directory: ${{github.workspace}}/asm | |
run: | | |
cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
cmake --build build --parallel 4 | |
- name: Build libtcc example | |
working-directory: ${{github.workspace}}/libtcc | |
run: | | |
cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
cmake --build build --parallel 4 | |
- name: Build luajit | |
working-directory: ${{github.workspace}}/luajit | |
run: | | |
cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
cmake --build build --parallel 4 | |
- name: Build Mir example | |
working-directory: ${{github.workspace}}/mir | |
run: | | |
cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
cmake --build build --parallel 4 |