Skip rust compilation units and add version flag #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: [ master ] | |
tags: ["v*.*.*"] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.18 | |
- name: Build Linux AMD64 | |
run: go build -v -o dwarf2json-linux-amd64 | |
env: | |
GOOS: linux | |
GOARCH: amd64 | |
- name: Build Windows AMD64 | |
run: go build -v -o dwarf2json-windows-amd64.exe | |
env: | |
GOOS: windows | |
GOARCH: amd64 | |
- name: Build Darwin AMD64 | |
run: go build -v -o dwarf2json-darwin-amd64 | |
env: | |
GOOS: darwin | |
GOARCH: amd64 | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dwarf2json | |
path: | | |
dwarf2json-linux-amd64 | |
dwarf2json-windows-amd64.exe | |
dwarf2json-darwin-amd64 | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
dwarf2json-linux-amd64 | |
dwarf2json-windows-amd64.exe | |
dwarf2json-darwin-amd64 |