Skip to content

Integrate with Microkit higher-level tooling #1232

Integrate with Microkit higher-level tooling

Integrate with Microkit higher-level tooling #1232

Workflow file for this run

# Copyright 2024, UNSW
#
# SPDX-License-Identifier: BSD-2-Clause
# Build and test example code
name: Examples
on:
pull_request:
push:
branches: [ "main" ]
jobs:
build_linux_x86_64:
name: Linux x86-64
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download Microkit SDK
run: |
wget https://trustworthy.systems/Downloads/microkit/microkit-sdk-1.4.1-dev.54+a8b7894-linux-x86-64.tar.gz
tar xf microkit-sdk-1.4.1-dev.54+a8b7894-linux-x86-64.tar.gz
- name: Install dependencies (via apt)
run: sudo apt update && sudo apt install -y make llvm lld imagemagick device-tree-compiler
- name: Download and install AArch64 GCC toolchain
run: |
wget -O aarch64-toolchain.tar.xz https://trustworthy.systems/Downloads/microkit/arm-gnu-toolchain-12.3.rel1-x86_64-aarch64-none-elf.tar.xz
tar xf aarch64-toolchain.tar.xz
echo "$(pwd)/arm-gnu-toolchain-12.3.rel1-x86_64-aarch64-none-elf/bin" >> $GITHUB_PATH
- name: Install Zig
uses: mlugg/[email protected]
with:
version: master
- name: Setup pyenv
run: |
python3 -m venv venv
./venv/bin/pip install -i https://test.pypi.org/simple/ sdfgen
- name: Build and run examples
run: ./ci/examples.sh ${PWD}/microkit-sdk-1.4.1-dev.54+a8b7894-linux-x86-64
shell: bash
env:
PYTHON = $(pwd)/venv/bin/python

Check failure on line 44 in .github/workflows/examples.yaml

View workflow run for this annotation

GitHub Actions / Examples

Invalid workflow file

The workflow is not valid. .github/workflows/examples.yaml (Line: 44, Col: 11): Unexpected value 'PYTHON = $(pwd)/venv/bin/python' .github/workflows/examples.yaml (Line: 87, Col: 11): Unexpected value 'PYTHON = $(pwd)/venv/bin/python'
build_linux_x86_64_nix:
name: Linux x86-64 (Nix)
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Nix
uses: cachix/install-nix-action@v27
- name: Build and run examples
run: nix develop -c bash -c './ci/examples.sh $MICROKIT_SDK'
shell: bash
build_macos_arm64:
name: macOS ARM64
runs-on: macos-14
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download Microkit SDK
run: |
wget https://trustworthy.systems/Downloads/microkit/microkit-sdk-1.4.1-dev.54+a8b7894-macos-aarch64.tar.gz
tar xf microkit-sdk-1.4.1-dev.54+a8b7894-macos-aarch64.tar.gz
- name: Install dependencies (via Homebrew)
run: |
brew install llvm lld make imagemagick pipx
echo "/opt/homebrew/opt/llvm/bin:$PATH" >> $GITHUB_PATH
- name: Install Zig
uses: mlugg/[email protected]
with:
version: master
- name: Setup pyenv
run: |
python3 -m venv venv
./venv/bin/pip install -i https://test.pypi.org/simple/ sdfgen
- name: Download and install AArch64 GCC toolchain
run: |
wget -O aarch64-toolchain.tar.xz https://trustworthy.systems/Downloads/microkit/arm-gnu-toolchain-12.3.rel1-darwin-arm64-aarch64-none-elf.tar.xz
tar xf aarch64-toolchain.tar.xz
echo "$(pwd)/arm-gnu-toolchain-12.3.rel1-darwin-arm64-aarch64-none-elf/bin" >> $GITHUB_PATH
- name: Build and run examples
run: ./ci/examples.sh ${PWD}/microkit-sdk-1.4.1-dev.54+a8b7894-macos-aarch64
shell: bash
env:
PYTHON = $(pwd)/venv/bin/python