From 0fb67cb229a2185826d43c97a789359660eaf97f Mon Sep 17 00:00:00 2001 From: Karl Skomski Date: Fri, 31 Jul 2020 19:39:37 +0200 Subject: [PATCH] add full feature set and ghbuild with it --- .github/workflows/build.yml | 12 ++++++------ .github/workflows/build_release.yml | 6 +++--- Cargo.toml | 1 + 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a5cdd07..a380db5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,9 +21,9 @@ jobs: - name: Install autoconf run: sudo apt-get install autoconf libtool automake - name: Build debug soundboard binary - run: cargo build --verbose + run: cargo build --verbose --features full,autoloop - name: Run tests - run: cargo test + run: cargo test --features full,autoloop windows: runs-on: windows-latest @@ -51,11 +51,11 @@ jobs: - name: Build debug soundboard binary env: LIBCLANG_PATH: "C:\\ProgramData\\scoop\\apps\\llvm\\current\\bin" - run: cargo build --verbose + run: cargo build --verbose --features full - name: Run tests env: LIBCLANG_PATH: "C:\\ProgramData\\scoop\\apps\\llvm\\current\\bin" - run: cargo test + run: cargo test --features full macos: runs-on: macos-latest @@ -86,11 +86,11 @@ jobs: OPUS_STATIC: 1 OPUS_NO_PKG: 1 OPUS_LIB_DIR: "/usr/local/lib" - run: cargo build --verbose + run: cargo build --verbose --features full - name: Run tests env: MACOSX_DEPLOYMENT_TARGET: 10.14 OPUS_STATIC: 1 OPUS_NO_PKG: 1 OPUS_LIB_DIR: "/usr/local/lib" - run: cargo test + run: cargo test --features full diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index be4e32a..a3fad42 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -24,7 +24,7 @@ jobs: - name: Install autoconf run: sudo apt-get install autoconf libtool automake - name: Build soundboard binary - run: cargo build --verbose --release + run: cargo build --verbose --release --features full,autoloop - name: Archive soundboard binary uses: actions/upload-artifact@v2 with: @@ -57,7 +57,7 @@ jobs: - name: Build soundboard binary env: LIBCLANG_PATH: "C:\\ProgramData\\scoop\\apps\\llvm\\current\\bin" - run: cargo build --verbose --release + run: cargo build --verbose --release --features full - name: Archive soundboard binary uses: actions/upload-artifact@v2 with: @@ -93,7 +93,7 @@ jobs: OPUS_STATIC: 1 OPUS_NO_PKG: 1 OPUS_LIB_DIR: "/usr/local/lib" - run: cargo build --verbose --release + run: cargo build --verbose --release --features full - name: Archive soundboard binary uses: actions/upload-artifact@v2 with: diff --git a/Cargo.toml b/Cargo.toml index e281357..98b0491 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,7 @@ lto = "fat" autoloop = ["libpulse-binding", "ctrlc"] default = ["mp3", "flac", "vorbis", "wav", "http", "opus"] flac = ["claxon"] +full = ["default", "spotify", "telegram-bot", "xm", "textui", "gui", "text-to-speech"] gui = ["iced", "iced_native"] http = ["warp", "futures"] mp3 = ["minimp3", "mp3-duration"]