From 95c5d80c60b66d7cbeda607394f9af22df050ea1 Mon Sep 17 00:00:00 2001 From: Matthew Pope Date: Tue, 9 Apr 2024 14:42:51 -0700 Subject: [PATCH] Add step to dump runner config --- .github/workflows/rust.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 193e9b9e..73f6ed4a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -25,13 +25,14 @@ jobs: # We're using a matrix with a single entry so that we can define some config as YAML rather than # having to write escaped json in a string include: - - use-codebuild: ${{ github.repository_owner != 'amazon-ion' }} + - use-codebuild: ${{ github.repository_owner == 'amazon-ion' }} # ${{ vars.CODEBUILD_PROJECT_NAME != '' }} runs-on-names-cb: [ windows, macos, ubuntu, al2-intel, al2-arm ] runs-on-names: [ windows, macos, ubuntu ] # runs-on-versions: env: use-codebuild: ${{ vars.CODEBUILD_PROJECT_NAME != '' }} + codebuild-project-name: ${{ vars.CODEBUILD_PROJECT_NAME }} outputs: available-runners: ${{ matrix.use-codebuild && toJSON(matrix.runs-on-names-cb) || toJSON(matrix.runs-on-names) }} windows: windows-latest @@ -41,8 +42,13 @@ jobs: al2-arm: "codebuild-${{ vars.CODEBUILD_PROJECT_NAME }}-${{ github.run_id }}-${{ github.run_attempt }}-arm-3.0-large" # runs-on-versions: ${{ toJSON(matrix.runs-on-versions) }} steps: - - run: (:) - if: false + - name: Dump Config + run: | + echo '---- Matrix ----' + echo '${{ toJSON(matrix) }}' + echo 'vars.CODEBUILD_PROJECT_NAME = ${{vars.CODEBUILD_PROJECT_NAME}}' + env + # steps: # - name: Pass # id: setup-runners