diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index a222fbf..7176f2d 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -6,17 +6,13 @@ on: branches: ["**"] tags: ["**"] -concurrency: - group: ${{ (github.ref == 'refs/heads/main') && 'main' || format('{0}-{1}', github.workflow, github.ref) }} # concurrency does not include main branch - cancel-in-progress: true - jobs: lint: name: Lint runs-on: [ubuntu-22.04] steps: - uses: actions/checkout@v3 - - uses: moonrepo/setup-rust@v1 + - uses: dtolnay/rust-toolchain@stable with: bins: cargo-make components: clippy @@ -32,7 +28,7 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v3 - - uses: moonrepo/setup-rust@v1 + - uses: dtolnay/rust-toolchain@stable with: components: rustfmt - name: Build binary @@ -48,21 +44,8 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v3 - - uses: moonrepo/setup-rust@v1 + - uses: dtolnay/rust-toolchain@stable with: bins: cargo-make, cargo-nextest - name: Run tests - run: | - cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_single_thread - cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_multi_thread - cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_registry_2 - cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_registry_1 - cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_attribute_macros - cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_calibration_segment_basics - cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_calibration_segment_persistence - cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_cal_page_switch - cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_cal_page_freeze - cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_cal_page_trait - cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_daq_register - cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_daq_capture - cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_a2l_local_variables_capture + run: cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture diff --git a/README.md b/README.md index e9329ad..94df6bb 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Main purpose was to experiment with Rust and to demonstrate some more advanced f Requires CANape 22 SP2. -## Introduction +## Introduction XCP is a measurement and calibration protocol commonly used in the automotive industry. It is an ASAM standard.