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

63 lines
1.3 KiB
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:
go-version: ["1.20.5"]
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
- name: "Set up Go ${{ matrix.go-version }}"
uses: actions/setup-go@v3
2022-05-17 10:14:59 +00:00
with:
2023-02-28 16:25:09 +00:00
go-version: ${{ matrix.go-version }}
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: 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-
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