-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Debian packages: ARM architecture #746
Closed
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
a4a05d3
build different targets
raphamorim 4cde6ed
update releases.md
raphamorim fcf5d8b
use target as array on yml
raphamorim 947cd84
update to arm64
raphamorim b37c221
drop cache key for deb
raphamorim 80674c5
define target
raphamorim a1847b8
update action items
raphamorim 9105d8a
for testing
raphamorim 4b62a38
fixup! for testing
raphamorim 2cc5741
fixup! fixup! for testing
raphamorim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,10 +1,12 @@ | ||||||
name: Nightly | ||||||
|
||||||
on: | ||||||
workflow_dispatch: | ||||||
schedule: | ||||||
# 00:00 every day | ||||||
- cron: '0 0 * * *' | ||||||
on: [push, pull_request] | ||||||
|
||||||
# on: | ||||||
# workflow_dispatch: | ||||||
# schedule: | ||||||
# # 00:00 every day | ||||||
# - cron: '0 0 * * *' | ||||||
|
||||||
env: | ||||||
CARGO_TERM_COLOR: always | ||||||
|
@@ -26,14 +28,14 @@ jobs: | |||||
steps: | ||||||
- uses: actions/checkout@v4 | ||||||
- name: Delete old nightly release | ||||||
uses: dev-drprasad/delete-tag-and-release@v1.0 | ||||||
uses: dev-drprasad/delete-tag-and-release@v1.1 | ||||||
with: | ||||||
tag_name: ${{ env.NIGHTLY_TAG }} | ||||||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||||||
delete_release: true | ||||||
- name: Bump version and push tag | ||||||
id: tag_version | ||||||
uses: mathieudutour/github-tag-action@v6.1 | ||||||
uses: mathieudutour/github-tag-action@v6.2 | ||||||
with: | ||||||
custom_tag: ${{ env.NIGHTLY_TAG }} | ||||||
tag_prefix: '' | ||||||
|
@@ -74,21 +76,28 @@ jobs: | |||||
LICENSE | ||||||
|
||||||
nightly-release-deb: | ||||||
runs-on: ubuntu-latest | ||||||
runs-on: ubuntu-24.04-arm | ||||||
permissions: | ||||||
contents: write | ||||||
discussions: write | ||||||
|
||||||
strategy: | ||||||
matrix: | ||||||
target: [x86_64, aarch64] | ||||||
|
||||||
steps: | ||||||
- uses: actions/checkout@v3 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
with: | ||||||
fetch-depth: 0 | ||||||
- name: rust cache | ||||||
uses: Swatinem/rust-cache@v2 | ||||||
with: | ||||||
cache-on-failure: true | ||||||
cache-all-crates: true | ||||||
key: ${{matrix.target}} | ||||||
- run: sudo apt install rename | ||||||
- run: rustup toolchain install stable --profile minimal | ||||||
- run: rustup toolchain install stable --profile minimal --target ${{ matrix.target }}-unknown-linux-gnu | ||||||
- run: rustup default stable-${{ matrix.target }}-unknown-linux-gnu | ||||||
- run: cargo install cargo-deb | ||||||
- run: mkdir -p release | ||||||
- run: make release-debian-x11 | ||||||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting - I'd assume cross-compilation would work on
ubuntu-latest
. Does build fail on it?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea, i naively assumed ubuntu had support to arch but doesn't look it does yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thinking about use something similar to this https://github.com/PMLS3/tauri-linux/blob/1992beef67640f2c843781bbb280f73116ad44c3/flows/arm.yml#L9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems the builds for linux are stalled on this PR. I'm thinking this may be the cause for it, given
ubunt-24.05-arm
doesn't seem to be one of GH's default runners -https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this should work. I'll try cross-compiling to ARM on an ubuntu box I have around and see what happens. Maybe it's just a matter of ensuring a few deps are installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't manage to build the project, but managed to figure some bits out. There's a dependency that needs the GCC compiler, so the compiler for aarch64 needs to be installed:
Then
But still fails
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH, I likely won't have bandwidth to do it (work trip coming soon)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, I will give another try after finish the split work. I think I got carried over 😆 (i thought i would finish this PR in 10-20min but it looks would need further investigation)
have a good time in your work trip <3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you ever come to sweden lemme know as well ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, the default GitHub runners doesn't provide an ARM ubuntu specific version. You need to either run & register your own runner (hosted on your own infra), or as proposed above cross-compile to ARM platform using x86. Or use Docker images.
EDIT: Only MacOS arm runners are available apparently: https://github.com/actions/runner-images