Skip to content

Commit

Permalink
First attempt at actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jgustie committed Oct 10, 2019
1 parent 550b89c commit 4bacd23
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on: push
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
- name: Check out code
uses: actions/checkout@v1
- name: Get dependencies
run: go mod download
- name: Build
run: |
GOOS=linux GOARCH=amd64 go build -o konjure-linux-amd64 -ldflags '-X main.Version=1.0.0' .
GOOS=darwin GOARCH=amd64 go build -o konjure-darwin-amd64 -ldflags '-X main.Version=1.0.0' .
- name: Upload linux-amd64
uses: actions/upload-artifact@master
with:
name: konjure-linux-amd64
path: .
- name: Upload darwin-amd64
uses: actions/upload-artifact@master
with:
name: konjure-darwin-amd64
path: .

0 comments on commit 4bacd23

Please sign in to comment.