@@ -154,6 +154,11 @@ jobs:
154154 cross : ' false'
155155 os : windows-latest
156156 target : aarch64-pc-windows-msvc
157+ - binary_name : forge-aarch64-linux-android
158+ binary_path : target/aarch64-linux-android/release/forge
159+ cross : ' true'
160+ os : ubuntu-latest
161+ target : aarch64-linux-android
157162 steps :
158163 - name : Checkout Code
159164 uses : actions/checkout@v5
@@ -163,17 +168,18 @@ jobs:
163168 with :
164169 target : ${{ matrix.target }}
165170 - name : Add Rust target
171+ if : ${{ matrix.cross == 'false' }}
166172 run : rustup target add ${{ matrix.target }}
167173 - name : Set Rust Flags
168- if : ' !contains(matrix.target, '' -unknown-linux-'' )'
174+ if : ' !( contains(matrix.target, '' -unknown-linux-'' ) || contains(matrix.target, '' -android '' ) )'
169175 run : echo "RUSTFLAGS=-C target-feature=+crt-static" >> $GITHUB_ENV
170176 - name : Build Binary
171177 uses : ClementTsang/cargo-action@v0.0.7
172178 with :
173179 command : build --release
174180 args : --target ${{ matrix.target }}
175181 use-cross : ${{ matrix.cross }}
176- cross-version : 0.2.4
182+ cross-version : 0.2.5
177183 env :
178184 RUSTFLAGS : ${{ env.RUSTFLAGS }}
179185 POSTHOG_API_SECRET : ${{secrets.POSTHOG_API_SECRET}}
@@ -238,6 +244,11 @@ jobs:
238244 cross : ' false'
239245 os : windows-latest
240246 target : aarch64-pc-windows-msvc
247+ - binary_name : forge-aarch64-linux-android
248+ binary_path : target/aarch64-linux-android/release/forge
249+ cross : ' true'
250+ os : ubuntu-latest
251+ target : aarch64-linux-android
241252 steps :
242253 - name : Checkout Code
243254 uses : actions/checkout@v5
@@ -247,17 +258,18 @@ jobs:
247258 with :
248259 target : ${{ matrix.target }}
249260 - name : Add Rust target
261+ if : ${{ matrix.cross == 'false' }}
250262 run : rustup target add ${{ matrix.target }}
251263 - name : Set Rust Flags
252- if : ' !contains(matrix.target, '' -unknown-linux-'' )'
264+ if : ' !( contains(matrix.target, '' -unknown-linux-'' ) || contains(matrix.target, '' -android '' ) )'
253265 run : echo "RUSTFLAGS=-C target-feature=+crt-static" >> $GITHUB_ENV
254266 - name : Build Binary
255267 uses : ClementTsang/cargo-action@v0.0.7
256268 with :
257269 command : build --release
258270 args : --target ${{ matrix.target }}
259271 use-cross : ${{ matrix.cross }}
260- cross-version : 0.2.4
272+ cross-version : 0.2.5
261273 env :
262274 RUSTFLAGS : ${{ env.RUSTFLAGS }}
263275 POSTHOG_API_SECRET : ${{secrets.POSTHOG_API_SECRET}}
0 commit comments