try to fix matrix
All checks were successful
build-dsl-smoke / Discover matrix (push) Successful in 8s
build-dsl-smoke / Build judge (push) Successful in 11s
build-dsl-smoke / ${{ matrix.build }} / ${{ matrix.toolchain }} / ${{ matrix.platform }} (push) Successful in 5s
build-dsl-smoke / SUMMARY (push) Successful in 3s
All checks were successful
build-dsl-smoke / Discover matrix (push) Successful in 8s
build-dsl-smoke / Build judge (push) Successful in 11s
build-dsl-smoke / ${{ matrix.build }} / ${{ matrix.toolchain }} / ${{ matrix.platform }} (push) Successful in 5s
build-dsl-smoke / SUMMARY (push) Successful in 3s
This commit is contained in:
@@ -66,25 +66,25 @@ jobs:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
needs: [discover, build_judge]
|
needs: [discover, build_judge]
|
||||||
name: "${{ matrix.cell.build }} / ${{ matrix.cell.toolchain }} / ${{ matrix.cell.platform }}"
|
name: "${{ matrix.build }} / ${{ matrix.toolchain }} / ${{ matrix.platform }}"
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
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
|
timeout-minutes: 10
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REPORT_NAME: "report_${{ matrix.cell.build }}_${{ matrix.cell.toolchain }}_${{ matrix.cell.platform }}"
|
REPORT_NAME: "report_${{ matrix.build }}_${{ matrix.toolchain }}_${{ matrix.platform }}"
|
||||||
JUDGE_TOOLCHAIN: ${{ matrix.cell.toolchain }}
|
JUDGE_TOOLCHAIN: ${{ matrix.toolchain }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up MSVC environment
|
- name: Set up MSVC environment
|
||||||
if: matrix.cell.toolchain == 'msvc'
|
if: matrix.toolchain == 'msvc'
|
||||||
uses: ilammy/msvc-dev-cmd@v1
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
|
||||||
- name: Download judge binary
|
- name: Download judge binary
|
||||||
@@ -97,7 +97,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
if [ "${{ matrix.cell.platform }}" = "windows" ]; then
|
if [ "${{ matrix.platform }}" = "windows" ]; then
|
||||||
cp judge-bin/judge-windows-amd64.exe bin/judge.exe
|
cp judge-bin/judge-windows-amd64.exe bin/judge.exe
|
||||||
else
|
else
|
||||||
cp judge-bin/judge-linux-amd64 bin/judge
|
cp judge-bin/judge-linux-amd64 bin/judge
|
||||||
@@ -109,9 +109,9 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
working-directory: ${{ env.EXAMPLE_DIR }}
|
working-directory: ${{ env.EXAMPLE_DIR }}
|
||||||
run: |
|
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"
|
cat "$GITHUB_WORKSPACE/${REPORT_NAME}.json"
|
||||||
judge "$SUITE_FILE" . --build=${{ matrix.cell.build }}
|
judge "$SUITE_FILE" . --build=${{ matrix.build }}
|
||||||
|
|
||||||
- name: Upload report
|
- name: Upload report
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
|
|||||||
@@ -2,9 +2,6 @@ name: memory-limit
|
|||||||
run-name: "memory_limit enforcement check"
|
run-name: "memory_limit enforcement check"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user