提交 f52519bf authored 作者: Serhij S's avatar Serhij S

conc

上级 15ca3f5d
...@@ -8,30 +8,25 @@ on: ...@@ -8,30 +8,25 @@ on:
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: cargo test - name: cargo test
run: cargo test --verbose --all-features --all-targets run: cargo test --verbose --all-features --all-targets
fmt: fmt:
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: cargo fmt - name: cargo fmt
run: cargo fmt --check run: cargo fmt --check
clippy: clippy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: cargo clippy - name: cargo clippy
...@@ -49,27 +44,18 @@ jobs: ...@@ -49,27 +44,18 @@ jobs:
-A clippy::large_futures -A clippy::large_futures
derive-test: derive-test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: cargo test - name: cargo test
run: cd roboplc-derive && cargo test --verbose --all-features --all-targets run: cd roboplc-derive && cargo test --verbose --all-features --all-targets
derive-fmt: derive-fmt:
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: cargo fmt - name: cargo fmt
run: cd roboplc-derive && cargo fmt --check run: cd roboplc-derive && cargo fmt --check
derive-clippy: derive-clippy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: cargo clippy - name: cargo clippy
......
...@@ -102,3 +102,5 @@ buses. ...@@ -102,3 +102,5 @@ buses.
Currently supported: Currently supported:
* Modbus (RTU/TCP) via [`io::modbus`] * Modbus (RTU/TCP) via [`io::modbus`]
* Raw UDP in/out via [`io::raw_udp`]
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论