Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveNguyen authored Feb 6, 2025
1 parent 37e0c40 commit d2188fa
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,28 @@ jobs:
run: |
rustup component add rustfmt --toolchain nightly
rustup component add clippy --toolchain nightly
- name: Install protc
run: sudo apt install -y protobuf-compiler libprotobuf-dev

- name: Install Mercurial
run: sudo apt-get install -y mercurial

- name: Set up IgH repo
run: |
hg clone http://hg.code.sf.net/p/etherlabmaster/code ethercat-hg
cd ethercat-hg
hg update stable-1.5
./bootstrap
./configure --disable-8139too
- name: Check
run: cargo check --all --tests
run: ETHERCAT_PATH=$(pwd)/ethercat-hg cargo check --all --tests
- name: Build
run: cargo build --verbose
run: ETHERCAT_PATH=$(pwd)/ethercat-hg cargo build --verbose
- name: Run tests
run: cargo test --verbose
run: ETHERCAT_PATH=$(pwd)/ethercat-hg cargo test --verbose
- name: Format
run: cargo fmt --all -- --check
run: ETHERCAT_PATH=$(pwd)/ethercat-hg cargo fmt --all -- --check
- name: Lint
run: cargo clippy --all-targets --all-features -- -D warnings
run: ETHERCAT_PATH=$(pwd)/ethercat-hg cargo clippy --all-targets --all-features -- -D warnings

0 comments on commit d2188fa

Please sign in to comment.