-
Notifications
You must be signed in to change notification settings - Fork 30
106 lines (93 loc) · 2.75 KB
/
main.yml
File metadata and controls
106 lines (93 loc) · 2.75 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
name: CI Workflow
on:
push:
branches: [ "rebuild" ]
paths-ignore:
- 'readme'
- '.gitignore'
- 'README.md'
pull_request:
branches: [ "rebuild" ]
paths-ignore:
- 'readme'
- '.gitignore'
- 'README.md'
jobs:
x86_64:
runs-on: ubuntu-latest
name: x86_64
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: xorriso clang mtools lld openssl python3 cmake
version: 1.0
- name: Configure CMake
run: |
cmake -S . -B build/ \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DTARGET_ARCH=x86_64
- name: Build CPOS x86_64
run: |
cmake --build build/ --target run -j 12
- name: Upload CoolPotOS-x86_64 ISO
uses: actions/upload-artifact@v4
with:
name: CoolPotOS-x86_64 (ISO)
path: build/CoolPotOS.iso
compression-level: 9
riscv64:
runs-on: ubuntu-latest
name: riscv64
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: xorriso clang mtools lld openssl python3 cmake
version: 1.0
- name: Configure CMake
run: |
cmake -S . -B build/ \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DTARGET_ARCH=riscv64
- name: Build CPOS riscv64
run: |
cmake --build build/ --target run -j 12
- name: Upload CoolPotOS-riscv64 kernel
uses: actions/upload-artifact@v4
with:
name: CoolPotOS-riscv64 (kernel)
path: build/cpkrnl_rv64.elf
compression-level: 9
loongarch64:
runs-on: ubuntu-latest
name: loongarch64
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: xorriso clang mtools lld openssl python3 cmake
version: 1.0
- name: Configure CMake
run: |
cmake -S . -B build/ \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DTARGET_ARCH=loongarch64
- name: Build CPOS loongarch64
run: |
cmake --build build/ --target run -j 12
- name: Upload CoolPotOS-loongarch64 kernel
uses: actions/upload-artifact@v4
with:
name: CoolPotOS-loongarch64 (kernel)
path: build/cpkrnl_la64.elf
compression-level: 9