6
6
jobs :
7
7
build :
8
8
permissions : write-all
9
- runs-on : ubuntu-latest
9
+ runs-on : ubuntu-22.04
10
10
steps :
11
11
- uses : actions/checkout@v3
12
12
@@ -18,28 +18,42 @@ jobs:
18
18
image_additional_mb : 10240
19
19
optimize_image : false
20
20
commands : |
21
- # Rust complains (rightly) that $HOME doesn't match eid home
22
21
export HOME=/root
23
- # Workaround to CI worker being stuck on Updating crates.io index
24
22
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
25
- # Install setup prerequisites
26
23
apt-get update -y --allow-releaseinfo-change
27
24
apt-get upgrade -y
28
- # Install build tools and tauri requirements
29
- apt-get install curl gcc-aarch64-linux-gnu libwebkit2gtk-4.0-dev build-essential wget libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libc-dev libc6 libssl-dev -y
25
+ apt-get install curl gcc-aarch64-linux-gnu build-essential wget libc-dev libc6 libssl-dev -y
30
26
curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal
31
27
. "$HOME/.cargo/env"
32
- # Build the TUI application
33
28
cargo build --release --bin hd-tui
34
- # Install wasm32 target and tauri-cli
29
+
30
+ - name : Upload TUI Release Asset
31
+ env :
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
+ run :
34
+ gh release upload ${{ github.event.release.tag_name }} ${{ github.workspace }}/target/release/hd-tui
35
+
36
+
37
+ with :
38
+ base_image : dietpi:rpi_armv8_bullseye
39
+ cpu : cortex-a53
40
+ bind_mount_repository : true
41
+ image_additional_mb : 10240
42
+ optimize_image : false
43
+ commands : |
44
+ export HOME=/root
45
+ export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
46
+ apt-get update -y --allow-releaseinfo-change
47
+ apt-get upgrade -y
48
+ apt-get install curl gcc-aarch64-linux-gnu libwebkit2gtk-4.0-dev build-essential wget libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libc-dev libc6 libssl-dev -y
49
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal
50
+ . "$HOME/.cargo/env"
35
51
rustup target add wasm32-unknown-unknown
36
52
cargo install tauri-cli trunk
37
- # Build the application
38
53
cargo tauri build --config '{"package": {"version": "${{ github.event.release.tag_name }}"}}'
39
54
40
- - name : Upload Release Asset
55
+ - name : Upload Tauri Release Asset
41
56
env :
42
57
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
58
run :
44
- gh release upload ${{ github.event.release.tag_name }} ${{ github.workspace }}/target/release/hd-tui
45
59
gh release upload ${{ github.event.release.tag_name }} ${{ github.workspace }}/target/release/bundle/deb/home-display*.deb
0 commit comments