refactor: make audio mandatory and split iced app modules
This commit is contained in:
+16
-13
@@ -10,7 +10,6 @@ on:
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
||||
|
||||
jobs:
|
||||
# Test job
|
||||
@@ -30,7 +29,9 @@ jobs:
|
||||
target: x86_64-apple-darwin
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: false
|
||||
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
@@ -42,12 +43,14 @@ jobs:
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
cmake \
|
||||
pkg-config \
|
||||
libopus-dev \
|
||||
libssl-dev \
|
||||
libasound2-dev
|
||||
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
@@ -61,17 +64,13 @@ jobs:
|
||||
working-directory: src
|
||||
run: cargo check -p re-teamspeak
|
||||
|
||||
- name: Check (rusqlite)
|
||||
working-directory: src
|
||||
run: cargo check -p re-teamspeak --features rusqlite
|
||||
|
||||
- name: Test
|
||||
working-directory: src
|
||||
run: cargo test -p re-teamspeak
|
||||
|
||||
- name: Clippy
|
||||
working-directory: src
|
||||
run: cargo clippy -p re-teamspeak --features rusqlite -- -D warnings
|
||||
run: cargo clippy -p re-teamspeak -- -D warnings
|
||||
continue-on-error: true
|
||||
|
||||
# Build desktop apps
|
||||
@@ -97,7 +96,9 @@ jobs:
|
||||
artifact: macos-amd64
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: false
|
||||
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
@@ -109,12 +110,14 @@ jobs:
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
cmake \
|
||||
pkg-config \
|
||||
libopus-dev \
|
||||
libssl-dev \
|
||||
libasound2-dev
|
||||
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
@@ -150,7 +153,7 @@ jobs:
|
||||
tar -czf re-teamspeak-${{ matrix.artifact }}.tar.gz -C dist .
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: re-teamspeak-${{ matrix.artifact }}
|
||||
path: re-teamspeak-${{ matrix.artifact }}.*
|
||||
@@ -166,12 +169,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v8
|
||||
with:
|
||||
path: artifacts/
|
||||
|
||||
- name: Create release
|
||||
uses: softprops/action-gh-release@v1
|
||||
uses: softprops/action-gh-release@v3
|
||||
with:
|
||||
files: artifacts/**/*
|
||||
draft: true
|
||||
|
||||
Reference in New Issue
Block a user