-
Notifications
You must be signed in to change notification settings - Fork 2
80 lines (69 loc) · 1.91 KB
/
build-connect-app-aarch64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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/*