-
Notifications
You must be signed in to change notification settings - Fork 13
78 lines (75 loc) · 3.41 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Copyright 2024, UNSW
#
# SPDX-License-Identifier: BSD-2-Clause
name: CI
on:
pull_request:
push:
branches: [ "main" ]
jobs:
build_examples_linux_x86_64:
name: Build example systems (Linux x86-64 via apt)
runs-on: ubuntu-24.04
steps:
- name: Checkout LionsOS repository
uses: actions/checkout@v4
- name: Download Microkit SDK
run: |
wget https://github.com/seL4/microkit/releases/download/1.4.1/microkit-sdk-1.4.1-linux-x86-64.tar.gz
tar xf microkit-sdk-1.4.1-linux-x86-64.tar.gz
- name: Download and install AArch64 GCC toolchain
run: |
wget -O aarch64-toolchain.tar.gz https://trustworthy.systems/Downloads/microkit/arm-gnu-toolchain-12.3.rel1-x86_64-aarch64-none-elf.tar.xz
tar xf aarch64-toolchain.tar.gz
echo "$(pwd)/arm-gnu-toolchain-12.3.rel1-x86_64-aarch64-none-elf/bin" >> $GITHUB_PATH
- name: Install dependencies (apt)
run: |
sudo apt update && sudo apt install make cmake clang lld llvm device-tree-compiler qemu-system-arm
- name: Run examples script
run: ./ci/examples.sh $(pwd) $(pwd)/microkit-sdk-1.4.1
build_examples_linux_x86_64_nix:
name: Build example systems (Linux x86-64 via Nix)
runs-on: ubuntu-24.04
steps:
- name: Checkout LionsOS repository
uses: actions/checkout@v4
- name: Download Microkit SDK
run: |
wget https://github.com/seL4/microkit/releases/download/1.4.1/microkit-sdk-1.4.1-linux-x86-64.tar.gz
tar xf microkit-sdk-1.4.1-linux-x86-64.tar.gz
- name: Download and install AArch64 GCC toolchain
run: |
wget -O aarch64-toolchain.tar.gz https://trustworthy.systems/Downloads/microkit/arm-gnu-toolchain-12.3.rel1-x86_64-aarch64-none-elf.tar.xz
tar xf aarch64-toolchain.tar.gz
echo "$(pwd)/arm-gnu-toolchain-12.3.rel1-x86_64-aarch64-none-elf/bin" >> $GITHUB_PATH
- name: Install Nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Run examples script
run: nix-shell --run "./ci/examples.sh $(pwd) $(pwd)/microkit-sdk-1.4.1"
build_examples_macos_aarch64_nix:
name: Build example systems (macOS ARM64 via Nix)
runs-on: [self-hosted, macos, ARM64]
steps:
- name: Checkout LionsOS repository
uses: actions/checkout@v4
with:
submodules: true
# Because we use self-hosted actions and the checkout action does not clean submodules
# we need to manually clean the submodules of the repo.
- name: Clean submodules
run: |
git submodule foreach --recursive git clean -ffdx
git submodule foreach --recursive git reset --hard
- name: Download Microkit SDK
run: |
wget https://github.com/seL4/microkit/releases/download/1.4.1/microkit-sdk-1.4.1-macos-aarch64.tar.gz
tar xf microkit-sdk-1.4.1-macos-aarch64.tar.gz
- name: Download and install AArch64 GCC toolchain
run: |
wget -O aarch64-toolchain.tar.gz https://trustworthy.systems/Downloads/microkit/arm-gnu-toolchain-12.3.rel1-darwin-arm64-aarch64-none-elf.tar.xz
tar xf aarch64-toolchain.tar.gz
echo "$(pwd)/arm-gnu-toolchain-12.3.rel1-darwin-arm64-aarch64-none-elf/bin" >> $GITHUB_PATH
- name: Run examples script
run: nix-shell --run "./ci/examples.sh $(pwd) $(pwd)/microkit-sdk-1.4.1"