Skip to content

Commit

Permalink
Add CI (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee authored Jul 24, 2024
1 parent d60a112 commit e0103d1
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 572 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI
on:
pull_request:
push:
branches:
- "*"
tags:
- "*"

jobs:
test:
name: Test
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: script/bootstrap
- name: Setup | Cache Cargo
uses: actions/[email protected]
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ubuntu-test-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Lint
run: |
cargo install cargo-machete
cargo machete
cargo clippy
- name: Build test
run: cargo build
Loading

0 comments on commit e0103d1

Please sign in to comment.