Skip to content

Commit

Permalink
Pass job outputs as serialized json
Browse files Browse the repository at this point in the history
  • Loading branch information
popematt committed Apr 9, 2024
1 parent ddf28ba commit f01244f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
al2-intel: "codebuild-${{ vars.CODEBUILD_PROJECT_NAME }}-${{ github.run_id }}-${{ github.run_attempt }}-al2-5.0-large"
al2-arm: "codebuild-${{ vars.CODEBUILD_PROJECT_NAME }}-${{ github.run_id }}-${{ github.run_attempt }}-arm-3.0-large"
outputs:
runners: ${{ matrix.use-codebuild && matrix.runs-on-names-cb || matrix.runs-on-names }}
runs-on-versions: ${{ matrix.runs-on-versions }}
runners: ${{ matrix.use-codebuild && toJSON(matrix.runs-on-names-cb) || toJSON(matrix.runs-on-names) }}
runs-on-versions: ${{ toJSON(matrix.runs-on-versions) }}
steps:
- run: (:)
if: false
Expand All @@ -52,14 +52,14 @@ jobs:
build:
name: Build and Test
needs: setup
runs-on: ${{ needs.setup.outputs.runner-versions[matrix.runner] }}
runs-on: ${{ fromJSON(needs.setup.outputs.runner-versions)[matrix.runner] }}
# runs-on: ${{ format(matrix.os, format('codebuild-ion-rust-{0}-{1}', 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'
strategy:
matrix:
runner: ${{ needs.setup.outputs.runners }}
runner: ${{ fromJSON(needs.setup.outputs.runners) }}
# os: ${{ vars.USE_CODEBUILD_RUNNERS && fromJSON(env.os_with_codebuild) || fromJSON(env.os_without_codebuild) }}
# build and test for different and interesting crate features
features: ['default', 'all', 'experimental-ion-hash', 'experimental']
Expand Down

0 comments on commit f01244f

Please sign in to comment.