New build system #1
@@ -66,25 +66,25 @@ jobs:
|
||||
|
||||
test:
|
||||
needs: [discover, build_judge]
|
||||
name: "${{ matrix.cell.build }} / ${{ matrix.cell.toolchain }} / ${{ matrix.cell.platform }}"
|
||||
name: "${{ matrix.build }} / ${{ matrix.toolchain }} / ${{ matrix.platform }}"
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
cell: ${{ fromJSON(needs.discover.outputs.matrix) }}
|
||||
include: ${{ fromJSON(needs.discover.outputs.matrix) }}
|
||||
|
||||
runs-on: ${{ matrix.cell.platform == 'windows' && 'Windows-Runner' || 'Linux-Runner' }}
|
||||
runs-on: ${{ matrix.platform == 'windows' && 'Windows-Runner' || 'Linux-Runner' }}
|
||||
timeout-minutes: 10
|
||||
|
||||
env:
|
||||
REPORT_NAME: "report_${{ matrix.cell.build }}_${{ matrix.cell.toolchain }}_${{ matrix.cell.platform }}"
|
||||
JUDGE_TOOLCHAIN: ${{ matrix.cell.toolchain }}
|
||||
REPORT_NAME: "report_${{ matrix.build }}_${{ matrix.toolchain }}_${{ matrix.platform }}"
|
||||
JUDGE_TOOLCHAIN: ${{ matrix.toolchain }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up MSVC environment
|
||||
if: matrix.cell.toolchain == 'msvc'
|
||||
if: matrix.toolchain == 'msvc'
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
|
||||
- name: Download judge binary
|
||||
@@ -97,7 +97,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p bin
|
||||
if [ "${{ matrix.cell.platform }}" = "windows" ]; then
|
||||
if [ "${{ matrix.platform }}" = "windows" ]; then
|
||||
cp judge-bin/judge-windows-amd64.exe bin/judge.exe
|
||||
else
|
||||
cp judge-bin/judge-linux-amd64 bin/judge
|
||||
@@ -109,9 +109,9 @@ jobs:
|
||||
shell: bash
|
||||
working-directory: ${{ env.EXAMPLE_DIR }}
|
||||
run: |
|
||||
judge "$SUITE_FILE" . --build=${{ matrix.cell.build }} --json > "$GITHUB_WORKSPACE/${REPORT_NAME}.json" || true
|
||||
judge "$SUITE_FILE" . --build=${{ matrix.build }} --json > "$GITHUB_WORKSPACE/${REPORT_NAME}.json" || true
|
||||
cat "$GITHUB_WORKSPACE/${REPORT_NAME}.json"
|
||||
judge "$SUITE_FILE" . --build=${{ matrix.cell.build }}
|
||||
judge "$SUITE_FILE" . --build=${{ matrix.build }}
|
||||
|
||||
- name: Upload report
|
||||
if: ${{ always() }}
|
||||
|
||||
@@ -2,9 +2,6 @@ name: memory-limit
|
||||
run-name: "memory_limit enforcement check"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user