diff --git a/.github/workflows/windows-installer.yml b/.github/workflows/windows-installer.yml index 47361c3abe..80df491292 100644 --- a/.github/workflows/windows-installer.yml +++ b/.github/workflows/windows-installer.yml @@ -6,48 +6,48 @@ on: pull_request: {} jobs: - save-correlation-id: + save-gh-context: runs-on: ubuntu-latest strategy: fail-fast: false steps: - - name: Save the ID number in an artifact + - name: Save the GH context in an artifact shell: bash env: - ID: ${{ github.sha }} - run: echo $ID > id.txt + GH_CONTEXT: ${{ toJSON(github) }} + run: echo $GH_CONTEXT > gh_context.json - - name: Upload the ID number + - name: Upload the GH context artifact uses: actions/upload-artifact@v3 with: - name: id - path: ./id.txt + name: gh_context + path: ./gh_context.json - build: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: - - windows-2022 - go: - - '1.20' - steps: - - name: Check out repository code - uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: ${{ matrix.go }} - - name: Set path for heat.exe and light.exe - run: echo "$WIX\\bin" >>$GITHUB_PATH - shell: bash - - name: Build Windows installer - run: make out/windows-amd64/crc-windows-installer.zip - - name: Upload windows installer artifact - uses: actions/upload-artifact@v3 - with: - name: Windows Installer (${{ matrix.os }}) - path: "./out/windows-amd64/crc-windows-installer.zip" + # build: + # runs-on: ${{ matrix.os }} + # strategy: + # fail-fast: false + # matrix: + # os: + # - windows-2022 + # go: + # - '1.20' + # steps: + # - name: Check out repository code + # uses: actions/checkout@v3 + # - name: Set up Go + # uses: actions/setup-go@v4 + # with: + # go-version: ${{ matrix.go }} + # - name: Set path for heat.exe and light.exe + # run: echo "$WIX\\bin" >>$GITHUB_PATH + # shell: bash + # - name: Build Windows installer + # run: make out/windows-amd64/crc-windows-installer.zip + # - name: Upload windows installer artifact + # uses: actions/upload-artifact@v3 + # with: + # name: Windows Installer (${{ matrix.os }}) + # path: "./out/windows-amd64/crc-windows-installer.zip"