diff --git a/.github/workflows/artifactory-nightly-cleanup.yml b/.github/workflows/artifactory-nightly-cleanup.yml index 31753f7da13..fb23f065ebc 100644 --- a/.github/workflows/artifactory-nightly-cleanup.yml +++ b/.github/workflows/artifactory-nightly-cleanup.yml @@ -7,7 +7,7 @@ on: jobs: wpilib-mvn-development_unused_cleanup: - runs-on: ubuntu-latest + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-2vcpu-ubuntu-2404', 'ubuntu-24.04') }} if: github.repository == 'wpilibsuite/allwpilib' && github.ref == 'refs/heads/main' steps: - uses: actions/checkout@v7 @@ -20,7 +20,7 @@ jobs: run: jf rt del --spec=.github/workflows/aql/wpilib-mvn-development_unused.aql wpilib-generic-gradle-cache_unused_cleanup: - runs-on: ubuntu-latest + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-2vcpu-ubuntu-2404', 'ubuntu-24.04') }} if: github.repository == 'wpilibsuite/allwpilib' && github.ref == 'refs/heads/main' steps: - uses: actions/checkout@v7 diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml index b5862363504..ae51e1cf7a1 100644 --- a/.github/workflows/bazel.yml +++ b/.github/workflows/bazel.yml @@ -12,21 +12,61 @@ jobs: fail-fast: false matrix: include: - - { name: "Linux System Core", classifier: "linuxsystemcore,linuxsystemcorestatic", os: ubuntu-24.04, container: wpilib/debian-base:trixie, action: "build" } - - { name: "Linux System Core Debug", classifier: "linuxsystemcoredebug,linuxsystemcorestaticdebug", os: ubuntu-24.04, container: wpilib/debian-base:trixie, action: "build" } - - { name: "Linux x86-64", classifier: "linuxx86-64,linuxx86-64static,headers,sources", os: ubuntu-24.04, container: wpilib/debian-base:trixie, action: "test" } - - { name: "Linux x86-64 Debug", classifier: "linuxx86-64debug,linuxx86-64staticdebug", os: ubuntu-24.04, container: wpilib/debian-base:trixie, action: "test" } - - - { name: "macOS", classifier: "osxuniversal,osxuniversaldebug,headers,sources,osxuniversalstatic,osxuniversalstaticdebug,linuxsystemcore,linuxsystemcoredebug,linuxsystemcorestatic,linuxsystemcorestaticdebug", os: macOS-15, container: "", action: "test" } - - - { name: "Windows x86-64", classifier: "windowsx86-64,windowsx86-64static,headers,sources", os: windows-2025, container: "", action: "test" } - - { name: "Windows x86-64 Debug", classifier: "windowsx86-64debug,windowsx86-64staticdebug", os: windows-2025, container: "", action: "test" } - - - { name: "Windows ARM64", classifier: "windowsarm64,windowsarm64static", os: windows-2025, container: "", action: "build" } - - { name: "Windows ARM64 Debug", classifier: "windowsarm64debug,windowsarm64staticdebug", os: windows-2025, container: "", action: "build" } - - - { name: "Windows System Core", classifier: "linuxsystemcore,linuxsystemcorestatic", os: windows-2025, container: "", action: "build" } - - { name: "Windows System Core Debug", classifier: "linuxsystemcoredebug,linuxsystemcorestaticdebug", os: windows-2025, container: "", action: "build" } + - name: "Linux System Core" + classifier: "linuxsystemcore,linuxsystemcorestatic" + os: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-4vcpu-ubuntu-2404', 'ubuntu-24.04') }} + container: wpilib/debian-base:trixie + action: "build" + - name: "Linux System Core Debug" + classifier: "linuxsystemcoredebug,linuxsystemcorestaticdebug" + os: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-4vcpu-ubuntu-2404', 'ubuntu-24.04') }} + container: wpilib/debian-base:trixie + action: "build" + - name: "Linux x86-64" + classifier: "linuxx86-64,linuxx86-64static,headers,sources" + os: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-4vcpu-ubuntu-2404', 'ubuntu-24.04') }} + container: wpilib/debian-base:trixie + action: "test" + - name: "Linux x86-64 Debug" + classifier: "linuxx86-64debug,linuxx86-64staticdebug" + os: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-4vcpu-ubuntu-2404', 'ubuntu-24.04') }} + container: wpilib/debian-base:trixie + action: "test" + - name: "macOS" + classifier: "osxuniversal,osxuniversaldebug,headers,sources,osxuniversalstatic,osxuniversalstaticdebug,linuxsystemcore,linuxsystemcoredebug,linuxsystemcorestatic,linuxsystemcorestaticdebug" + os: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-12vcpu-macos-15', 'macOS-15') }} + container: "" + action: "test" + - name: "Windows x86-64" + classifier: "windowsx86-64,windowsx86-64static,headers,sources" + os: windows-2025 + container: "" + action: "test" + - name: "Windows x86-64 Debug" + classifier: "windowsx86-64debug,windowsx86-64staticdebug" + os: windows-2025 + container: "" + action: "test" + - name: "Windows ARM64" + classifier: "windowsarm64,windowsarm64static" + os: windows-2025 + container: "" + action: "build" + - name: "Windows ARM64 Debug" + classifier: "windowsarm64debug,windowsarm64staticdebug" + os: windows-2025 + container: "" + action: "build" + - name: "Windows System Core" + classifier: "linuxsystemcore,linuxsystemcorestatic" + os: windows-2025 + container: "" + action: "build" + - name: "Windows System Core Debug" + classifier: "linuxsystemcoredebug,linuxsystemcorestaticdebug" + os: windows-2025 + container: "" + action: "build" name: "${{ matrix.action == 'test' && 'Test' || 'Build' }} ${{ matrix.name }}" runs-on: ${{ matrix.os }} @@ -105,7 +145,7 @@ jobs: buildifier: name: "buildifier" - runs-on: ubuntu-24.04 + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-2vcpu-ubuntu-2404', 'ubuntu-24.04') }} steps: - uses: actions/checkout@v7 @@ -126,7 +166,7 @@ jobs: if: ${{ failure() }} mod-lock: - runs-on: ubuntu-24.04 + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-2vcpu-ubuntu-2404', 'ubuntu-24.04') }} steps: - uses: actions/checkout@v7 @@ -148,7 +188,7 @@ jobs: non_robotpy_pregeneration: name: "Non-RobotPy Pregen" - runs-on: ubuntu-24.04 + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-2vcpu-ubuntu-2404', 'ubuntu-24.04') }} steps: - uses: actions/checkout@v7 with: { fetch-depth: 0 } @@ -178,7 +218,7 @@ jobs: robotpy_pregeneration: name: "Robotpy Pregeneration" - runs-on: ubuntu-24.04 + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-2vcpu-ubuntu-2404', 'ubuntu-24.04') }} steps: - uses: actions/checkout@v7 with: { fetch-depth: 0 } @@ -219,7 +259,7 @@ jobs: # that get transferred to the upstream mostrobotpy repository robotpy_format: name: "RobotPy Formatting" - runs-on: ubuntu-24.04 + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-2vcpu-ubuntu-2404', 'ubuntu-24.04') }} steps: - uses: actions/checkout@v7 with: diff --git a/.github/workflows/cmake-android.yml b/.github/workflows/cmake-android.yml index 521273c36ef..ee861919846 100644 --- a/.github/workflows/cmake-android.yml +++ b/.github/workflows/cmake-android.yml @@ -16,10 +16,10 @@ jobs: fail-fast: false matrix: include: - - os: ubuntu-24.04 + - os: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-4vcpu-ubuntu-2404', 'ubuntu-24.04') }} name: Android Arm64 abi: arm64-v8a - - os: ubuntu-24.04 + - os: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-4vcpu-ubuntu-2404', 'ubuntu-24.04') }} name: Android X64 abi: "x86_64" diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 1c0e30840da..1da5366be0c 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -16,11 +16,11 @@ jobs: fail-fast: false matrix: include: - - os: ubuntu-24.04 + - os: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-4vcpu-ubuntu-2404', 'ubuntu-24.04') }} name: Linux container: wpilib/systemcore-cross-debian:trixie flags: "--preset with-sccache -DCMAKE_BUILD_TYPE=Release -DWPILIB_WITH_EXAMPLES=ON" - - os: macOS-15 + - os: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-6vcpu-macos-15', 'macOS-15') }} name: macOS container: "" flags: "--preset with-sccache -DCMAKE_BUILD_TYPE=Release -DWPILIB_WITH_EXAMPLES=ON -DWPILIB_WITH_GUI=ON -DWPILIB_WITH_WPICAL=ON -DWPILIB_USE_SYSTEM_EIGEN=ON" diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 18ae266c83d..ead40d08ab7 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -9,7 +9,7 @@ concurrency: jobs: validation: name: "Validation" - runs-on: ubuntu-latest + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-2vcpu-ubuntu-2404', 'ubuntu-24.04') }} steps: - uses: actions/checkout@v7 - uses: gradle/actions/wrapper-validation@v6 @@ -29,7 +29,7 @@ jobs: artifact-name: Linux build-options: "-Ponlylinuxx86-64" name: "Build - ${{ matrix.artifact-name }}" - runs-on: ubuntu-24.04 + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-4vcpu-ubuntu-2404', 'ubuntu-24.04') }} needs: [validation] steps: - name: Check disk free space pre-cleanup @@ -108,7 +108,7 @@ jobs: build-options: "-PciReleaseOnly -Pbuildwinarm64 -Ponlywindowsarm64" task: "copyAllOutputs" outputs: "build/allOutputs" - - os: macOS-15 + - os: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-6vcpu-macos-15', 'macOS-15') }} artifact-name: macOS architecture: aarch64 task: "build" @@ -192,7 +192,7 @@ jobs: build-documentation: name: "Build - Documentation" - runs-on: ubuntu-24.04 + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-4vcpu-ubuntu-2404', 'ubuntu-24.04') }} needs: [validation] steps: - uses: actions/checkout@v7 @@ -284,7 +284,7 @@ jobs: combine: name: Combine needs: [build-docker, build-host, build-documentation] - runs-on: ubuntu-24.04 + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-4vcpu-ubuntu-2404', 'ubuntu-24.04') }} steps: - name: Free disk space if: | diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 4e75edff0d2..2bda8aff4de 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -7,7 +7,7 @@ jobs: permissions: contents: read pull-requests: write - runs-on: ubuntu-latest + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-2vcpu-ubuntu-2404', 'ubuntu-24.04') }} steps: - uses: actions/labeler@v7 with: diff --git a/.github/workflows/lint-format.yml b/.github/workflows/lint-format.yml index 825fb112d8f..5ca3145e0a2 100644 --- a/.github/workflows/lint-format.yml +++ b/.github/workflows/lint-format.yml @@ -14,14 +14,14 @@ concurrency: jobs: validation: name: "Validation" - runs-on: ubuntu-latest + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-2vcpu-ubuntu-2404', 'ubuntu-24.04') }} steps: - uses: actions/checkout@v7 - uses: gradle/actions/wrapper-validation@v6 wpiformat: name: "wpiformat" - runs-on: ubuntu-24.04 + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-4vcpu-ubuntu-2404', 'ubuntu-24.04') }} steps: - uses: actions/checkout@v7 with: @@ -60,7 +60,7 @@ jobs: tidy: name: "clang-tidy" - runs-on: ubuntu-24.04 + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-4vcpu-ubuntu-2404', 'ubuntu-24.04') }} needs: [validation] container: wpilib/debian-base:trixie steps: @@ -93,7 +93,7 @@ jobs: run: ${{ runner.temp }}/wpiformat/bin/wpiformat -no-format -tidy-changed -compile-commands=build/TargetedCompileCommands/linuxx86-64debug javaformat: name: "Java format" - runs-on: ubuntu-24.04 + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-4vcpu-ubuntu-2404', 'ubuntu-24.04') }} needs: [validation] container: wpilib/debian-base:trixie steps: @@ -126,7 +126,7 @@ jobs: if: ${{ failure() }} check-spelling: - runs-on: ubuntu-24.04 + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-4vcpu-ubuntu-2404', 'ubuntu-24.04') }} steps: - uses: actions/checkout@v7 - name: misspell diff --git a/.github/workflows/pregenerate.yml b/.github/workflows/pregenerate.yml index 2e5818852fb..ba61f90d8a8 100644 --- a/.github/workflows/pregenerate.yml +++ b/.github/workflows/pregenerate.yml @@ -14,7 +14,7 @@ concurrency: jobs: update: name: "Update" - runs-on: ubuntu-24.04 + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-2vcpu-ubuntu-2404', 'ubuntu-24.04') }} steps: - uses: actions/checkout@v7 with: diff --git a/.github/workflows/sanitizers.yml b/.github/workflows/sanitizers.yml index d905fa2e45a..c3ff7bcfad9 100644 --- a/.github/workflows/sanitizers.yml +++ b/.github/workflows/sanitizers.yml @@ -29,7 +29,7 @@ jobs: ctest-env: "" ctest-flags: "" name: "${{ matrix.name }}" - runs-on: ubuntu-24.04 + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-4vcpu-ubuntu-2404', 'ubuntu-24.04') }} container: wpilib/debian-base:trixie steps: - name: Install Dependencies diff --git a/.github/workflows/sentinel-build.yml b/.github/workflows/sentinel-build.yml index 10cf07f89f1..980735db2d1 100644 --- a/.github/workflows/sentinel-build.yml +++ b/.github/workflows/sentinel-build.yml @@ -12,7 +12,7 @@ concurrency: jobs: validation: name: "Validation" - runs-on: ubuntu-latest + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-2vcpu-ubuntu-2404', 'ubuntu-24.04') }} steps: - uses: actions/checkout@v7 - uses: gradle/actions/wrapper-validation@v6 @@ -33,7 +33,7 @@ jobs: artifact-name: Linux build-options: "-Ponlylinuxx86-64" name: "Build - ${{ matrix.artifact-name }}" - runs-on: ubuntu-24.04 + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-4vcpu-ubuntu-2404', 'ubuntu-24.04') }} needs: [validation] steps: - name: Free Disk Space @@ -98,7 +98,7 @@ jobs: build-options: "-PciReleaseOnly -Pbuildwinarm64 -Ponlywindowsarm64" task: "copyAllOutputs" outputs: "build/allOutputs" - - os: macOS-15 + - os: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-6vcpu-macos-15', 'macOS-15') }} artifact-name: macOS architecture: aarch64 task: "build" diff --git a/.github/workflows/upstream-utils.yml b/.github/workflows/upstream-utils.yml index ae5910321c8..a096805105c 100644 --- a/.github/workflows/upstream-utils.yml +++ b/.github/workflows/upstream-utils.yml @@ -14,7 +14,7 @@ concurrency: jobs: update: name: "Update" - runs-on: ubuntu-24.04 + runs-on: ${{ case(github.repository_owner == 'wpilibsuite', 'blacksmith-2vcpu-ubuntu-2404', 'ubuntu-24.04') }} steps: - uses: actions/checkout@v7 with: