First version on judge server v1 (#121) #211
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
cargo-test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y libseccomp-dev protobuf-compiler gcc-11 g++-11 | |
- name: Setup gcc/g++ 11 | |
run: | | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 | |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 100 | |
- name: Check ENV | |
run: echo $(rustup --version && g++ -v) | |
- name: Build test dist | |
run: cd test-collection && ./build.sh && cd .. | |
- name: Run tests | |
# Currently use --test-threads=1 to avoid log mess | |
# Should only be used in judge-core later | |
run: RUST_LOG=info cargo test -- --nocapture --test-threads=1 |