File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -129,3 +129,47 @@ jobs:
129
129
130
130
- name : expand.py tests
131
131
run : bash ./.github/workflows/test-expand.sh
132
+
133
+ verify :
134
+ name : Verify
135
+ runs-on : ubuntu-20.04
136
+
137
+ steps :
138
+ - name : Checkout
139
+ uses : actions/checkout@v2
140
+
141
+ - name : Setup `1.47.0-x86_64-unknown-linux-gnu`
142
+ uses : actions-rs/toolchain@v1
143
+ with :
144
+ toolchain : 1.47.0-x86_64-unknown-linux-gnu
145
+ override : true
146
+ profile : minimal
147
+
148
+ - name : Setup Python 3.9
149
+ uses : actions/setup-python@v2
150
+ with :
151
+ python-version : ' 3.9'
152
+
153
+ - name : Install `oj`
154
+ run : pip install online-judge-tools
155
+
156
+ - name : cargo-build
157
+ uses : actions-rs/cargo@v1
158
+ with :
159
+ command : build
160
+ args : --release --examples
161
+
162
+ - name : Verify
163
+ run : |
164
+ NAMES=(
165
+ convolution_mod
166
+ static_range_sum
167
+ sum_of_floor_of_linear
168
+ unionfind
169
+ )
170
+ for name in "${NAMES[@]}"; do
171
+ oj d "https://judge.yosupo.jp/problem/$name" -ad "/tmp/$name"
172
+ done
173
+ for name in "${NAMES[@]}"; do
174
+ oj t -d "/tmp/$name" -t 10 -c "./target/release/examples/library-checker-${name//_/-}" --judge-command ~/.cache/online-judge-tools/library-checker-problems/*/"$name"/checker
175
+ done
You can’t perform that action at this time.
0 commit comments