mirror of
https://github.com/Dadido3/noita-mapcap.git
synced 2024-11-22 21:17:33 +00:00
David Vogel
23ca6ac8c3
- Github checkout action doesn't load submodules by default, enable that - Update README.md
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
name: Build and release
|
|
|
|
on:
|
|
release:
|
|
types: [created]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
name: Build and release
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
goos: [windows]
|
|
goarch: ["amd64"]
|
|
|
|
steps:
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ^1.18
|
|
|
|
- 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 }}
|
|
|
|
- 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
|