-
-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (36 loc) · 1.04 KB
/
build-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build and release
on:
release:
types: [created]
jobs:
build:
name: Build and release
runs-on: windows-latest
strategy:
matrix:
goos: [windows]
goarch: ["amd64"]
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ^1.22
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build stitch tool
run: go build -v -ldflags="-X 'main.versionString=${{ github.event.release.tag_name }}'" .
working-directory: ./bin/stitch
env:
GOARCH: ${{ matrix.goarch }}
GOOS: ${{ matrix.goos }}
CGO_ENABLED: 1
- name: Create distribution archive
run: go run -v ./scripts/dist
- name: Upload binary to release
uses: svenstaro/upload-release-action@v2
with:
file: dist/dist.zip
asset_name: noita-mapcap-${{ matrix.goos }}-${{ matrix.goarch }}.zip
overwrite: true