Skip to content

Commit af9beeb

Browse files
authored
Update build.yml
Action must use ubuntu 22.04 Tried to separate build to upload at leat TUI version
1 parent bbe8a23 commit af9beeb

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
build:
88
permissions: write-all
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-22.04
1010
steps:
1111
- uses: actions/checkout@v3
1212

@@ -18,28 +18,42 @@ jobs:
1818
image_additional_mb: 10240
1919
optimize_image: false
2020
commands: |
21-
# Rust complains (rightly) that $HOME doesn't match eid home
2221
export HOME=/root
23-
# Workaround to CI worker being stuck on Updating crates.io index
2422
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
25-
# Install setup prerequisites
2623
apt-get update -y --allow-releaseinfo-change
2724
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
3026
curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal
3127
. "$HOME/.cargo/env"
32-
# Build the TUI application
3328
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+
- uses: pguyot/[email protected]
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"
3551
rustup target add wasm32-unknown-unknown
3652
cargo install tauri-cli trunk
37-
# Build the application
3853
cargo tauri build --config '{"package": {"version": "${{ github.event.release.tag_name }}"}}'
3954
40-
- name: Upload Release Asset
55+
- name: Upload Tauri Release Asset
4156
env:
4257
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4358
run:
44-
gh release upload ${{ github.event.release.tag_name }} ${{ github.workspace }}/target/release/hd-tui
4559
gh release upload ${{ github.event.release.tag_name }} ${{ github.workspace }}/target/release/bundle/deb/home-display*.deb

0 commit comments

Comments
 (0)