From ad6c52f1feb1af55f7ba5696ee247573c3b8c05b Mon Sep 17 00:00:00 2001 From: monosans Date: Mon, 2 Feb 2026 16:37:50 +0300 Subject: [PATCH] fix(workflow): update platform names and add new platforms for allocator benchmarks --- .github/scripts/allocator_bench_alpine.sh | 2 +- .github/workflows/allocator-bench.yml | 44 +++++++++++++---------- 2 files changed, 27 insertions(+), 19 deletions(-) diff --git a/.github/scripts/allocator_bench_alpine.sh b/.github/scripts/allocator_bench_alpine.sh index 3c03935..2bea082 100644 --- a/.github/scripts/allocator_bench_alpine.sh +++ b/.github/scripts/allocator_bench_alpine.sh @@ -49,7 +49,7 @@ docker run --rm \ -w /work \ -e TOKIO_FEATURE="$TOKIO_FEATURE" \ -e PLATFORM_LABEL="${PLATFORM_LABEL:-unknown}" \ - rust:nightly-alpine sh -lc "$ALPINE_SCRIPT" + rust:alpine sh -lc "$ALPINE_SCRIPT" { echo "### ${PLATFORM_LABEL:-unknown} (tokio-multi-thread=${TOKIO_MULTI_THREAD:-false})" diff --git a/.github/workflows/allocator-bench.yml b/.github/workflows/allocator-bench.yml index af20231..b154e1f 100644 --- a/.github/workflows/allocator-bench.yml +++ b/.github/workflows/allocator-bench.yml @@ -8,39 +8,47 @@ permissions: contents: read jobs: bench: - name: ${{ matrix.name }} (tokio-multi-thread=${{ matrix.tokio_multi_thread }}) + name: ${{ matrix.platform_name }} (tokio-multi-thread=${{ matrix.tokio_multi_thread }}) runs-on: ${{ matrix.runner }} strategy: fail-fast: false matrix: tokio_multi_thread: [true, false] + platform: + - ubuntu-24.04-arm-1 + - ubuntu-24.04-arm-2 + - windows-2025 + - windows-11-arm + - macos-15-x86_64 + - macos-15-arm64 + - alpine-dockerized include: - - name: ubuntu-24.04-arm-1 - platform: ubuntu-24.04-arm + - platform: ubuntu-24.04-arm-1 + platform_name: ubuntu-24.04-arm runner: ubuntu-24.04-arm alpine: false - - name: ubuntu-24.04-arm-2 - platform: ubuntu-24.04-arm + - platform: ubuntu-24.04-arm-2 + platform_name: ubuntu-24.04-arm runner: ubuntu-24.04-arm alpine: false - - name: windows-2025 - platform: windows-2025 + - platform: windows-2025 + platform_name: windows-2025 runner: windows-2025 alpine: false - - name: windows-11-arm - platform: windows-11-arm + - platform: windows-11-arm + platform_name: windows-11-arm runner: windows-11-arm alpine: false - - name: macos-15-x86_64 - platform: macos-15 x86_64 + - platform: macos-15-x86_64 + platform_name: macos-15 x86_64 runner: macos-15-large alpine: false - - name: macos-15-arm64 - platform: macos-15 arm64 + - platform: macos-15-arm64 + platform_name: macos-15 arm64 runner: macos-15 alpine: false - - name: alpine-dockerized - platform: alpine (dockerized) + - platform: alpine-dockerized + platform_name: alpine (dockerized) runner: ubuntu-24.04 alpine: true steps: @@ -57,17 +65,17 @@ jobs: shell: bash env: TOKIO_MULTI_THREAD: ${{ matrix.tokio_multi_thread }} - PLATFORM_LABEL: ${{ matrix.platform }} + PLATFORM_LABEL: ${{ matrix.platform_name }} run: bash .github/scripts/allocator_bench_unix.sh - if: ${{ !matrix.alpine && runner.os == 'Windows' }} shell: pwsh env: TOKIO_MULTI_THREAD: ${{ matrix.tokio_multi_thread }} - PLATFORM_LABEL: ${{ matrix.platform }} + PLATFORM_LABEL: ${{ matrix.platform_name }} run: ./.github/scripts/allocator_bench_windows.ps1 - if: ${{ matrix.alpine }} shell: bash env: TOKIO_MULTI_THREAD: ${{ matrix.tokio_multi_thread }} - PLATFORM_LABEL: ${{ matrix.platform }} + PLATFORM_LABEL: ${{ matrix.platform_name }} run: bash .github/scripts/allocator_bench_alpine.sh