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

51 lines
1,000 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:
2023-02-28 16:25:09 +00:00
strategy:
matrix:
2024-01-11 08:40:51 +00:00
go-version: ["1.21.6"]
2023-02-28 16:25:09 +00:00
2022-05-17 10:14:59 +00:00
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
uses: actions/checkout@v3
with:
fetch-depth: 0
2023-02-28 16:25:09 +00:00
submodules: false
- name: "Set up Go ${{ matrix.go-version }}"
uses: actions/setup-go@v4
2023-02-28 16:25:09 +00:00
with:
go-version: ${{ matrix.go-version }}
2023-02-28 16:25:09 +00:00
2022-05-17 10:14:59 +00:00
- name: Build
run: make windows_installer BUILD_RE2_WASM=1
2022-05-17 10:14:59 +00:00
- name: Upload MSI
uses: actions/upload-artifact@v3
2022-05-17 10:14:59 +00:00
with:
path: crowdsec*msi
name: crowdsec.msi