Skip to content

Commit

Permalink
♻️ upgrade go version for mobile targets
Browse files Browse the repository at this point in the history
  • Loading branch information
niuhuan committed Nov 3, 2023
1 parent 6e988a0 commit d8c8d74
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
workflow_dispatch:

env:
go_version: '1.17'
go_version_desktop: '1.17'
go_version_mobile: '1.18'
flutter_channel: 'stable'
ndk_version: '23.1.7779620'
GH_TOKEN: ${{ secrets.GH_TOKEN }}
Expand All @@ -31,7 +32,7 @@ jobs:
ref: 'master'
- uses: actions/setup-go@v2
with:
go-version: ${{ env.go_version }}
go-version: ${{ env.go_version_desktop }}
- name: Cache go modules
uses: actions/cache@v3
with:
Expand All @@ -57,42 +58,54 @@ jobs:
- target: windows
host: windows-latest
flutter_version: '2.10.3'
go_version: ${{ env.go_version_desktop }}
- target: macos
host: macos-latest
flutter_version: '2.10.3'
go_version: ${{ env.go_version_desktop }}
- target: linux
host: ubuntu-latest
flutter_version: '2.10.3'
go_version: ${{ env.go_version_desktop }}
- target: ios
host: macos-latest
flutter_version: '3.10.5'
go_version: ${{ env.go_version_mobile }}
- target: ios
host: macos-latest
flutter_version: '2.10.5'
go_version: ${{ env.go_version_mobile }}
- target: android-arm32
host: ubuntu-latest
flutter_version: '3.10.5'
go_version: ${{ env.go_version_mobile }}
- target: android-arm64
host: ubuntu-latest
flutter_version: '3.10.5'
go_version: ${{ env.go_version_mobile }}
- target: android-x86_64
host: ubuntu-latest
flutter_version: '3.10.5'
go_version: ${{ env.go_version_mobile }}
- target: android-arm32
host: ubuntu-latest
flutter_version: '2.10.5'
go_version: ${{ env.go_version_mobile }}
- target: android-arm64
host: ubuntu-latest
flutter_version: '2.10.5'
go_version: ${{ env.go_version_mobile }}
- target: android-x86_64
host: ubuntu-latest
flutter_version: '2.10.5'
go_version: ${{ env.go_version_mobile }}

runs-on: ${{ matrix.config.host }}

env:
TARGET: ${{ matrix.config.target }}
flutter_version: ${{ matrix.config.flutter_version }}
go_version: ${{ matrix.config.go_version }}

steps:
- name: Checkout
Expand Down

0 comments on commit d8c8d74

Please sign in to comment.