Skip to content

all: add debugging output and update pass lookup key #21

all: add debugging output and update pass lookup key

all: add debugging output and update pass lookup key #21

Workflow file for this run

name: Build and release
on:
push:
tags:
- "*.*.*"
workflow_dispatch:
jobs:
build-and-release:
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
include:
- goos: darwin
os: macos-latest
cgo: 1
- goos: linux
os: ubuntu-latest
- goos: windows
os: ubuntu-latest
suffix: .exe
runs-on: ${{ matrix.os }}
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: ${{ matrix.cgo }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: stable
- name: Build
run: go build -ldflags "-X main.version=$GITHUB_REF_NAME -X main.repo=$GITHUB_REPOSITORY" -o nec-$GOOS-$GOARCH${{ matrix.suffix }}
- name: Release
uses: softprops/action-gh-release@v1
with:
files: nec-*-*