Update go.yaml

adds artifact upload
adds bin/ artifact directory
This commit is contained in:
2023-03-07 10:50:17 +01:00
committed by GitHub
parent c3d49e3473
commit 815a66eb8c
+7 -2
View File
@@ -29,8 +29,13 @@ jobs:
run: | run: |
go get . go get .
- name: Create artifact directoy
run: mkdir bin
- name: Build - name: Build
run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o bin/spotigram_${{ matrix.os }}_${{ matrix.arch }} -v ./... run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o bin/spotigram_${{ matrix.os }}_${{ matrix.arch }} -v ./...
- name: Test - name: upload artifacts
run: go test -v ./... uses: actions/upload-artifact@v3.1.2
with:
path: bin/*