-
Notifications
You must be signed in to change notification settings - Fork 847
chore: add upload of ARM64 build to apk branch #3113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d374f05
78e313f
9c3e064
f377344
de74e30
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -211,7 +211,7 @@ jobs: | |
|
|
||
| update-release: | ||
| name: Update Draft Release | ||
| needs: [ common, android, ios, windows, linux, macos ] | ||
| needs: [ common, android, ios, windows, linux, linux-arm64, macos ] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Run Release Drafter | ||
|
|
@@ -336,7 +336,8 @@ jobs: | |
|
|
||
| echo "Removing previous files from branch" | ||
|
|
||
| rm -rf *.deb *.rpm | ||
| find . -maxdepth 1 -type f -name '*.deb' ! -name '*arm64*' -delete | ||
| find . -maxdepth 1 -type f -name '*.rpm' ! -name '*aarch64*' -delete | ||
|
|
||
| echo "Copying new build files" | ||
|
|
||
|
|
@@ -352,6 +353,48 @@ jobs: | |
| git branch -m apk | ||
| git push --force origin apk | ||
|
|
||
| linux-arm64: | ||
| name: Linux ARM64 Flutter Build | ||
| needs: common | ||
| runs-on: ubuntu-24.04-arm | ||
marcnause marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Linux ARM64 Workflow | ||
| uses: ./.github/actions/linux-arm64 | ||
| with: | ||
| VERSION_NAME: ${{needs.common.outputs.VERSION_NAME}} | ||
| VERSION_CODE: ${{needs.common.outputs.VERSION_CODE}} | ||
|
|
||
| - name: Upload packages to apk branch | ||
| if: ${{ github.repository == 'fossasia/pslab-app' }} | ||
| run: | | ||
| git config --global user.name "github-actions[bot]" | ||
| git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
|
|
||
| git clone --branch=apk https://${{ github.repository_owner }}:${{ github.token }}@github.com/${{ github.repository }} apk | ||
| cd apk | ||
|
|
||
| branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} | ||
|
|
||
| echo "Removing previous files from branch" | ||
|
|
||
| rm -rf *arm64*.deb *aarch64*.rpm | ||
|
|
||
| echo "Copying new build files" | ||
|
|
||
| cp -v ../*.deb . | ||
| cp -v ../*.rpm . | ||
|
|
||
marcnause marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| echo "Pushing to apk branch" | ||
|
|
||
| git checkout --orphan temporary | ||
| git add --all . | ||
| git commit -am "[Auto] Update Linux ARM64 Packages from $branch ($(date +%Y-%m-%d.%H:%M:%S))" | ||
| git branch -D apk | ||
| git branch -m apk | ||
| git push --force origin apk | ||
marcnause marked this conversation as resolved.
Show resolved
Hide resolved
Comment on lines
+391
to
+396
|
||
|
|
||
| macos: | ||
| name: macOS Flutter Build | ||
| needs: common | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.