Skip to content

Commit

Permalink
CI: respect 32/64bit and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
byeongkeunahn committed Oct 1, 2023
1 parent 75acc71 commit f1a8822
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 35 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,21 @@ jobs:
run: cargo test --lib -- --test-threads 1
env:
RUSTFLAGS: ""
- name: Check C
- name: Check C (x86_64)
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
run: |
python ./scripts/build-and-judge.py ${{ runner.temp }} ./release.sh C ./src/solution.rs ./tests/boj_1000.in ./tests/boj_1000.out
- name: Check Rust
python ./scripts/build-and-judge.py ${{ runner.temp }} ./release.sh C ./tests/boj_1001.rs ./tests/boj_1001.in ./tests/boj_1001.out
python ./scripts/build-and-judge.py ${{ runner.temp }} ./release.sh C ./tests/boj_3745.rs ./tests/boj_3745.in ./tests/boj_3745.out
- name: Check C (x86)
if: ${{ matrix.target == 'i686-unknown-linux-gnu' }}
run: |
python ./scripts/build-and-judge.py ${{ runner.temp }} ./release-rs.sh Rust ./src/solution.rs ./tests/boj_1000.in ./tests/boj_1000.out
- name: Check Rust (BOJ 1001)
python ./scripts/build-and-judge.py ${{ runner.temp }} ./release-32bit.sh C ./src/solution.rs ./tests/boj_1000.in ./tests/boj_1000.out
python ./scripts/build-and-judge.py ${{ runner.temp }} ./release-32bit.sh C ./tests/boj_1001.rs ./tests/boj_1001.in ./tests/boj_1001.out
python ./scripts/build-and-judge.py ${{ runner.temp }} ./release-32bit.sh C ./tests/boj_3745.rs ./tests/boj_3745.in ./tests/boj_3745.out
- name: Check Rust (x86_64)
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
run: |
python ./scripts/build-and-judge.py ${{ runner.temp }} ./release-rs.sh Rust ./src/solution.rs ./tests/boj_1000.in ./tests/boj_1000.out
python ./scripts/build-and-judge.py ${{ runner.temp }} ./release-rs.sh Rust ./tests/boj_1001.rs ./tests/boj_1001.in ./tests/boj_1001.out
- name: Check Rust (BOJ 3745)
run: |
python ./scripts/build-and-judge.py ${{ runner.temp }} ./release-rs.sh Rust ./tests/boj_3745.rs ./tests/boj_3745.in ./tests/boj_3745.out
10 changes: 4 additions & 6 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,13 @@ jobs:
run: cargo test --lib -- --test-threads 1
env:
RUSTFLAGS: ""
- name: Check C
- name: Check C (x86_64)
run: |
python .\scripts\build-and-judge.py ${{ runner.temp }} .\release-64bit-windows.cmd C .\src\solution.rs .\tests\boj_1000.in .\tests\boj_1000.out
- name: Check Rust
python .\scripts\build-and-judge.py ${{ runner.temp }} .\release-64bit-windows.cmd C .\tests\boj_1001.rs .\tests\boj_1001.in .\tests\boj_1001.out
python .\scripts\build-and-judge.py ${{ runner.temp }} .\release-64bit-windows.cmd C .\tests\boj_3745.rs .\tests\boj_3745.in .\tests\boj_3745.out
- name: Check Rust (x86_64)
run: |
python .\scripts\build-and-judge.py ${{ runner.temp }} .\release-64bit-windows-rs.cmd Rust .\src\solution.rs .\tests\boj_1000.in .\tests\boj_1000.out
- name: Check Rust (BOJ 1001)
run: |
python .\scripts\build-and-judge.py ${{ runner.temp }} .\release-64bit-windows-rs.cmd Rust .\tests\boj_1001.rs .\tests\boj_1001.in .\tests\boj_1001.out
- name: Check Rust (BOJ 3745)
run: |
python .\scripts\build-and-judge.py ${{ runner.temp }} .\release-64bit-windows-rs.cmd Rust .\tests\boj_3745.rs .\tests\boj_3745.in .\tests\boj_3745.out
17 changes: 0 additions & 17 deletions scripts/check.sh

This file was deleted.

6 changes: 0 additions & 6 deletions test.sh

This file was deleted.

0 comments on commit f1a8822

Please sign in to comment.