Skip to content

Commit 1021e12

Browse files
ci: build SDK for macOS x64 and ARM64
Signed-off-by: Ivan Velickovic <i.velickovic@unsw.edu.au>
1 parent 34befbc commit 1021e12

File tree

1 file changed

+51
-1
lines changed

1 file changed

+51
-1
lines changed

.github/workflows/sdk.yaml

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
branches: [ "main" ]
1717

1818
jobs:
19-
build:
19+
build_linux_x64:
2020
name: Build SDK (Linux x86-64)
2121
runs-on: ubuntu-20.04
2222
steps:
@@ -46,3 +46,53 @@ jobs:
4646
./pyenv/bin/pip install --upgrade pip setuptools wheel
4747
./pyenv/bin/pip install -r requirements.txt
4848
./pyenv/bin/python build_sdk.py --sel4=seL4
49+
build_macos_x64:
50+
name: Build SDK (macOS x86-64)
51+
runs-on: macos-12
52+
steps:
53+
- name: Checkout Microkit repository
54+
uses: actions/checkout@v3
55+
- name: Checkout seL4 repository
56+
uses: actions/checkout@v3
57+
with:
58+
repository: seL4/seL4
59+
ref: microkit
60+
path: seL4
61+
- name: Install SDK dependencies
62+
run: brew install pandoc cmake dtc ninja qemu libxml2 python@3.9 coreutils texlive
63+
- name: Install AArch64 GCC toolchain
64+
run: |
65+
wget -O aarch64-toolchain.tar.gz https://developer.arm.com/-/media/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-darwin-x86_64-aarch64-none-elf.tar.xz?rev=51c39c753f8c4a54875b7c5dccfb84ef&hash=DB5BC5D16E3FE6AB60E8F51B97CE5777
66+
tar xf aarch64-toolchain.tar.gz
67+
echo "$(pwd)/arm-gnu-toolchain-11.3.rel1-darwin-x86_64-aarch64-none-elf/bin" >> $GITHUB_PATH
68+
- name: Build SDK
69+
run: |
70+
python3.9 -m venv pyenv
71+
./pyenv/bin/pip install --upgrade pip setuptools wheel
72+
./pyenv/bin/pip install -r requirements.txt
73+
./pyenv/bin/python build_sdk.py --sel4=seL4
74+
build_macos_arm64:
75+
name: Build SDK (macOS ARM64)
76+
runs-on: macos-12
77+
steps:
78+
- name: Checkout Microkit repository
79+
uses: actions/checkout@v3
80+
- name: Checkout seL4 repository
81+
uses: actions/checkout@v3
82+
with:
83+
repository: seL4/seL4
84+
ref: microkit
85+
path: seL4
86+
- name: Install SDK dependencies
87+
run: brew install pandoc cmake dtc ninja qemu libxml2 python@3.9 coreutils texlive
88+
- name: Install AArch64 GCC toolchain
89+
run: |
90+
wget -O aarch64-toolchain.tar.gz https://developer.arm.com/-/media/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-darwin-x86_64-aarch64-none-elf.tar.xz?rev=51c39c753f8c4a54875b7c5dccfb84ef&hash=DB5BC5D16E3FE6AB60E8F51B97CE5777
91+
tar xf aarch64-toolchain.tar.gz
92+
echo "$(pwd)/arm-gnu-toolchain-11.3.rel1-darwin-x86_64-aarch64-none-elf/bin" >> $GITHUB_PATH
93+
- name: Build SDK
94+
run: |
95+
python3.9 -m venv pyenv
96+
./pyenv/bin/pip install --upgrade pip setuptools wheel
97+
./pyenv/bin/pip install -r requirements.txt
98+
./pyenv/bin/python build_sdk.py --sel4=seL4 --tool-target-triple=aarch64-apple-darwin

0 commit comments

Comments
 (0)