-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pcblib-work' of github.com:pluots/altium into pcblib-work
- Loading branch information
Showing
33 changed files
with
2,139 additions
and
708 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,19 +21,11 @@ jobs: | |
name: "Clippy (cargo clippy)" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
components: clippy | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo clippy --all-features --all-targets -- -D warnings | ||
- run: cargo clippy --no-default-features --all-targets -- -D warnings | ||
|
||
|
@@ -46,70 +38,42 @@ jobs: | |
os: ubuntu-latest | ||
target: x86_64-unknown-linux-musl | ||
extension: '' | ||
# - build: macos | ||
# os: macos-latest | ||
# target: x86_64-apple-darwin | ||
# extension: '' | ||
- build: macos | ||
os: macos-latest | ||
target: x86_64-apple-darwin | ||
extension: '' | ||
- build: windows-msvc | ||
os: windows-latest | ||
target: x86_64-pc-windows-msvc | ||
name: "Test on ${{ matrix.os }} (cargo test)" | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
MYSQLCLIENT_LIB_DIR: C:\mysql\lib | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: List files | ||
run: | | ||
pwd | ||
ls | ||
- uses: actions/cache@v3 | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- uses: dtolnay/[email protected] | ||
lfs: true | ||
- uses: dtolnay/[email protected] | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo test -- --nocapture | ||
|
||
fmt: | ||
name: "Format (cargo fmt)" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
components: rustfmt | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo fmt --all -- --check | ||
- uses: actions/setup-python@v3 | ||
|
||
doc: | ||
name: "Docs (cargo doc)" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo doc | ||
|
||
outdated: | ||
|
@@ -120,4 +84,5 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/install@cargo-outdated | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo outdated --workspace --exit-code 1 |
Oops, something went wrong.