-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (33 loc) · 1.24 KB
/
build-mac.yml
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
name: build - macOS
on:
[push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: brew install nasm curl make
- name: Fetch and install toolchain
run: |
curl https://jewelcodes.io/lux/toolchain-macos-arm64.tar.xz -o toolchain-macos-arm64.tar.xz
tar -xvJf toolchain-macos-arm64.tar.xz
mv toolchain $HOME/work/toolchain
mv host $HOME/work/host
echo "$HOME/work/toolchain/bin" >> $GITHUB_PATH
- name: Verify toolchain is executable
run: x86_64-lux-gcc -v
- name: Fetch lucerna
run: git clone https://github.com/lux-operating-system/lucerna
- name: Build and install lucerna
run: make -C lucerna; make install -C lucerna
- name: Fetch servers
run: git clone https://github.com/lux-operating-system/servers
- name: Build and install servers
run: make -C servers; make install -C servers
- name: Build utilities
run: make
- name: Clean up artifacts
run: |
rm -rf toolchain-macos-arm64.tar.xz lucerna $HOME/work/toolchain $HOME/work/host
make clean