From f521be1d9353938eeae32eae84a443c8a441c715 Mon Sep 17 00:00:00 2001 From: Mikhail Kornilovich Date: Sat, 11 Apr 2026 01:54:26 +0300 Subject: [PATCH] try to fix matrix --- .gitea/workflows/build-dsl-smoke.yml | 18 +++++++++--------- .gitea/workflows/memory.yml | 3 --- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/build-dsl-smoke.yml b/.gitea/workflows/build-dsl-smoke.yml index 8d3f48d..1c4dacc 100644 --- a/.gitea/workflows/build-dsl-smoke.yml +++ b/.gitea/workflows/build-dsl-smoke.yml @@ -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() }} diff --git a/.gitea/workflows/memory.yml b/.gitea/workflows/memory.yml index 3ff22a9..2e5dd86 100644 --- a/.gitea/workflows/memory.yml +++ b/.gitea/workflows/memory.yml @@ -2,9 +2,6 @@ name: memory-limit run-name: "memory_limit enforcement check" on: - push: - branches: [main] - pull_request: workflow_dispatch: env: