name: Build VST on: push: branches: [ "main" ] paths: ["gb-vst/**", "lib/**", "vendored/**"] env: CARGO_TERM_COLOR: always jobs: build: runs-on: ${{ matrix.os }}-latest strategy: matrix: os: [ubuntu, macos, windows] steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: toolchain: nightly override: true - uses: awalsh128/cache-apt-pkgs-action@latest if: ${{ matrix.os }} == ubuntu with: packages: libasound2-dev libudev-dev xorg-dev libjack-jackd2-dev version: 1.0 - run: rustup update nightly && rustup default nightly - run: git submodule update --init --recursive - uses: actions-rs/cargo@v1 if: ${{ matrix.os }} != macos with: command: xtask args: bundle vst --release - uses: actions-rs/cargo@v1 if: ${{ matrix.os }} == macos with: command: xtask args: bundle-universal vst --release - uses: actions/upload-artifact@v3 with: name: gb-vst-${{ matrix.os }}.vst3 path: target/bundled/vst.vst3