Skip to content

Commit

Permalink
Only compile octasine package with cargo xtask (#182)
Browse files Browse the repository at this point in the history
Avoids compiling octasine-cli
  • Loading branch information
greatest-ape authored Mar 17, 2024
1 parent e1a2ba2 commit 1ff0aed
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/macos/build-clap-and-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion scripts/macos/build-vst2-and-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 1ff0aed

Please sign in to comment.