n/a
Some checks failed
Build Go project / build (push) Failing after 5m16s

This commit is contained in:
Salastil
2025-11-16 13:46:17 -05:00
parent d4c676fafa
commit 4347455435
2 changed files with 18 additions and 17 deletions

View File

@@ -1,29 +1,31 @@
name: Build
name: Build Go project
on:
push:
branches: ["master"]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.22"
- name: Build
- name: Build binary
run: |
mkdir -p dist
go mod download
go build -o Sneedchat-Discord-Bridge .
go build -o dist/Sneedchat-Discord-Bridge .
- name: Archive build artifact
uses: actions/upload-artifact@v4
- name: Upload Gitea artifact
uses: https://gitea.com/actions/upload-artifact@v1
with:
name: sneedchatdiscordbridge
path: Sneedchat-Discord-Bridge
path: dist/Sneedchat-Discord-Bridge

View File

@@ -3,32 +3,31 @@ name: Build & Release
on:
push:
tags:
- 'v*.*.*'
- "v*.*.*"
jobs:
build:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
go-version: "1.22"
- name: Build binaries
- name: Build release binaries
run: |
mkdir -p dist
GOOS=linux GOARCH=amd64 go build -o dist/sneedchat-bridge-linux-amd64 .
GOOS=linux GOARCH=arm64 go build -o dist/sneedchat-bridge-linux-arm64 .
GOOS=windows GOARCH=amd64 go build -o dist/sneedchat-bridge-windows-amd64.exe .
GOOS=darwin GOARCH=amd64 go build -o dist/sneedchat-bridge-macos-amd64 .
GOOS=darwin GOARCH=arm64 go build -o dist/sneedchat-bridge-macos-arm64 .
- name: Create Release
uses: https://gitea.com/actions/release-action@v1
- name: Publish to Gitea Release
uses: https://gitea.com/actions/release-action@v2
with:
api_key: ${{ secrets.CI_TOKEN }}
owner: Salastil