Skip to content

Commit

Permalink
Merge pull request aya-rs#28 from vadorovsky/fix-tests
Browse files Browse the repository at this point in the history
cli: Fix parsing of `--export` flags
  • Loading branch information
alessandrod authored Dec 26, 2022
2 parents 27b4a38 + 17159a9 commit bb73c0b
Show file tree
Hide file tree
Showing 7 changed files with 164 additions and 80 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
rust:
- "1.63.0"
- "stable"
- "beta"
- "nightly"
llvm: ["15", "rustc"]
Expand Down Expand Up @@ -75,6 +75,15 @@ jobs:
sudo apt-get update
sudo apt-get install llvm-${{ matrix.llvm }}-dev libclang-${{ matrix.llvm }}-dev
- name: Install LLVM tools
if: matrix.llvm == 'rustc'
shell: bash
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
echo -e "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-15 main\n" | sudo tee /etc/apt/sources.list.d/llvm.list
sudo apt-get update
sudo apt-get install llvm-15-tools
- name: Build
run: cargo build --verbose ${CARGO_ARGS}

Expand Down
24 changes: 19 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,24 @@ env:
CARGO_TERM_COLOR: always

jobs:
lint:
lint-stable:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy, rust-src
override: true

- name: Run clippy
run: |
cargo clippy --workspace -- --deny warnings
lint-nightly:
runs-on: ubuntu-20.04

steps:
Expand All @@ -24,12 +41,9 @@ jobs:
with:
profile: minimal
toolchain: nightly
components: rustfmt, clippy, miri, rust-src
components: rustfmt, rust-src
override: true

- name: Check formatting
run: |
cargo fmt --all -- --check
- name: Run clippy
run: |
cargo clippy --workspace -- --deny warnings
76 changes: 29 additions & 47 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ edition = "2021"

[dependencies]
# cli deps
clap = { version = "3.2", optional = true, features = ["derive"] }
clap = { version = "4.0", optional = true, features = ["derive"] }
simplelog = {version = "0.7.6", optional = true}

# lib deps
Expand Down
Loading

0 comments on commit bb73c0b

Please sign in to comment.