This repository has been archived by the owner on Apr 12, 2022. It is now read-only.
66 lines (52 loc) · 1.58 KB
/
measure.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
name: measure
on: [push, pull_request]
jobs:
measure:
runs-on: ubuntu-latest
strategy:
matrix:
# seed: [0, 100, 200, 300, 400, 500, 600, 700, 800, 900]
seed: [0]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.6
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-
- name: Install dependencies
run: pip3 install -r scripts/requirements.txt
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/cache@v2
id: cache-tools
with:
path: tools/
key: ${{ runner.os }}-tools-${{ hashFiles('*.zip') }}
- name: Prepare tools/
if: steps.cache-tools.outputs.cache-hit != 'true'
run: |
wget -O tools.zip https://img.atcoder.jp/ahc002/c993bb7f09d9f8857fc90951fc6af11d.zip
unzip tools.zip
- name: Build the visualizer
run: |
cargo build --manifest-path=tools/Cargo.toml --release
- name: Compile the code
run: |
g++ -std=c++17 -Wall -O2 -Iac-library -DLOCAL main.cpp
- name: Measure the score
run: |
python3 scripts/measure.py --jobs 2 --count 200 --seed ${{ matrix.seed }}