From 1ff0aedce72dbadce5f0085c05f9412e7eae82f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Sun, 17 Mar 2024 19:15:43 +0100 Subject: [PATCH] Only compile octasine package with cargo xtask (#182) Avoids compiling octasine-cli --- .github/workflows/releases.yml | 12 ++++++------ README.md | 8 ++++---- scripts/macos/build-clap-and-install.sh | 2 +- scripts/macos/build-vst2-and-install.sh | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 4781c045..e4c9e6f9 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -42,8 +42,8 @@ jobs: echo "SDKROOT=$SDKROOT" export MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx11.1 --show-sdk-platform-version) echo "MACOSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET" - cargo xtask bundle-universal octasine --release --verbose --features "vst2" - cargo xtask bundle-universal octasine --release --verbose --features "clap" + cargo xtask bundle-universal -p octasine --release --verbose --features "vst2" + cargo xtask bundle-universal -p octasine --release --verbose --features "clap" env: DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer shell: bash @@ -93,10 +93,10 @@ jobs: uses: ilammy/msvc-dev-cmd@v1 - name: Build and bundle plugin (VST2) - run: cargo xtask bundle octasine --release --verbose --features "vst2" + run: cargo xtask bundle -p octasine --release --verbose --features "vst2" - name: Build and bundle plugin (clap) - run: cargo xtask bundle octasine --release --verbose --features "clap" + run: cargo xtask bundle -p octasine --release --verbose --features "clap" - name: Install cargo-about run: cargo install --debug --locked cargo-about @@ -145,10 +145,10 @@ jobs: uses: Swatinem/rust-cache@v2 - name: Build and bundle plugin (VST2) - run: cargo xtask bundle octasine --release --verbose --features "vst2" + run: cargo xtask bundle -p octasine --release --verbose --features "vst2" - name: Build and bundle plugin (clap) - run: cargo xtask bundle octasine --release --verbose --features "clap" + run: cargo xtask bundle -p octasine --release --verbose --features "clap" - name: Install cargo-about run: cargo install --debug --locked cargo-about diff --git a/README.md b/README.md index 43f4ca72..004a7ccc 100644 --- a/README.md +++ b/README.md @@ -98,8 +98,8 @@ git checkout tags/v0.9.0 * Build and install the plugin: ```cmd -cargo xtask bundle octasine --release --features "vst2" -cargo xtask bundle octasine --release --features "clap" +cargo xtask bundle -p octasine --release --features "vst2" +cargo xtask bundle -p octasine --release --features "clap" ``` * Copy `target\bundled\octasine.dll` to your VST plugin folder. @@ -138,8 +138,8 @@ git checkout tags/v0.9.0 * Build and install the plugin ```sh -cargo xtask bundle octasine --release --features "vst2" -cargo xtask bundle octasine --release --features "clap" +cargo xtask bundle -p octasine --release --features "vst2" +cargo xtask bundle -p octasine --release --features "clap" ``` * Copy `target/bundled/octasine.so` to your VST plugin folder diff --git a/scripts/macos/build-clap-and-install.sh b/scripts/macos/build-clap-and-install.sh index 1d59ade5..4a057990 100755 --- a/scripts/macos/build-clap-and-install.sh +++ b/scripts/macos/build-clap-and-install.sh @@ -4,7 +4,7 @@ set -e -cargo xtask bundle octasine --profile "release-debug" --features "clap" +cargo xtask bundle -p octasine --profile "release-debug" --features "clap" TARGET="/Library/Audio/Plug-Ins/CLAP/OctaSine.clap" diff --git a/scripts/macos/build-vst2-and-install.sh b/scripts/macos/build-vst2-and-install.sh index 054f50a1..28f6396f 100755 --- a/scripts/macos/build-vst2-and-install.sh +++ b/scripts/macos/build-vst2-and-install.sh @@ -4,7 +4,7 @@ set -e -cargo xtask bundle octasine --profile "release-debug" --features "vst2" +cargo xtask bundle -p octasine --profile "release-debug" --features "vst2" TARGET="/Library/Audio/Plug-Ins/VST/OctaSine.vst"