From 2f07f2b6382d36072b897bfb8f9646a78a3969fd Mon Sep 17 00:00:00 2001 From: miranda Date: Fri, 2 Aug 2024 03:36:05 +0300 Subject: [PATCH] CI: try cross --- .github/workflows/build.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 07ffb8d..ff679c5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -93,14 +93,13 @@ jobs: packages: libasound2-dev version: 1.0 - - name: setup rust toolchain - uses: dtolnay/rust-toolchain@v1 + - name: Build binary + uses: houseabsolute/actions-rust-cross@v0 with: - toolchain: stable - targets: ${{ env.CARGO_BUILD_TARGET }} - - - name: build - run: cargo build --verbose + command: build + target: ${{ matrix.platform.target }} + args: "--verbose" + strip: true - name: upload artifact uses: actions/upload-artifact@v4