diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7f4f0aa..035dd39 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -7,14 +7,17 @@ env: jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Install - run: apt update && apt install rustc cargo -y - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable # You can change this to nightly or other versions + + - name: Build with Cargo + run: | + cargo build --release