Skip to content

Commit 8957ea9

Browse files
anjannathopenshift-merge-robot
authored andcommitted
choco: add github actions job to test building the chocolatey package
1 parent ad5d477 commit 8957ea9

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build Windows chocolatey
2+
on:
3+
push:
4+
branches:
5+
- "main"
6+
pull_request: {}
7+
jobs:
8+
build:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os:
14+
- windows-2022
15+
go:
16+
- 1.17
17+
steps:
18+
- name: Check out repository code
19+
uses: actions/checkout@v3
20+
- name: Set up Go
21+
uses: actions/setup-go@v3
22+
with:
23+
go-version: ${{ matrix.go }}
24+
- name: Build the chocolatey package
25+
run: make choco
26+
- name: Upload nupkg artifact
27+
uses: actions/upload-artifact@v3
28+
with:
29+
name: crc-chocolatey-nupkg
30+
path: "./packaging/chocolatey/crc/*.nupkg"

0 commit comments

Comments
 (0)