diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index e499942..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,32 +0,0 @@ -version: 2 - -jobs: - build: - docker: - - image: rust:latest - steps: - - checkout - - restore_cache: - key: pidlock-cache - - run: - name: Install clippy, rustfmt and cargo-deny - command: | - rustup component add clippy - rustup component add rustfmt - cargo install cargo-deny - - run: - name: test - command: cargo test - - run: - name: clippy - command: cargo clippy - - run: - name: check format - command: cargo fmt -- --check - - run: - name: check deny - command: cargo deny check - - save_cache: - key: pidlock-cache - paths: - - "~/.cargo" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..982a702 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: [ "main" ] + pull_request: + +jobs: + build: + name: ${{ matrix.os }} + runs-on: ${{ matrix.os }}-latest + strategy: + matrix: + os: [Ubuntu, macOS, Windows] + + steps: + - uses: actions/checkout@v3 + - name: Install clippy, rustfmt and cargo-deny + run: | + rustup component add clippy + rustup component add rustfmt + cargo install cargo-deny + - name: Build + run: cargo build --verbose --features strict + - name: Run tests + run: cargo test --verbose + - name: Check lint + run: cargo clippy + - name: Check format + run: cargo fmt -- --check + - name: Run cargo deny + run: cargo deny check diff --git a/Cargo.toml b/Cargo.toml index 0f52a45..0840372 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ include = [ ] [features] -default = ["strict"] +default = [] strict = [] # Warnings are errors [dependencies]