Skip to content

Commit

Permalink
Move examples to separate workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpdrsn committed Apr 29, 2022
1 parent 5bb924b commit 22dcc5c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@ on:

jobs:
check:
# Run `cargo check` first to ensure that the pushed code at least compiles.
runs-on: ubuntu-latest
strategy:
matrix:
pwd:
- .
- examples
steps:
- uses: actions/checkout@master
- name: Print working directory
run: pwd
- uses: actions-rs/toolchain@v1
with:
toolchain: beta
Expand All @@ -23,15 +29,13 @@ jobs:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v1
- name: Check
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all --all-targets --all-features
working-directory: ${{ matrix.pwd }}
run: |
cargo clippy --all --all-targets --all-features
- name: rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
working-directory: ${{ matrix.pwd }}
run: |
cargo fmt --all -- --check
check-docs:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -106,6 +110,7 @@ jobs:
args: >
-p axum
-p axum-extra
-p axum-core
--all-features --all-targets
# the compiler errors are different on 1.54 which makes
# the trybuild tests in axum-macros fail, so just run the doc
Expand Down
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ members = [
"axum-core",
"axum-extra",
"axum-macros",
"examples/*",
]
4 changes: 4 additions & 0 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[workspace]
members = [
"*",
]

0 comments on commit 22dcc5c

Please sign in to comment.