From dd883a22168bb48f9c87799c740934c84a0fd8ed Mon Sep 17 00:00:00 2001 From: wish Date: Thu, 4 Aug 2022 21:20:27 +1000 Subject: [PATCH] Update go.yml --- .github/workflows/go.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index cb7c147c4..2f56c0f75 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -4,7 +4,7 @@ on: [push] jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -14,13 +14,28 @@ jobs: with: go-version: 1.18 - - name: Build - run: go build -v + - name: Build Linux-amd64 + run: env GOOS=linux GOARCH=amd64 go build -v - - name: Upload artifacts + - name: Upload Linux-amd64 artifacts uses: actions/upload-artifact@v3 with: - name: Erupe + name: Linux-amd64 + path: | + ./erupe-ce + ./config.json + ./www/ + ./savedata/ + ./bin/ + ./RoadShopItems.csv + + - name: Build Windows-amd64 + run: env GOOS=windows GOARCH=amd64 go build -v + + - name: Upload Windows-amd64 artifacts + uses: actions/upload-artifact@v3 + with: + name: Windows-amd64 path: | ./erupe-ce.exe ./config.json