diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4ec7d4a..836ef02 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -69,22 +69,13 @@ jobs: run: | echo "${{ needs.create-tag.outputs.tagname }}" > src/assets/VERSION - - name: Install Rust - uses: dtolnay/rust-toolchain@stable + - name: Build binary + uses: houseabsolute/actions-rust-cross@v0 with: - targets: "${{ matrix.platform.target }}" - - - name: Setup Cache - uses: Swatinem/rust-cache@v2 - - - name: Build Binary - run: cargo build --verbose --locked --release --target ${{ matrix.platform.target }} - - - name: List artifacts - run: tree . - - - name: Strip Binary - run: strip target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} + command: ${{ matrix.platform.command }} + target: ${{ matrix.platform.target }} + args: "--locked --release" + strip: true - name: Upload CLI uses: actions/upload-artifact@v4