mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-21 23:22:34 +01:00
ci: remove redundant go.yml workflow
go-improved.yml is a superset (tests + build). Also fix its path trigger to reference itself and include main.go.
This commit is contained in:
3
.github/workflows/go-improved.yml
vendored
3
.github/workflows/go-improved.yml
vendored
@@ -14,7 +14,8 @@ on:
|
|||||||
- 'server/**'
|
- 'server/**'
|
||||||
- 'go.mod'
|
- 'go.mod'
|
||||||
- 'go.sum'
|
- 'go.sum'
|
||||||
- '.github/workflows/go.yml'
|
- 'main.go'
|
||||||
|
- '.github/workflows/go-improved.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|||||||
58
.github/workflows/go.yml
vendored
58
.github/workflows/go.yml
vendored
@@ -1,58 +0,0 @@
|
|||||||
name: Build
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- 'common/**'
|
|
||||||
- 'config/**'
|
|
||||||
- 'network/**'
|
|
||||||
- 'server/**'
|
|
||||||
- 'go.mod'
|
|
||||||
- 'go.sum'
|
|
||||||
- 'main.go'
|
|
||||||
- '.github/workflows/go.yml'
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version: '1.25'
|
|
||||||
|
|
||||||
- name: Build Linux-amd64
|
|
||||||
run: env GOOS=linux GOARCH=amd64 go build -v
|
|
||||||
|
|
||||||
- name: Upload Linux-amd64 artifacts
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: Linux-amd64
|
|
||||||
path: |
|
|
||||||
./erupe-ce
|
|
||||||
./config.json
|
|
||||||
./www/
|
|
||||||
./savedata/
|
|
||||||
./bin/
|
|
||||||
./bundled-schema/
|
|
||||||
|
|
||||||
- name: Build Windows-amd64
|
|
||||||
run: env GOOS=windows GOARCH=amd64 go build -v
|
|
||||||
|
|
||||||
- name: Upload Windows-amd64 artifacts
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: Windows-amd64
|
|
||||||
path: |
|
|
||||||
./erupe-ce.exe
|
|
||||||
./config.json
|
|
||||||
./www/
|
|
||||||
./savedata/
|
|
||||||
./bin/
|
|
||||||
./bundled-schema/
|
|
||||||
Reference in New Issue
Block a user