mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-06-19 20:23:33 +00:00
ci: add rust-cache
This commit is contained in:
@@ -45,6 +45,9 @@ jobs:
|
||||
with:
|
||||
toolchain: 1.96.0
|
||||
|
||||
- name: Rust Cache
|
||||
uses: swatinem/rust-cache@v2
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --locked
|
||||
|
||||
@@ -135,6 +138,9 @@ jobs:
|
||||
with:
|
||||
toolchain: 1.96.0
|
||||
|
||||
- name: Rust Cache
|
||||
uses: swatinem/rust-cache@v2
|
||||
|
||||
- name: Build all binaries (debug-speed compilation into target/release)
|
||||
env:
|
||||
CARGO_PROFILE_RELEASE_OPT_LEVEL: 0
|
||||
|
||||
@@ -60,9 +60,9 @@ jobs:
|
||||
echo "default-branch: ${{ steps.set_branch.outputs.branch }}" >> packages/flatpak/ru.arabianq.pwsp.yaml
|
||||
|
||||
- name: Install SDK Extensions
|
||||
run:
|
||||
run: |
|
||||
flatpak install -y flathub org.freedesktop.Sdk.Extension.rust-stable//25.08
|
||||
org.freedesktop.Sdk.Extension.llvm20//25.08
|
||||
flatpak install -y flathub org.freedesktop.Sdk.Extension.llvm20//25.08
|
||||
|
||||
- name: Build Flatpak
|
||||
uses: andyholmes/flatter@main
|
||||
@@ -72,6 +72,7 @@ jobs:
|
||||
upload-bundles: false
|
||||
upload-pages-artifact: false
|
||||
arch: x86_64
|
||||
cache: true
|
||||
|
||||
flatter-arm64:
|
||||
name: Flatter (aarch64)
|
||||
@@ -113,9 +114,9 @@ jobs:
|
||||
echo "default-branch: ${{ steps.set_branch.outputs.branch }}" >> packages/flatpak/ru.arabianq.pwsp.yaml
|
||||
|
||||
- name: Install SDK Extensions
|
||||
run:
|
||||
run: |
|
||||
flatpak install -y flathub org.freedesktop.Sdk.Extension.rust-stable//25.08
|
||||
org.freedesktop.Sdk.Extension.llvm20//25.08
|
||||
flatpak install -y flathub org.freedesktop.Sdk.Extension.llvm20//25.08
|
||||
|
||||
- name: Build Flatpak
|
||||
uses: andyholmes/flatter@main
|
||||
@@ -125,6 +126,7 @@ jobs:
|
||||
upload-bundles: false
|
||||
upload-pages-artifact: true
|
||||
arch: aarch64
|
||||
cache: true
|
||||
|
||||
deploy:
|
||||
name: Deploy to GitHub Pages
|
||||
|
||||
@@ -97,6 +97,9 @@ jobs:
|
||||
with:
|
||||
toolchain: 1.96.0
|
||||
|
||||
- name: Rust Cache
|
||||
uses: swatinem/rust-cache@v2
|
||||
|
||||
- name: Extract all binary names
|
||||
id: cargo-meta
|
||||
run: |
|
||||
@@ -180,6 +183,9 @@ jobs:
|
||||
with:
|
||||
toolchain: 1.96.0
|
||||
|
||||
- name: Rust Cache
|
||||
uses: swatinem/rust-cache@v2
|
||||
|
||||
- name: Build all release binaries
|
||||
run: cargo build --release --locked
|
||||
|
||||
@@ -258,4 +264,3 @@ jobs:
|
||||
--commit ${{ needs.prepare.outputs.tag }} \
|
||||
--spec packages/rpm/pwsp.spec \
|
||||
arabianq/pwsp
|
||||
|
||||
|
||||
Reference in New Issue
Block a user