actions: add windows e2e #1835
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Windows installer | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: {} | |
jobs: | |
save-gh-context: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Save the GH context in an artifact | |
shell: bash | |
env: | |
GH_CONTEXT: ${{ toJSON(github) }} | |
run: echo $GH_CONTEXT > gh_context.json | |
- name: Upload the GH context artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
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" |