-
Notifications
You must be signed in to change notification settings - Fork 0
170 lines (168 loc) · 5.23 KB
/
workflow.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
name: CI
on: [push]
jobs:
windows-clang:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: ucrt64
install: >-
make
git
mingw-w64-ucrt-x86_64-pkgconf
mingw-w64-ucrt-x86_64-fmt
mingw-w64-ucrt-x86_64-nlohmann-json
mingw-w64-ucrt-x86_64-llvm
mingw-w64-ucrt-x86_64-lld
mingw-w64-ucrt-x86_64-clang
mingw-w64-ucrt-x86_64-dwarfstack
mingw-w64-ucrt-x86_64-python
mingw-w64-ucrt-x86_64-openssl
- uses: actions/checkout@v3
- run: git clone https://github.com/Il-Capitano/cppb.git
- name: Build cppb
run: |
cd cppb
mkdir bin
make
cd ..
- run: touch ryu_format.windows.bc
- name: Build bozon
run: cppb/bin/cppb build -v --build-config no-sanitize
- name: Compile bitcode_test.bz
run: |
cppb/bin/cppb run -v --build-config no-sanitize
cppb/bin/cppb run-rule a.exe
./a.exe
- name: Build tests
run: cppb/bin/cppb build -v --build-config test-no-sanitize
- name: Run tests
run: |
cppb/bin/cppb run -v --build-config test-no-sanitize
cppb/bin/cppb run-rule run-tests
windows-gcc:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: ucrt64
install: >-
make
git
mingw-w64-ucrt-x86_64-pkgconf
mingw-w64-ucrt-x86_64-fmt
mingw-w64-ucrt-x86_64-nlohmann-json
mingw-w64-ucrt-x86_64-llvm
mingw-w64-ucrt-x86_64-lld
mingw-w64-ucrt-x86_64-clang
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-dwarfstack
mingw-w64-ucrt-x86_64-python
mingw-w64-ucrt-x86_64-openssl
- uses: actions/checkout@v3
- name: Build cppb
run: |
git clone https://github.com/Il-Capitano/cppb.git
cd cppb
mkdir bin
make
cd ..
- run: touch ryu_format.windows.bc
- name: Build bozon
run: cppb/bin/cppb build -v --build-config gcc
- name: Compile bitcode_test.bz
run: |
cppb/bin/cppb run -v --build-config gcc
cppb/bin/cppb run-rule a.exe
./a.exe
- name: Build tests
run: cppb/bin/cppb build -v --build-config test-gcc
- name: Run tests
run: cppb/bin/cppb run -v --build-config test-gcc
linux-clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install packages
run: |
printf "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-17 main" | sudo tee /etc/apt/sources.list.d/llvm-toolchain-focal-17.list
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt update
sudo apt install gcc gcc-12 g++-12 llvm-17 lld-17 clang-17 libfmt-dev nlohmann-json3-dev libssl-dev python3
- name: Install libbacktrace
run: |
git clone https://github.com/ianlancetaylor/libbacktrace.git
cd libbacktrace
./configure
sudo make install
cd ..
- name: Build cppb
run: |
git clone https://github.com/Il-Capitano/cppb.git
cd cppb
mkdir bin
make CXX=clang++-17 LD=lld-17
cd ..
- run: touch ryu_format.linux.bc
- name: Build bozon
run: cppb/bin/cppb build -v
- name: Compile bitcode_test.bz
run: |
cppb/bin/cppb run -v
cppb/bin/cppb run-rule a.out
./a.out
- name: Build tests
run: cppb/bin/cppb build -v --build-config test
- name: Run tests
run: |
cppb/bin/cppb run -v --build-config test
cppb/bin/cppb run-rule run-tests
- name: Compile ryu_format.bz
run: cppb/bin/cppb run-rule ryu_format.linux.bc -f
linux-gcc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install packages
run: |
printf "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-17 main" | sudo tee /etc/apt/sources.list.d/llvm-toolchain-focal-17.list
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt update
sudo apt install gcc lld gcc-12 g++-12 llvm-17 lld-17 clang-17 libfmt-dev nlohmann-json3-dev libssl-dev python3
- name: Install libbacktrace
run: |
git clone https://github.com/ianlancetaylor/libbacktrace.git
cd libbacktrace
./configure
sudo make install
cd ..
- name: Build cppb
run: |
git clone https://github.com/Il-Capitano/cppb.git
cd cppb
mkdir bin
make CXX=clang++-17 LD=lld-17
cd ..
- run: touch ryu_format.linux.bc
- name: Build bozon
run: cppb/bin/cppb build -v --build-config gcc
- name: Compile bitcode_test.bz
run: |
cppb/bin/cppb run -v --build-config gcc
cppb/bin/cppb run-rule a.out
./a.out
- name: Build tests
run: cppb/bin/cppb build -v --build-config test-gcc
- name: Run tests
run: cppb/bin/cppb run -v --build-config test-gcc
- name: Compile ryu_format.bz
run: cppb/bin/cppb run-rule ryu_format.linux.gcc.bc -f