-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: removed aarch64 build from initial file, changed logic and creat…
…ed new file for aarch64
- Loading branch information
1 parent
c488ea7
commit 3465097
Showing
2 changed files
with
55 additions
and
70 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: AArch64 compile and build | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pguyot/[email protected] | ||
with: | ||
base_image: https://dietpi.com/downloads/images/DietPi_RPi-ARMv8-Bullseye.img.xz | ||
cpu: cortex-a53 | ||
bind_mount_repository: true | ||
image_additional_mb: 10240 | ||
optimize_image: false | ||
commands: | | ||
# Rust complains (rightly) that $HOME doesn't match eid home | ||
export HOME=/root | ||
# Workaround to CI worker being stuck on Updating crates.io index | ||
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse | ||
# Install setup prerequisites | ||
apt-get update -y --allow-releaseinfo-change | ||
apt-get upgrade -y | ||
apt-get autoremove -y | ||
apt-get install curl | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
. "$HOME/.cargo/env" | ||
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash | ||
# Install framework specific packages | ||
apt-get install -y nodejs | ||
npm install next@latest react@latest react-dom@latest eslint-config-next@latest | ||
# Install build tools and tauri-cli requirements | ||
apt-get install -y libwebkit2gtk-4.0-dev build-essential wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev | ||
cargo install tauri-cli | ||
# Install frontend dependencies | ||
npm install | ||
# Build the application | ||
cargo tauri build | ||
- name: Get application name and version | ||
id: get_info | ||
run: | | ||
APP_NAME=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.name == "your_crate_name") | .name') | ||
APP_VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.name == "your_crate_name") | .version') | ||
echo "APP_NAME=$APP_NAME" >> $GITHUB_ENV | ||
echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV | ||
- name: Upload deb bundle | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Debian Bundle | ||
path: ${{ github.workspace }}/target/release/bundle/deb/${{ env.APP_NAME }}_${{ env.APP_VERSION }}_arm64.deb |