Skip to content

Commit

Permalink
Add aarm64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
HotaruBlaze committed Oct 9, 2023
1 parent 1b92f82 commit d872da5
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ env:
IMAGE_NAME: gotes3mp

jobs:
build-linux:
name: Build Linux
build-linux-x64:
name: Build Linux - x64
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Build-Linux
run: CGO_ENABLED=0 go build -ldflags="-X 'main.Build=${{ github.event.release.tag_name }}' -X 'main.GitCommit=$GITHUB_SHA'" -o build/goTES3MP-Linux src/*.go
- name: Generate default config
run: cd build/ &&chmod +x goTES3MP-Linux && ./goTES3MP-Linux
run: cd build/ && chmod +x goTES3MP-Linux && ./goTES3MP-Linux

- name: GH Release
uses: softprops/[email protected]
Expand All @@ -39,7 +39,35 @@ jobs:
files: |
build/goTES3MP-Linux
build/config.yaml
build-linux-aarch64:
name: Build Linux - aarch64
runs-on: self-hosted
permissions:
contents: write
discussions: write
steps:
- uses: actions/checkout@v4
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: ^1.20
stable: true
id: linux-build
- name: Run Tests
run: go test ./src/...
- name: Build-Linux
run: CGO_ENABLED=0 go build -ldflags="-X 'main.Build=${{ github.event.release.tag_name }}' -X 'main.GitCommit=$GITHUB_SHA'" -o build/goTES3MP-Linux-aarm64 src/*.go
- name: Generate default config
run: cd build/ && chmod +x goTES3MP-Linux-aarm64 && ./goTES3MP-Linux-aarm64

- name: GH Release
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
build/goTES3MP-Linux-aarm64
build/config.yaml
build-windows:
name: Build Windows
runs-on: ubuntu-latest
Expand Down

0 comments on commit d872da5

Please sign in to comment.