Skip to content
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

Create ARM Linux Build using cross-rs #1696

Merged
merged 8 commits into from
Feb 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,27 @@ jobs:
name: linux
path: target/release/volta-linux.tar.gz

linux-arm:
name: Build - Linux ARM
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install cross-rs
uses: taiki-e/install-action@v2
with:
tool: cross
- name: Compile Volta
run: cross build --release --target aarch64-unknown-linux-gnu
- name: Package Volta
run: |
cd target/aarch64-unknown-linux-gnu/release && tar -zcvf "volta-linux-arm.tar.gz" volta volta-shim volta-migrate
- name: Upload release artifact
uses: actions/upload-artifact@v3
with:
name: linux-arm
path: target/aarch64-unknown-linux-gnu/release/volta-linux-arm.tar.gz

macos:
name: Build - MacOS
runs-on: macos-latest
Expand Down Expand Up @@ -100,6 +121,11 @@ jobs:
with:
name: linux
path: release
- name: Fetch Linux ARM artifact
uses: actions/download-artifact@v2
with:
name: linux-arm
path: release
- name: Fetch MacOS artifact
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -135,6 +161,15 @@ jobs:
asset_path: ./release/volta-linux.tar.gz
asset_name: volta-${{ steps.release_info.outputs.version }}-linux.tar.gz
asset_content_type: application/gzip
- name: Upload Linux ARM artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release/volta-linux-arm.tar.gz
asset_name: volta-${{ steps.release_info.outputs.version }}-linux-arm.tar.gz
asset_content_type: application/gzip
- name: Upload MacOS artifact
uses: actions/upload-release-asset@v1
env:
Expand Down
4 changes: 3 additions & 1 deletion dev/unix/volta-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,10 @@ parse_os_info() {
Linux)
if [ "$arch" == "x86_64" ]; then
echo "linux"
elif [ "$arch" == "aarch64" ]; then
echo "linux-arm"
else
error "Releases for non x64 architectures are not currently supported."
error "Releases for architectures other than x64 and arm are not currently supported."
return 1
fi
;;
Expand Down
Loading