commit 3d38ec7f38e5a5524cb33ce1a7d7ef0cabc9fe45
Author: Wim <wim@42.be>
Date: Sun Jun 28 18:11:02 2020 +0000
diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml
index 438066a..37de828 100644
--- a/.github/workflows/development.yml
+++ b/.github/workflows/development.yml
@@ -1311 +1311 @@ jobs:
- test:
+ test-build-upload:
- platform: [ubuntu-latest, macos-latest, windows-latest]
+ platform: [ubuntu-latest]
@@ -274 +2729 @@ jobs:
- run: go test ./...
\ No newline at end of file
+ run: go test ./...
+ - name: Build
+ run: |
+ mkdir -p output/{win,lin,arm,mac}
+ VERSION = $(git describe --tags)
+ GOOS=linux GOARCH=amd64 go build -ldflags "-s -X main.githash=$(git log --pretty=format:'%h' -n 1)" -o output/lin/matterbridge-$VERSION-linux-amd64
+ GOOS=windows GOARCH=amd64 go build -ldflags "-s -X main.githash=$(git log --pretty=format:'%h' -n 1)" -o output/win/matterbridge-$VERSION-windows-amd64.exe
+ GOOS=darwin GOARCH=amd64 go build -ldflags "-s -X main.githash=$(git log --pretty=format:'%h' -n 1)" -o output/mac/matterbridge-$VERSION-darwin-amd64
+ - name: Upload linux 64-bit
+ if: startsWith(matrix.go-version,'1.14')
+ uses: actions/upload-artifact@v2
+ with:
+ name: linux
+ path: output/lin
+ - name: Upload windows 64-bit
+ if: startsWith(matrix.go-version,'1.14')
+ uses: actions/upload-artifact@v2
+ with:
+ name: windows
+ path: output/win
+ - name: Upload darwin 64-bit
+ if: startsWith(matrix.go-version,'1.14')
+ uses: actions/upload-artifact@v2
+ with:
+ name: darwin
+ path: output/mac