Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed May 20, 2024
1 parent ac6f5a2 commit fe64633
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.ref_name != 'main' }}

env:
RUSTFLAGS: "-D warnings"

jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@v1

- uses: moonrepo/setup-rust@v1
with:
cache-base: main

- run: cargo check

- run: cargo clippy

3 changes: 3 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[toolchain]
channel = "1.78.0"
profile = "default"

0 comments on commit fe64633

Please sign in to comment.