diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build.yml similarity index 65% rename from .github/workflows/build-linux.yml rename to .github/workflows/build.yml index 12e17be..983ac6d 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,7 @@ -name: Build for Linux +name: Build on: + push: workflow_dispatch: jobs: @@ -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/