-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (41 loc) · 1.24 KB
/
BuildAll.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
50
51
52
name: MeetiX CI Build
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Packages
run: |
sudo apt update
sudo apt upgrade
sudo apt install -y gcc g++ nasm build-essential libgmp-dev libmpfr-dev libmpc-dev cmake make ninja-build xorriso grub-common patch wget tar
- name: Toolchains
run: |
pushd Toolchain
bash Build.sh --rebuild
popd
- name: CMake Config
run: |
mkdir -p Build/{Debug,Release}
pushd Build/Debug
cmake ../.. -DCMAKE_TOOLCHAIN_FILE=Build/CMakeToolchain.txt -DCMAKE_BUILD_TYPE=Debug -GNinja
popd
pushd Build/Release
cmake ../.. -DCMAKE_TOOLCHAIN_FILE=Build/CMakeToolchain.txt -DCMAKE_BUILD_TYPE=Release -GNinja
popd
- name: Build MeetiX Debug
run: |
pushd Build/Debug
ninja repack
popd
- name: Build MeetiX Release
run: |
pushd Build/Release
ninja repack
popd
- name: Uploading image as artifact
uses: actions/upload-artifact@v2
with:
name: MeetixOS
path: Build/Release/MeetixOS.iso