Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
SugarMGP committed Dec 6, 2024
1 parent e8702e7 commit 857d584
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build-linux.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build for Linux
name: Build

on:
push:
workflow_dispatch:

jobs:
Expand All @@ -15,18 +16,23 @@ jobs:
with:
go-version: 1.22

- name: Install XGO
run: |
docker pull techknowlogick/xgo:latest
go install src.techknowlogick.com/xgo@latest
- name: Build
run: go build -v -o 4u-online .
run: xgo -out 4uonline --targets=*/amd64 .

- name: Archive Output
run: |
mkdir -p artifacts
mv 4u-online artifacts/
mv 4uonline* artifacts/
cp README.md artifacts/
cp config.example.yaml artifacts/config.yaml
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: build-output-linux
name: build-output
path: artifacts/

0 comments on commit 857d584

Please sign in to comment.