-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from plaans/deps
build: Update depencies and CI config
- Loading branch information
Showing
2 changed files
with
224 additions
and
213 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 |
---|---|---|
|
@@ -13,17 +13,8 @@ jobs: | |
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
# - uses: Swatinem/rust-cache@v1 | ||
# with: | ||
# cache-on-failure: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
- uses: dtolnay/rust-toolchain@stable | ||
- run: cargo test | ||
|
||
lints: | ||
name: Rustfmt and Clippy | ||
|
@@ -32,24 +23,11 @@ jobs: | |
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: 1.70.0 # stable | ||
override: true | ||
# - uses: Swatinem/rust-cache@v1 | ||
# with: | ||
# cache-on-failure: true | ||
- run: rustup component add rustfmt | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
- run: rustup component add clippy | ||
- uses: actions-rs/cargo@v1 | ||
- uses: dtolnay/[email protected] # fixed version to avoid failures on rust version releases | ||
with: | ||
command: clippy | ||
args: -- -D warnings | ||
components: clippy, rustfmt | ||
- run: cargo fmt --all -- --check | ||
- run: cargo clippy -- -D warnings | ||
|
||
integration-tests: | ||
name: Solving | ||
|
@@ -58,14 +36,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
# - uses: Swatinem/rust-cache@v1 | ||
# with: | ||
# cache-on-failure: true | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Install GNU parallel | ||
run: sudo apt-get update && sudo apt-get install parallel | ||
- name: Get problems from LFS | ||
|
@@ -86,11 +57,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Check for new protobuf definitions | ||
run: | | ||
# Download the latest protobuf definitions | ||
|
@@ -116,11 +83,7 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Submodules initialization | ||
run: git submodule update --init # get our own copy of unified-planing repos | ||
- name: Install python dependencies | ||
|
@@ -166,11 +129,7 @@ jobs: | |
uses: actions/checkout@master | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
|
Oops, something went wrong.