Skip to content

Merge pull request #94 from mecha-org/dev-build #8

Merge pull request #94 from mecha-org/dev-build

Merge pull request #94 from mecha-org/dev-build #8

name: Connect - Build aarch64
on:
push:
branches:
- main
- dev
- dev-build
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUST_BACKTRACE: short
RUSTUP_MAX_RETRIES: 10
MACOSX_DEPLOYMENT_TARGET: 10.7
CARGO_NET_GIT_FETCH_WITH_CLI: true
jobs:
build:
name: ${{ matrix.name }}
strategy:
fail-fast: true
matrix:
include:
- name: Mecha Connect App
package: mecha-connect
artifact: mecha-connect-aarch64-unknown-linux-gnu.tar.gz
path: ./client/app
runs-on: ubicloud-standard-2-arm
continue-on-error: false
steps:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Install Rust 1.75.0
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
rustup default 1.75.0
- name: Install cargo-deb
run: cargo install cargo-deb
- name: Update apt
run: sudo apt update
- name: Install dependencies
run: |
sudo apt install \
libwayland-dev \
libglib2.0-dev \
libgtk-4-dev \
libadwaita-1-dev \
protobuf-compiler \
libprotobuf-dev
- name: Build [${{ matrix.package }}]
run: |
cd ${{ matrix.path }}
cargo --config net.git-fetch-with-cli=true fetch
cargo build --release
ls -la
- name: Package deb [${{ matrix.package }}]
continue-on-error: true
run: |
cd ${{ matrix.path }}
cargo deb --no-build
ls -la
- name: Prepare artifacts [${{ matrix.package }}]
run: |
mkdir build
cp ./target/release/${{ matrix.package }} ./build
cp ./target/debian/*.deb ./build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: ./build/*