-
Notifications
You must be signed in to change notification settings - Fork 389
88 lines (82 loc) · 2.3 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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
waterbox/musl
waterbox/emulibc
waterbox/libcxx
waterbox/sysroot
build-ares64:
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: Building Ares64 core
working-directory: ./waterbox/ares64
run: ./make-both.sh
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}