-
Notifications
You must be signed in to change notification settings - Fork 15
130 lines (104 loc) · 3.11 KB
/
Copy pathci.yml
File metadata and controls
130 lines (104 loc) · 3.11 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
name: AuriOS CI
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
on:
push:
branches: ["main", "develop"]
paths:
- "src/**"
- "Makefile"
- "linker.ld"
- ".github/workflows/ci.yml"
pull_request:
branches: ["main", "develop"]
workflow_dispatch:
jobs:
build-gcc:
name: Build with GCC (i686-elf)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: add local bin to path
run: echo "$PWD/.environment/bin" >> $GITHUB_PATH
- name: restore cross compiler cache
id: cache-toolchain
uses: actions/cache@v4
with:
path: .environment
key: ${{ runner.os }}-i686-elf-gcc-${{ hashFiles('Makefile', 'docs/install_scripts/install.sh') }}
- name: install system deps
run: |
sudo apt-get update
sudo apt-get install -y nasm xorriso mtools grub-pc-bin grub-common
- name: zig install
uses: mlugg/setup-zig@v2
with:
version: 0.16.0
- name: build cross compiler
if: steps.cache-toolchain.outputs.cache-hit != 'true'
run: |
sudo apt-get install -y gcc g++ binutils make wget tar texinfo libgmp-dev libmpfr-dev libmpc-dev
chmod +x docs/install_scripts/install.sh
./docs/install_scripts/install.sh
- name: create ISO
run: |
make clean
make iso
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: AuriOS-GCC-ISO
path: output/AuriOS.iso
retention-days: 5
build-zig:
name: Build with Zig Toolchain
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: add local bin to path
run: echo "$PWD/.environment/bin" >> $GITHUB_PATH
- name: install zig
uses: mlugg/setup-zig@v2
with:
version: 0.16.0
- name: install ISO deps
run: |
sudo apt-get update
sudo apt-get install -y nasm xorriso mtools grub-pc-bin grub-common
- name: create ISO
run: |
make clean
make USE_ZIG=1 iso
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: AuriOS-Zig-ISO
path: output/AuriOS.iso
retention-days: 5
integration-tests:
name: Integration Tests (Walkman)
runs-on: ubuntu-latest
needs: build-zig
steps:
- name: Checkout
uses: actions/checkout@v4
- name: install system deps & QEMU
run: |
sudo apt-get update
sudo apt-get install -y nasm xorriso mtools grub-pc-bin grub-common qemu-system-x86
- name: install zig
uses: mlugg/setup-zig@v2
with:
version: 0.16.0
- name: Build Test ISO (AURI_TEST_MODE)
run: |
make clean
make USE_ZIG=1 iso-debug
- name: Install Walkman
run: |
cargo install --git https://github.com/Auri-OS/walkman.git --tag v0.1.1
- name: Run Walkman Test Suite
run: |
walkman tests/integrations --nui