Update go.yaml
adds artifact upload adds bin/ artifact directory
This commit is contained in:
@@ -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/*
|
||||||
|
|||||||
Reference in New Issue
Block a user