Skip to content

Commit

Permalink
Upgrade Go version 1.17 -> 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
sionleroux committed Sep 11, 2023
1 parent 5f67bf8 commit e6cba9d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-exe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.21
- name: Install dependencies
shell: bash
run: sudo apt-get -y install libgl1-mesa-dev xorg-dev libasound2-dev
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.21
- name: Install dependencies
shell: bash
run: go get github.com/akavel/rsrc
Expand All @@ -54,7 +54,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.21
- name: Build Mac exe
shell: bash
run: go build -v -o dist/Cr1ckt.app/Contents/MacOS/cr1ckt
Expand All @@ -76,7 +76,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.21
- name: Install dependencies
shell: bash
run: sudo apt-get -y install libgl1-mesa-dev xorg-dev libasound2-dev
Expand All @@ -101,7 +101,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.21
- name: Build Web binary
shell: bash
run: GOOS=js GOARCH=wasm go build -v -ldflags "-w -s" -o dist/web/cr1ckt.wasm
Expand All @@ -125,7 +125,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.21
- name: Set up our JDK environment
uses: actions/setup-java@v1.4.3
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ If you put a copy of the `maps.ldtk` file with your changes in it in the same fo

To build the game yourself, run: `go build .`

I'm using Go 1.17 for this. You might have luck with an older version but the go:embed feature is only available in 1.16 so you can't go lower than that.
I'm using Go 1.21 for this. You might have luck with an older version but the go:embed feature is only available in 1.16 so you can't go lower than that.

The Go build system will handle the rest of the dependencies for you but if you're curious, it's using:
- [ebiten](https://github.com/hajimehoshi/ebiten/) simple 2D game library
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/sinisterstuf/cr1ckt

go 1.17
go 1.21

require (
github.com/hajimehoshi/ebiten/v2 v2.5.9
Expand Down

0 comments on commit e6cba9d

Please sign in to comment.