Skip to content

[runtime] provide easy to use top-level API for experiments #64

[runtime] provide easy to use top-level API for experiments

[runtime] provide easy to use top-level API for experiments #64

Workflow file for this run

name: Builds
permissions:
contents: read
actions: write
on:
push:
branches: [ "main" ]
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install minimum required cmake and ninja
uses: lukka/get-cmake@latest
with:
cmakeVersion: "~3.21.0"
- name: Install CCache
uses: Chocobo1/setup-ccache-action@v1
with:
ccache_options: |
max_size=400M
compiler_check=none
- name: Install Native Compilers
run: |
sudo apt-get update
sudo apt-get install lld clang cargo
- name: Install Quidditch Toolchain
run: |
mkdir ./toolchain
docker run --rm ghcr.io/opencompl/quidditch/toolchain:main tar -cC /opt/quidditch-toolchain . \
| tar -xC ./toolchain
- name: Configure Megabuild
run: |
cmake -G Ninja -B ${{github.workspace}}/build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DQUIDDITCH_TOOLCHAIN_FILE=${{github.workspace}}/toolchain/ToolchainFile.cmake \
-DOVERRIDE_VENV=ON \
-S ${{github.workspace}}
- name: Build and Test
run: cmake --build ${{github.workspace}}/build --target test