29
29
30
30
- name : c3tools unit tests
31
31
run : |
32
+ ulimit -c unlimited
32
33
if [[ "${{matrix.optimize}}" == "O0" ]]; then
33
34
echo "Running tests with sanitizer"
34
35
c3c --sanitize=address --trust=full build c3fzf
@@ -41,31 +42,42 @@ jobs:
41
42
42
43
- name : c3fzf on c3tools
43
44
run : |
45
+ ulimit -c unlimited
44
46
./build/c3fzf --project=./lib/ .
45
47
./build/c3fzf --project=./lib/ . .
46
48
./build/c3fzf --project=./lib/ c3tools::codefmt .
47
49
48
50
- name : c3fzf preview
49
51
run : |
52
+ ulimit -c unlimited
50
53
./build/c3fzf --project=./lib/ --preview c3tools::codefmt CodeFmt
51
54
52
55
- name : c3fzf stdlib
53
56
run : |
57
+ ulimit -c unlimited
54
58
./build/c3fzf --stdlib=./c3c/lib/std --project=./lib/ .
55
59
./build/c3fzf --stdlib=./c3c/lib/std --project=./lib/ . .
56
60
57
61
- name : c3fzf stdlib symbols
58
62
run : |
63
+ ulimit -c unlimited
59
64
./build/c3fzf --stdlib=./c3c/lib/std --project=./lib/ std::core::string .
60
65
61
66
- name : c3fzf stdlib preview
62
67
run : |
68
+ ulimit -c unlimited
63
69
./build/c3fzf --preview --stdlib=./c3c/lib/std --project=./lib/ std::core::string .
64
70
65
71
- name : c3fzf stdlib preview full stdlib
66
72
run : |
73
+ ulimit -c unlimited
67
74
./build/c3fzf --project=./lib/ --stdlib=./c3c/lib/std . | xargs -I{} ./build/c3fzf --project=./lib/ --preview --stdlib=./c3c/lib/std {} .
68
75
76
+ - uses : actions/upload-artifact@master # capture all crashes as build artifacts
77
+ with :
78
+ name : crashes
79
+ path : /var/cores
80
+
69
81
build-c3fmt :
70
82
runs-on : ubuntu-22.04
71
83
strategy :
89
101
#
90
102
- name : c3tools unit tests
91
103
run : |
104
+ ulimit -c unlimited
92
105
if [[ "${{matrix.optimize}}" == "O0" ]]; then
93
106
echo "Running tests with sanitizer"
94
107
c3c --sanitize=address --trust=full build c3fmt
@@ -101,30 +114,36 @@ jobs:
101
114
102
115
- name : c3fmt c3tools
103
116
run : |
117
+ ulimit -c unlimited
104
118
find lib/ | grep ".c3$" | xargs -I{} ./build/c3fmt -w ${{ matrix.line_width }} -i ${{ matrix.indent }} {}
105
119
106
120
- name : c3tools unit tests after formatting
107
121
run : |
122
+ ulimit -c unlimited
108
123
c3c --trust=full test
109
124
110
125
- name : c3fmt c3tools (double)
111
126
run : |
127
+ ulimit -c unlimited
112
128
find lib/ | grep ".c3$" | xargs -I{} ./build/c3fmt -w ${{ matrix.line_width }} -i ${{ matrix.indent }} {}
113
129
114
130
- name : c3tools unit tests after (double) formatting
115
131
run : |
132
+ ulimit -c unlimited
116
133
c3c --trust=full test
117
134
118
135
#
119
136
# c3c formatting block
120
137
#
121
138
- name : c3c compiler tests (original)
122
139
run : |
140
+ ulimit -c unlimited
123
141
cd c3c/test
124
142
python3 src/tester.py ../build/c3c test_suite/
125
143
126
144
- name : c3fmt stdlib
127
145
run : |
146
+ ulimit -c unlimited
128
147
find c3c/lib/ | grep ".c3$" | xargs -I{} ./build/c3fmt -w ${{ matrix.line_width }} -i ${{ matrix.indent }} {}
129
148
cd c3c/
130
149
echo "Checking if any changes in files"
@@ -133,11 +152,13 @@ jobs:
133
152
134
153
- name : c3c stdlib unit tests formatted
135
154
run : |
155
+ ulimit -c unlimited
136
156
cd c3c/test
137
157
../build/c3c compile-test unit
138
158
139
159
- name : c3fmt stdlib (double)
140
160
run : |
161
+ ulimit -c unlimited
141
162
find c3c/lib/ | grep ".c3$" | xargs -I{} ./build/c3fmt -w ${{ matrix.line_width }} -i ${{ matrix.indent }} {}
142
163
cd c3c/
143
164
echo "Checking if any changes after formatting (must be the same!)"
@@ -146,18 +167,27 @@ jobs:
146
167
147
168
- name : c3c stdlib unit tests formatted (double)
148
169
run : |
170
+ ulimit -c unlimited
149
171
cd c3c/test
150
172
../build/c3c compile-test unit
151
173
152
174
- name : c3fmt c3c/test/unit
153
175
run : |
176
+ ulimit -c unlimited
154
177
find c3c/test/unit | grep ".c3$" | xargs -I{} ./build/c3fmt -w ${{ matrix.line_width }} -i ${{ matrix.indent }} {}
155
178
156
179
- name : c3c unit tests on formatted c3c/test/unit
157
180
run : |
181
+ ulimit -c unlimited
158
182
cd c3c/test
159
183
../build/c3c compile-test unit
160
184
161
185
- name : c3fmt of all *.c3t files in test_suite
162
186
run : |
187
+ ulimit -c unlimited
163
188
./scripts/c3fmt_c3c_test_suite.sh c3c/test/test_suite/
189
+
190
+ - uses : actions/upload-artifact@master # capture all crashes as build artifacts
191
+ with :
192
+ name : crashes
193
+ path : /cores
0 commit comments