From 748b56d842371296d0ec4e9e4696f86f41f9d0ff Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Thu, 6 Apr 2023 14:15:05 +1000 Subject: [PATCH] more things --- .github/workflows/build-emu.yml | 36 ++++++++++++++++++++++++++++----- .github/workflows/build-vst.yml | 11 +++++++++- rust-toolchain.toml | 2 ++ 3 files changed, 43 insertions(+), 6 deletions(-) create mode 100644 rust-toolchain.toml diff --git a/.github/workflows/build-emu.yml b/.github/workflows/build-emu.yml index 87d1741..c9e999a 100644 --- a/.github/workflows/build-emu.yml +++ b/.github/workflows/build-emu.yml @@ -14,13 +14,26 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + target: aarch64-unknown-linux-gnu, x86_64-unknown-linux-gnu - uses: awalsh128/cache-apt-pkgs-action@latest with: packages: libasound2-dev libudev-dev version: 1.0 - - run: rustup update nightly && rustup default nightly - run: git submodule update --init --recursive - - run: cargo build --verbose --release + - uses: actions-rs/cargo@v1 + with: + use-cross: true + command: build + args: --release --target aarch64-unknown-linux-gnu + - uses: actions-rs/cargo@v1 + with: + use-cross: true + command: build + args: --release --target x86_64-unknown-linux-gnu build-mac: @@ -28,8 +41,15 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true - run: git submodule update --init --recursive - - run: cargo build --verbose --release + - uses: actions-rs/cargo@v1 + with: + use-cross: true + command: build build-windows: @@ -37,7 +57,13 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true - run: git submodule update --init --recursive - - run: cargo build --verbose --release - + - uses: actions-rs/cargo@v1 + with: + use-cross: true + command: build \ No newline at end of file diff --git a/.github/workflows/build-vst.yml b/.github/workflows/build-vst.yml index 8697cf4..8979b08 100644 --- a/.github/workflows/build-vst.yml +++ b/.github/workflows/build-vst.yml @@ -3,7 +3,7 @@ name: Build VST on: push: branches: [ "main" ] - # paths: ["gb-vst/**", "lib/**", "vendored/**"] + paths: ["gb-vst/**", "lib/**", "vendored/**"] env: CARGO_TERM_COLOR: always @@ -29,3 +29,12 @@ jobs: - uses: actions/checkout@v3 - run: git submodule update --init --recursive - run: cargo xtask bundle-universal vst --verbose --release + + build-windows: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + - run: git submodule update --init --recursive + - run: cargo xtask bundle vst --verbose --release + \ No newline at end of file diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..5d56faf --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "nightly"