From ed8b784c78b759a59dbb0232e04d00604a611699 Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 30 May 2023 19:44:41 -0400 Subject: ci: don't use unmaintained actions --- .github/workflows/lint.yaml | 37 ++++++++++--------------------------- 1 file changed, 10 insertions(+), 27 deletions(-) (limited to '.github/workflows/lint.yaml') diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 550e406..aab9e34 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -4,39 +4,22 @@ on: workflow_call: workflow_dispatch: -permissions: - checks: write - jobs: - cargo-check: + lint: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - name: run cargo check - uses: actions-rs/cargo@v1 - with: - command: check + strategy: + matrix: + check: [teawiebot, clippy] - clippy: - runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - name: setup nix & cachix + uses: ./.github/actions/setup-nix with: - profile: minimal - toolchain: stable - override: true - components: clippy + cachix-token: ${{ secrets.CACHIX_AUTH_TOKEN }} - - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features + - name: lint + run: | + nix build -L .#checks.x86_64-linux.${{ matrix.check }} -- cgit v1.2.3