crowdsec/.github/workflows/ci-windows-build-msi.yml

44 lines
867 B
YAML
Raw Normal View History

name: build-msi (windows)
2022-05-17 10:14:59 +00:00
on:
release:
types:
- prereleased
push:
branches:
- master
- releases/**
paths:
- windows/installer/*.wxs
- .github/workflows/ci-windows-build-msi.yml
2022-05-17 10:14:59 +00:00
pull_request:
branches:
- master
- releases/**
paths:
- windows/installer/*.wxs
- .github/workflows/ci-windows-build-msi.yml
2022-05-17 10:14:59 +00:00
jobs:
2022-05-17 10:14:59 +00:00
build:
name: Build
runs-on: windows-2019
steps:
2023-02-15 13:27:17 +00:00
- name: Set up Go 1.20
uses: actions/setup-go@v3
2022-05-17 10:14:59 +00:00
with:
2023-02-15 13:27:17 +00:00
go-version: 1.20.1
2022-05-17 10:14:59 +00:00
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0
2022-05-17 10:14:59 +00:00
- name: Build
run: make windows_installer
- name: Upload MSI
uses: actions/upload-artifact@v3
2022-05-17 10:14:59 +00:00
with:
path: crowdsec*msi
name: crowdsec.msi