From e6cba9df4bf3dc125afab6a18c1db7e0461a2c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Si=C3=B4n=20le=20Roux?= Date: Tue, 12 Sep 2023 00:35:33 +0200 Subject: [PATCH] Upgrade Go version 1.17 -> 1.21 --- .github/workflows/build-exe.yml | 12 ++++++------ README.md | 2 +- go.mod | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-exe.yml b/.github/workflows/build-exe.yml index 23079c4..d1e93e8 100644 --- a/.github/workflows/build-exe.yml +++ b/.github/workflows/build-exe.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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: diff --git a/README.md b/README.md index d6e9661..1afac0b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/go.mod b/go.mod index bb30641..5ba703c 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/sinisterstuf/cr1ckt -go 1.17 +go 1.21 require ( github.com/hajimehoshi/ebiten/v2 v2.5.9