diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 3bc8b71..02d42fc 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -2,18 +2,19 @@ name: CI on: push: + branches: [main] pull_request: jobs: ci: - runs-on: ubuntu-latest + runs-on: docker + container: + image: rust:latest steps: - uses: actions/checkout@v4 - - name: Install Rust toolchain - uses: https://github.com/dtolnay/rust-toolchain@stable - with: - components: rustfmt, clippy + - name: Install rustfmt and clippy + run: rustup component add rustfmt clippy - name: Cache cargo registry uses: actions/cache@v4