diff --git a/.github/workflows/ci.yml b/.gitea/workflows/ci.yml similarity index 51% rename from .github/workflows/ci.yml rename to .gitea/workflows/ci.yml index 565dfb5..30a7388 100644 --- a/.github/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -10,30 +10,16 @@ env: CARGO_TERM_COLOR: always jobs: - check: - name: Check - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macos-latest] + lint: + name: Lint + runs-on: self-hosted steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: components: clippy, rustfmt - - uses: Swatinem/rust-cache@v2 - - name: Check - run: cargo check --workspace --all-targets - - clippy: - name: Clippy (strict) - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - with: - components: clippy - - uses: Swatinem/rust-cache@v2 + - name: Format + run: cargo fmt --all -- --check - name: Clippy run: | cargo clippy --workspace --all-targets -- \ @@ -47,26 +33,12 @@ jobs: -D clippy::print_stdout \ -D clippy::print_stderr - fmt: - name: Format - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - with: - components: rustfmt - - name: Rustfmt - run: cargo fmt --all -- --check - test: name: Test - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macos-latest] + runs-on: self-hosted + needs: lint steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - name: Run tests run: cargo test --workspace