From 3bb9abfcd6c7f50fa288109b58bae380fd8a24cc Mon Sep 17 00:00:00 2001 From: continuist Date: Sun, 13 Apr 2025 00:26:00 -0400 Subject: [PATCH] use rust action instead --- .forgejo/workflows/main.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.forgejo/workflows/main.yml b/.forgejo/workflows/main.yml index 571470f..e70db63 100644 --- a/.forgejo/workflows/main.yml +++ b/.forgejo/workflows/main.yml @@ -10,13 +10,7 @@ jobs: runs-on: ubuntu-latest # Or other appropriate runner steps: - uses: actions/checkout@v4 # Checkout the repository - - name: Install Rust toolchain - run: | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - . "$HOME/.cargo/env" - - name: Get cargo path - run: which cargo - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose \ No newline at end of file + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - run: cargo build --release --all-features \ No newline at end of file