@@ -211,7 +211,7 @@ jobs:
211211
212212 update-release :
213213 name : Update Draft Release
214- needs : [ common, android, ios, windows, linux, macos ]
214+ needs : [ common, android, ios, windows, linux, linux-arm64, macos ]
215215 runs-on : ubuntu-latest
216216 steps :
217217 - name : Run Release Drafter
@@ -336,7 +336,8 @@ jobs:
336336
337337 echo "Removing previous files from branch"
338338
339- rm -rf *.deb *.rpm
339+ find . -maxdepth 1 -type f -name '*.deb' ! -name '*arm64*' -delete
340+ find . -maxdepth 1 -type f -name '*.rpm' ! -name '*aarch64*' -delete
340341
341342 echo "Copying new build files"
342343
@@ -352,6 +353,48 @@ jobs:
352353 git branch -m apk
353354 git push --force origin apk
354355
356+ linux-arm64 :
357+ name : Linux ARM64 Flutter Build
358+ needs : common
359+ runs-on : ubuntu-24.04-arm
360+ steps :
361+ - uses : actions/checkout@v4
362+
363+ - name : Linux ARM64 Workflow
364+ uses : ./.github/actions/linux-arm64
365+ with :
366+ VERSION_NAME : ${{needs.common.outputs.VERSION_NAME}}
367+ VERSION_CODE : ${{needs.common.outputs.VERSION_CODE}}
368+
369+ - name : Upload packages to apk branch
370+ if : ${{ github.repository == 'fossasia/pslab-app' }}
371+ run : |
372+ git config --global user.name "github-actions[bot]"
373+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
374+
375+ git clone --branch=apk https://${{ github.repository_owner }}:${{ github.token }}@github.com/${{ github.repository }} apk
376+ cd apk
377+
378+ branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
379+
380+ echo "Removing previous files from branch"
381+
382+ rm -rf *arm64*.deb *aarch64*.rpm
383+
384+ echo "Copying new build files"
385+
386+ cp -v ../*.deb .
387+ cp -v ../*.rpm .
388+
389+ echo "Pushing to apk branch"
390+
391+ git checkout --orphan temporary
392+ git add --all .
393+ git commit -am "[Auto] Update Linux ARM64 Packages from $branch ($(date +%Y-%m-%d.%H:%M:%S))"
394+ git branch -D apk
395+ git branch -m apk
396+ git push --force origin apk
397+
355398 macos :
356399 name : macOS Flutter Build
357400 needs : common
0 commit comments