-
Notifications
You must be signed in to change notification settings - Fork 8
109 lines (105 loc) · 2.85 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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: build
on: [push, pull_request]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- name: Checkout Gosling
uses: actions/checkout@v3
with:
submodules: true
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libboost-all-dev
- name: Build Debug
run: |
make debug
- name: Archive Debug
uses: actions/upload-artifact@v3
with:
name: linux-debug
path: |
out/debug/gosling/debug/libgoslingffi.a
out/debug/gosling/include/libgosling.h
- name: Build Release
run: |
make release
- name: Archive Release
uses: actions/upload-artifact@v3
with:
name: linux-release
path: |
out/release/gosling/release/libgoslingffi.a
out/release/gosling/include/libgosling.h
windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout Gosling
uses: actions/checkout@v3
with:
submodules: true
- name: Install Dependencies
uses: msys2/setup-msys2@v2
with:
msystem: clang64
update: true
install: >-
make
mingw-w64-clang-x86_64-cmake
mingw-w64-clang-x86_64-clang
mingw-w64-clang-x86_64-rust
mingw-w64-clang-x86_64-boost
- name: Build Debug
run: |
make debug
- name: Archive Debug
uses: actions/upload-artifact@v3
with:
name: windows-debug
path: |
out/debug/gosling/debug/libgoslingffi.a
out/debug/gosling/include/libgosling.h
- name: Build Release
run: |
make release
- name: Archive Release
uses: actions/upload-artifact@v3
with:
name: windows-release
path: |
out/release/gosling/release/libgoslingffi.a
out/release/gosling/include/libgosling.h
macos:
runs-on: macos-latest
steps:
- name: Checkout Gosling
uses: actions/checkout@v3
with:
submodules: true
- name: Install Dependencies
run: |
brew install boost
- name: Build Debug
run: |
make debug
- name: Archive Debug
uses: actions/upload-artifact@v3
with:
name: macos-debug
path: |
out/debug/gosling/debug/libgoslingffi.a
out/debug/gosling/include/libgosling.h
- name: Build Release
run: |
make release
- name: Archive Release
uses: actions/upload-artifact@v3
with:
name: macos-release
path: |
out/release/gosling/release/libgoslingffi.a
out/release/gosling/include/libgosling.h