2022-06-17 14:12:49 +00:00
|
|
|
name: build-msi (windows)
|
2022-05-17 10:14:59 +00:00
|
|
|
|
|
|
|
on:
|
2023-01-13 13:16:17 +00:00
|
|
|
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:
|
2022-11-28 09:52:42 +00:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- releases/**
|
2023-01-13 13:16:17 +00:00
|
|
|
paths:
|
|
|
|
- windows/installer/*.wxs
|
|
|
|
- .github/workflows/ci-windows-build-msi.yml
|
2022-05-17 10:14:59 +00:00
|
|
|
|
2023-01-13 13:16:17 +00:00
|
|
|
jobs:
|
2022-05-17 10:14:59 +00:00
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: windows-2019
|
2023-02-28 16:25:09 +00:00
|
|
|
|
2022-05-17 10:14:59 +00:00
|
|
|
steps:
|
2023-02-28 16:25:09 +00:00
|
|
|
|
2022-05-17 10:14:59 +00:00
|
|
|
- name: Check out code into the Go module directory
|
2024-01-30 09:20:25 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-01-13 13:16:17 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2023-02-28 16:25:09 +00:00
|
|
|
submodules: false
|
|
|
|
|
2024-01-30 09:20:25 +00:00
|
|
|
- name: "Set up Go"
|
|
|
|
uses: actions/setup-go@v5
|
2023-02-28 16:25:09 +00:00
|
|
|
with:
|
2024-04-05 13:11:11 +00:00
|
|
|
go-version: "1.21.9"
|
2023-02-28 16:25:09 +00:00
|
|
|
|
2022-05-17 10:14:59 +00:00
|
|
|
- name: Build
|
2023-06-23 12:25:29 +00:00
|
|
|
run: make windows_installer BUILD_RE2_WASM=1
|
2022-05-17 10:14:59 +00:00
|
|
|
- name: Upload MSI
|
2024-03-14 13:04:45 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-05-17 10:14:59 +00:00
|
|
|
with:
|
|
|
|
path: crowdsec*msi
|
|
|
|
name: crowdsec.msi
|