Skip to content

Commit

Permalink
Update ci (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
cnpryer authored Oct 12, 2023
1 parent 5434e10 commit 0f9e9d7
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,42 +22,54 @@ env:
PACKAGE_NAME: huak

jobs:
test-and-build:
build-and-test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
name: Test and build
name: Build and test
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v1
- uses: actions/setup-python@v1
# We install instead of just build for insta-cmd TODO(cnpryer)
- name: Install huak
run: cargo install --path crates/huak_cli
- name: Test
run: cargo test --all-features

lint-and-fmt:
name: Lint and check fmt
clippy-lints:
name: Clippy lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
components: clippy
- uses: Swatinem/rust-cache@v1
- name: Run formatting checks
run: |
cargo fmt --all -- --check
- name: Run lints
env:
RUSTFLAGS: -C debuginfo=0
run: |
cargo clippy --all-features
cargo clippy -- -D warnings
format:
name: Formatting check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- uses: Swatinem/rust-cache@v1
- name: Run formatting check
run: |
cargo fmt --all -- --check
dry-release:
name: Build with maturin
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0f9e9d7

Please sign in to comment.