Skip to content

Commit 50b2433

Browse files
committed
Address review feedback
1 parent 92b2492 commit 50b2433

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

.github/workflows/ci-tlv-tool.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,19 @@ jobs:
1818

1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2222

2323
- name: Fmt
24-
run: cd tools/tlv; cargo fmt -- --check
24+
run: cargo fmt -- --check
25+
working-directory: tools/tlv
2526

2627
- name: Clippy
27-
run: cd tools/tlv; cargo clippy --no-deps -- -Dwarnings
28+
run: cargo clippy --no-deps -- -Dwarnings
29+
working-directory: tools/tlv
2830

2931
- name: Build
30-
run: cd tools/tlv; cargo build
32+
run: cargo build
33+
working-directory: tools/tlv
3134

3235
- name: Archive artifacts
3336
uses: actions/upload-artifact@v2

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
workflow_dispatch:
1111

1212
env:
13-
rust_toolchain: nightly-2023-07-01
13+
RUST_TOOLCHAIN: nightly-2023-07-01
1414
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1515
CARGO_TERM_COLOR: always
1616

@@ -28,21 +28,21 @@ jobs:
2828
if: matrix.toolchain == 'nightly'
2929
uses: dtolnay/rust-toolchain@v1
3030
with:
31-
toolchain: ${{ env.rust_toolchain }}
31+
toolchain: ${{ env.RUST_TOOLCHAIN }}
3232
components: rustfmt, clippy, rust-src
3333

3434
- name: Checkout
35-
uses: actions/checkout@v2
35+
uses: actions/checkout@v3
3636

3737
- name: Fmt
38-
run: cargo +${{ matrix.toolchain == 'nightly' && env.rust_toolchain || 'stable'}} fmt -- --check
38+
run: cargo +${{ matrix.toolchain == 'nightly' && env.RUST_TOOLCHAIN || 'stable'}} fmt -- --check
3939

4040
- name: Clippy
41-
run: cargo +${{ matrix.toolchain == 'nightly' && env.rust_toolchain || 'stable'}} clippy --no-deps --no-default-features --features ${{matrix.crypto-backend}},${{matrix.features}},${{ matrix.toolchain == 'nightly' && 'nightly' || ''}} -- -Dwarnings
41+
run: cargo +${{ matrix.toolchain == 'nightly' && env.RUST_TOOLCHAIN || 'stable'}} clippy --no-deps --no-default-features --features ${{matrix.crypto-backend}},${{matrix.features}},${{ matrix.toolchain == 'nightly' && 'nightly' || ''}} -- -Dwarnings
4242

4343
- name: Build
44-
run: cargo +${{ matrix.toolchain == 'nightly' && env.rust_toolchain || 'stable'}} build --no-default-features --features ${{matrix.crypto-backend}},${{matrix.features}},${{ matrix.toolchain == 'nightly' && 'nightly' || ''}}
44+
run: cargo +${{ matrix.toolchain == 'nightly' && env.RUST_TOOLCHAIN || 'stable'}} build --no-default-features --features ${{matrix.crypto-backend}},${{matrix.features}},${{ matrix.toolchain == 'nightly' && 'nightly' || ''}}
4545

4646
- name: Test
4747
if: matrix.features == 'os'
48-
run: cargo +${{ matrix.toolchain == 'nightly' && env.rust_toolchain || 'stable'}} test --no-default-features --features ${{matrix.crypto-backend}},${{matrix.features}},${{ matrix.toolchain == 'nightly' && 'nightly' || ''}} -- --test-threads=1
48+
run: cargo +${{ matrix.toolchain == 'nightly' && env.RUST_TOOLCHAIN || 'stable'}} test --no-default-features --features ${{matrix.crypto-backend}},${{matrix.features}},${{ matrix.toolchain == 'nightly' && 'nightly' || ''}} -- --test-threads=1

.github/workflows/publish-macros.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
uses: actions/checkout@v3
1212

1313
- name: Login
14-
run: cargo login ${{ secrets.crates_io_token }}
14+
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
1515

1616
- name: Publish-Macros
1717
run: cargo publish -p rs-matter-macros

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
uses: actions/checkout@v3
1515

1616
- name: Login
17-
run: cargo login ${{ secrets.crates_io_token }}
17+
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
1818

1919
- name: Publish
2020
run: cargo publish -p rs-matter

0 commit comments

Comments
 (0)