-
Notifications
You must be signed in to change notification settings - Fork 10
49 lines (41 loc) · 1.04 KB
/
main.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
46
47
48
49
name: CI workflows
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
concurrency:
group: build
cancel-in-progress: false
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
apt-packages: xorriso mtools nasm
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache apt packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: ${{ env.apt-packages }}
- name: Install Dependencies
run: sudo apt-get install ${{ env.apt-packages }} -y
- name: Setup BuildTools
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
actions-cache-folder: .xmake-cache
package-cache: true
build-cache: true
project-path: .
- name: Build Kernel
run: xmake build -y
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: CoolPotOS
path: build/CoolPotOS.iso
compression-level: 9