Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sekaiwish authored Aug 4, 2022
1 parent 556198a commit dd883a2
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push]

jobs:
build:
runs-on: windows-latest
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
Expand All @@ -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
Expand Down

0 comments on commit dd883a2

Please sign in to comment.