Skip to content

Merge pull request #66 from mkonshie/skip-rust #21

Merge pull request #66 from mkonshie/skip-rust

Merge pull request #66 from mkonshie/skip-rust #21

Workflow file for this run

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