63 lines
1.3 KiB
YAML
63 lines
1.3 KiB
YAML
name: build-msi (windows)
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- prereleased
|
|
push:
|
|
branches:
|
|
- master
|
|
- releases/**
|
|
paths:
|
|
- windows/installer/*.wxs
|
|
- .github/workflows/ci-windows-build-msi.yml
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- releases/**
|
|
paths:
|
|
- windows/installer/*.wxs
|
|
- .github/workflows/ci-windows-build-msi.yml
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
go-version: ["1.20.5"]
|
|
|
|
name: Build
|
|
runs-on: windows-2019
|
|
|
|
steps:
|
|
|
|
- name: "Set up Go ${{ matrix.go-version }}"
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: false
|
|
|
|
- name: Cache Go modules
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/go/pkg/mod
|
|
~/.cache/go-build
|
|
~/Library/Caches/go-build
|
|
%LocalAppData%\go-build
|
|
key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-${{ matrix.go-version }}-go-
|
|
|
|
- name: Build
|
|
run: make windows_installer BUILD_RE2_WASM=1
|
|
- name: Upload MSI
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
path: crowdsec*msi
|
|
name: crowdsec.msi
|