-
Notifications
You must be signed in to change notification settings - Fork 115
58 lines (48 loc) · 1.13 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
on:
push:
branches:
- main
pull_request:
name: CI
jobs:
ubuntu-latest:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
- name: Install Mage
run: |
go get github.com/magefile/mage
- name: Install Qemu
run: |
sudo apt-get update && sudo apt-get install -y qemu-system-x86
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: |
diff -u <(echo -n) <(gofmt -d $(find . -type f -name '*.go'))
mage -v multiboot
mage -v iso
mage -v test
macos-latest:
runs-on: macos-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
- name: Install Mage
run: |
go get github.com/magefile/mage
- name: Install Elf Gcc
run: |
brew install x86_64-elf-gcc
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: |
diff -u <(echo -n) <(gofmt -d $(find . -type f -name '*.go'))
mage -v multiboot
mage -v kernel