From 9f9cbe2e718d4250ad5083e0098ef97a029e919e Mon Sep 17 00:00:00 2001 From: Matthew Pope Date: Tue, 9 Apr 2024 11:35:34 -0700 Subject: [PATCH] Another attempt to fix matrix os --- .github/workflows/rust.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5e2d4893..35c1f7b7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -3,13 +3,13 @@ name: CI Build on: [push, pull_request] env: - os_with_codebuild: [ ubuntu-latest, windows-latest, macos-latest, "codebuild-ion-rust-${{ github.run_id }}-${{ github.run_attempt }}-arm-3.0-large", "codebuild-ion-rust-${{ github.run_id }}-${{ github.run_attempt }}-al2-5.0-large" ] - os_without_codebuild: [ ubuntu-latest, windows-latest, macos-latest ] + os_with_codebuild: '["ubuntu-latest", "windows-latest", "macos-latest", "{0}-arm-3.0-large", "{0}-al2-5.0-large"]' + os_without_codebuild: '["ubuntu-latest", "windows-latest", "macos-latest"]' jobs: build: name: Build and Test - runs-on: ${{ matrix.os }} + runs-on: ${{ format(matrix.os, "codebuild-ion-rust-${{ github.run_id }}-${{ github.run_attempt }}") }} # We want to run on external PRs, but not on internal ones as push automatically builds # H/T: https://github.com/Dart-Code/Dart-Code/commit/612732d5879730608baa9622bf7f5e5b7b51ae65 if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'amazon-ion/ion-rust'