From 86b8cc20452630116ba6a5fa057ee3168e5f9b25 Mon Sep 17 00:00:00 2001 From: zarazaex69 Date: Mon, 13 Apr 2026 12:27:07 +0300 Subject: [PATCH] fix(ci): fix golangci-lint version mistmatch and gomobile minimum api version --- .github/workflows/ci.yml | 8 ++++---- magefile.go | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 027df65..e62275c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.25.x' + go-version: '1.24.x' - name: golangci-lint uses: golangci/golangci-lint-action@v6 @@ -33,7 +33,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.25.x' + go-version: '1.24.x' - name: Install Mage run: go install github.com/magefile/mage@latest @@ -59,7 +59,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.25.x' + go-version: '1.24.x' - name: Install Linux Dependencies (Fyne) if: runner.os == 'Linux' @@ -88,7 +88,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.25.x' + go-version: '1.24.x' - name: Set up JDK uses: actions/setup-java@v4 diff --git a/magefile.go b/magefile.go index 49154a8..5b4ac2f 100644 --- a/magefile.go +++ b/magefile.go @@ -18,7 +18,7 @@ const ( module = "github.com/openlibrecommunity/olcrtc" buildDir = "build" ldflags = "-s -w" - goVersion = "1.25" + goVersion = "1.24" ) var ( @@ -114,6 +114,7 @@ func Mobile() error { } return sh.RunV("gomobile", "bind", "-target=android", + "-androidapi", "21", "-o", filepath.Join(buildDir, "olcrtc.aar"), "./mobile", )