Skip to content

Commit

Permalink
chore: updated build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
BigJk committed Dec 11, 2023
1 parent 0bce2a8 commit f84e309
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
pre_command: "apt-get update && apt-get install --no-install-recommends -y pkg-config libasound2-dev libx11-dev gcc libc6-dev libglu1-mesa-dev libgl1-mesa-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev"
project_path: "./cmd/game_win"
binary_name: "end_of_eden_gl"
build_flags: "-tags ebitenginesinglethread"
extra_files: "./assets/"
ldflags: "-X 'github.com/BigJk/end_of_eden/git.Tag=${{ github.ref_name }}' -X 'github.com/BigJk/end_of_eden/git.CommitHash=${{ github.sha }}'"
goos: linux
Expand All @@ -53,6 +54,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
project_path: "./cmd/game"
binary_name: "end_of_eden_term"
build_flags: "-tags ebitenginesinglethread"
extra_files: "./assets/"
ldflags: "-X 'github.com/BigJk/end_of_eden/git.Tag=${{ github.ref_name }}' -X 'github.com/BigJk/end_of_eden/git.CommitHash=${{ github.sha }}'"
goos: windows
Expand Down Expand Up @@ -86,7 +88,7 @@ jobs:
go-version: '^1.20'
- name: Build
run: |
go build -ldflags="-X 'github.com/BigJk/end_of_eden/git.Tag=${{ github.ref_name }}' -X 'github.com/BigJk/end_of_eden/git.CommitHash=${{ github.sha }}'" -o end_of_eden ./cmd/game
go build -ldflags="-X 'github.com/BigJk/end_of_eden/git.Tag=${{ github.ref_name }}' -X 'github.com/BigJk/end_of_eden/git.CommitHash=${{ github.sha }}'" -o end_of_eden -tags ebitenginesinglethread ./cmd/game
export BIN=end_of_eden_term-$(basename ${GITHUB_REF})-macos-amd64
mkdir $BIN
cp ./end_of_eden $BIN/end_of_eden
Expand All @@ -113,7 +115,7 @@ jobs:
go-version: '^1.20'
- name: Build
run: |
go build -ldflags="-X 'github.com/BigJk/end_of_eden/git.Tag=${{ github.ref_name }}' -X 'github.com/BigJk/end_of_eden/git.CommitHash=${{ github.sha }}'" -o end_of_eden ./cmd/game_win
go build -ldflags="-X 'github.com/BigJk/end_of_eden/git.Tag=${{ github.ref_name }}' -X 'github.com/BigJk/end_of_eden/git.CommitHash=${{ github.sha }}'" -o end_of_eden -tags ebitenginesinglethread ./cmd/game_win
export BIN=end_of_eden_gl-$(basename ${GITHUB_REF})-macos-amd64
mkdir $BIN
cp ./end_of_eden $BIN/end_of_eden
Expand Down

0 comments on commit f84e309

Please sign in to comment.