From 41dc3b6f6b458e5817f3919896ebb9ccec937fb1 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 | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb2385c..56bb7ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: runs-on: macos-latest # Apple needs to be compiled on an apple os cross: false # Cross fails on these platforms - os: x86_64-pc-windows-gnu - runs-on: windows-latest # Not needed, but why not? + runs-on: ubuntu-latest # Not needed, but why not? suffix: .exe # Windows has an .exe suffix cross: false # Cross fails on these platforms @@ -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