File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build Linux App (Rust)
2+
3+ on :
4+ push :
5+ branches :
6+ - linux-rust
7+ workflow_dispatch :
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v4
16+
17+ - name : Install dependencies
18+ run : sudo apt-get update && sudo apt-get install -y libdbus-1-dev pkg-config libpulse-dev
19+
20+ - name : Install Rust
21+ uses : dtolnay/rust-toolchain@stable
22+
23+ - name : Cache Cargo
24+ uses : actions/cache@v4
25+ with :
26+ path : |
27+ ~/.cargo/registry
28+ ~/.cargo/git
29+ target
30+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
31+
32+ - name : Build release binary
33+ working-directory : linux-rust
34+ run : cargo build --release --verbose
35+
36+ - name : Upload build artifact
37+ uses : actions/upload-artifact@v4
38+ with :
39+ name : librepods-rust
40+ path : linux-rust/target/release/librepods-rust
You can’t perform that action at this time.
0 commit comments