-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 943 Bytes
/
c-cpp.yml
File metadata and controls
39 lines (30 loc) · 943 Bytes
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
name: ZenOS Build Check
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies for building...
run: sudo apt update && sudo apt install -y lld clang nasm xorriso meson ninja-build llvm llvm-dev g++-14 libstdc++-14-dev build-essential
- name: Building mlibc...
run: make fat mlibc -j$(nproc) 2>&1
- name: Building rest with make...
run: make ZenOS.iso init user -j$(nproc) 2>&1
- name: Upload ISO
uses: actions/upload-artifact@v4
with:
name: ZenOS.iso
path: ZenOS.iso
if-no-files-found: error
- name: Zip full directory
run: zip -r ZenOS.zip . -x "*.git*" ".github/*"
- name: Upload full folder with build artifacts
uses: actions/upload-artifact@v4
with:
name: ZenOS.zip
path: ZenOS.zip