From 023002c47d296e47d8349a79074f3fb75969df04 Mon Sep 17 00:00:00 2001 From: Joyce Babu Date: Tue, 26 Nov 2024 16:50:31 +0530 Subject: [PATCH] chore: replace unmaintained github action --- .github/workflows/ci.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb2385c..e0caf84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,19 +34,17 @@ jobs: - uses: actions/checkout@v2 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: toolchain: stable - override: true - profile: minimal + components: rustfmt target: ${{ matrix.os }} + - name: Install Cross + run: cargo install cross + - name: Build Binary - uses: actions-rs/cargo@v1 - with: - use-cross: ${{ matrix.cross }} - command: build - args: --target ${{ matrix.os }} --release + run: cross build --profile release --target ${{ matrix.os }} - name: Save Artifact uses: actions/upload-artifact@v4