Skip to content

Commit

Permalink
installer: gh context
Browse files Browse the repository at this point in the history
  • Loading branch information
jsliacan committed Dec 19, 2023
1 parent 78ed21f commit bb0dd9b
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/windows-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit bb0dd9b

Please sign in to comment.