Skip to content

Commit 32d1b93

Browse files
committed
arm64 build
1 parent a551817 commit 32d1b93

File tree

1 file changed

+40
-46
lines changed

1 file changed

+40
-46
lines changed

.github/workflows/build.yaml

Lines changed: 40 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
- platform: windows
3131
os: windows-11-arm
3232
arch: arm64
33-
# - platform: linux
34-
# os: ubuntu-24.04-arm
35-
# arch: arm64
33+
- platform: linux
34+
os: ubuntu-24.04-arm
35+
arch: arm64
3636

3737
steps:
3838
- name: Setup rust
@@ -42,51 +42,45 @@ jobs:
4242
.\rustup-init.exe -y --default-toolchain stable
4343
$cargoPath = "$env:USERPROFILE\.cargo\bin"
4444
Add-Content $env:GITHUB_PATH $cargoPath
45-
- name: Verify Cargo Environment
46-
if: startsWith(matrix.os, 'windows-11-arm')
45+
46+
- name: Checkout
47+
uses: actions/checkout@v4
48+
with:
49+
submodules: recursive
50+
51+
- name: Setup Android Signing
52+
if: startsWith(matrix.platform,'android')
4753
run: |
48-
rustc --version
49-
cargo --version
54+
echo "${{ secrets.KEYSTORE }}" | base64 --decode > android/app/keystore.jks
55+
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> android/local.properties
56+
echo "storePassword=${{ secrets.STORE_PASSWORD }}" >> android/local.properties
57+
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/local.properties
5058
51-
# - name: Checkout
52-
# uses: actions/checkout@v4
53-
# with:
54-
# submodules: recursive
55-
#
56-
# - name: Setup Android Signing
57-
# if: startsWith(matrix.platform,'android')
58-
# run: |
59-
# echo "${{ secrets.KEYSTORE }}" | base64 --decode > android/app/keystore.jks
60-
# echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> android/local.properties
61-
# echo "storePassword=${{ secrets.STORE_PASSWORD }}" >> android/local.properties
62-
# echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/local.properties
63-
#
64-
#
65-
# - name: Setup Go
66-
# uses: actions/setup-go@v5
67-
# with:
68-
# go-version: '1.24.0'
69-
# cache-dependency-path: |
70-
# core/go.sum
71-
#
72-
# - name: Setup Flutter
73-
# uses: subosito/flutter-action@v2
74-
# with:
75-
# channel: ${{ (startsWith(matrix.os, 'windows-11-arm') || startsWith(matrix.os, 'ubuntu-24.04-arm')) && 'master' || 'stable' }}
76-
# cache: true
77-
#
78-
# - name: Get Flutter Dependency
79-
# run: flutter pub get
80-
#
81-
# - name: Setup
82-
# run: dart setup.dart ${{ matrix.platform }} ${{ matrix.arch && format('--arch {0}', matrix.arch) }} ${{ env.IS_STABLE == 'true' && '--env stable' || '' }}
83-
#
84-
# - name: Upload
85-
# uses: actions/upload-artifact@v4
86-
# with:
87-
# name: artifact-${{ matrix.platform }}${{ matrix.arch && format('-{0}', matrix.arch) }}
88-
# path: ./dist
89-
# overwrite: true
59+
- name: Setup Go
60+
uses: actions/setup-go@v5
61+
with:
62+
go-version: '1.24.0'
63+
cache-dependency-path: |
64+
core/go.sum
65+
66+
- name: Setup Flutter
67+
uses: subosito/flutter-action@v2
68+
with:
69+
channel: ${{ (startsWith(matrix.os, 'windows-11-arm') || startsWith(matrix.os, 'ubuntu-24.04-arm')) && 'master' || 'stable' }}
70+
cache: true
71+
72+
- name: Get Flutter Dependency
73+
run: flutter pub get
74+
75+
- name: Setup
76+
run: dart setup.dart ${{ matrix.platform }} ${{ matrix.arch && format('--arch {0}', matrix.arch) }} ${{ env.IS_STABLE == 'true' && '--env stable' || '' }}
77+
78+
- name: Upload
79+
uses: actions/upload-artifact@v4
80+
with:
81+
name: artifact-${{ matrix.platform }}${{ matrix.arch && format('-{0}', matrix.arch) }}
82+
path: ./dist
83+
overwrite: true
9084

9185
# changelog:
9286
# runs-on: ubuntu-latest

0 commit comments

Comments
 (0)