-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (42 loc) · 1.3 KB
/
build.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
name: Build
on: push
jobs:
debian-10:
runs-on: [debian-10]
steps:
- uses: actions/checkout@v3
- name: Build Soup
run: php Sun/vendor/Soup/build_lib.php
- name: Build Sun
run: clang -o suncli Sun/sun.cpp -ISun/vendor/Soup libsoup.a -std=c++17 -fuse-ld=lld -lstdc++ -lstdc++fs -pthreads
- name: Upload Sun
uses: actions/upload-artifact@v3
with:
name: "Debian 10 and above"
path: suncli
macos-13:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Build Soup
run: php Sun/vendor/Soup/build_lib.php
- name: Build Sun
run: clang -o suncli Sun/sun.cpp -ISun/vendor/Soup libsoup.a -std=c++17 -lstdc++
- name: Upload Sun
uses: actions/upload-artifact@v3
with:
name: "MacOS (X86)"
path: suncli
windows-latest:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Build Soup
run: php Sun/vendor/Soup/build_lib.php
- name: Build Sun
run: clang -o Sun.exe Sun/sun.cpp -ISun/vendor/Soup libsoup.a -std=c++17
- name: Upload Sun
uses: actions/upload-artifact@v3
with:
name: Windows
path: Sun.exe