-
Notifications
You must be signed in to change notification settings - Fork 389
71 lines (66 loc) · 1.85 KB
/
make.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Build Waterbox
on:
pull_request:
#branches: [ "master" ]
push:
#branches: [ "master" ]
branches: [ "upstreamCI" ]
env:
CC: clang-15
CXX: clang++-15
jobs:
# Build waterbox and cores
build-waterbox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Getting submodule(s)
working-directory: ./waterbox/
run: git submodule init musl;
git submodule update musl
- name: Building musl
working-directory: ./waterbox/musl
run: ./wbox_configure.sh;
./wbox_build.sh;
- name: Building emulibc
working-directory: ./waterbox/emulibc
run: make
- name: Building libco
working-directory: ./waterbox/libco
run: make
- name: Building libcxx
working-directory: ./waterbox/libcxx
run: ./do-everything.sh
- name: Building nyma
working-directory: ./waterbox/nyma
run: ./build-and-install-zlib.sh
- name: Uploading compiled waterbox
uses: actions/upload-artifact@v4
with:
name: compiled-waterbox
path: |
waterbox/libco/obj
waterbox/musl/obj
waterbox/emulibc/obj
waterbox/libcxx/build*
waterbox/sysroot
build-gpgx:
runs-on: ubuntu-latest
needs: build-waterbox
steps:
- uses: actions/checkout@v4
- name: Download compiled waterbox
uses: actions/download-artifact@v4
with:
name: compiled-waterbox
path: waterbox
- name: Giving execution permission to compiler
working-directory: ./waterbox/sysroot
run: chmod u+x bin/*
- name: Getting submodule(s)
working-directory: ./waterbox/gpgx
run: git submodule init Genesis-Plus-GX;
git submodule update Genesis-Plus-GX
- name: Building GPGX core
working-directory: ./waterbox/gpgx
run: make -j${nproc}