44 push :
55 branches : [ main ]
66 pull_request :
7- branches : [ main ]
87 workflow_dispatch :
98
109defaults :
@@ -14,8 +13,7 @@ defaults:
1413jobs :
1514 test :
1615 name : Test ${{ matrix.os }} (${{ matrix.simd_mode }})
17- permissions :
18- contents : read
16+ permissions : { contents: read }
1917 runs-on : ${{ matrix.os }}
2018 strategy :
2119 fail-fast : false
5250
5351 test-msrv :
5452 name : Test MSRV
55- permissions :
56- contents : read
53+ permissions : { contents: read }
5754 runs-on : ubuntu-latest
5855 steps :
5956 - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
@@ -69,16 +66,14 @@ jobs:
6966 uses : dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
7067 with :
7168 toolchain : ${{ steps.msrv.outputs.value }}
72- - run : just ci_mode=0 ci-test-msrv # Ignore warnings in MSRV
69+ - run : just ci-test-msrv
7370
7471 fuzz :
7572 name : Fuzz
76- permissions :
77- contents : read
73+ permissions : { contents: read }
7874 runs-on : ubuntu-latest
79- env :
80- # The number of seconds to run the fuzz target.
81- FUZZ_TIME : 60
75+ # The number of seconds to run the fuzz target.
76+ env : { FUZZ_TIME: 60 }
8277 strategy :
8378 matrix :
8479 include :
@@ -109,8 +104,7 @@ jobs:
109104
110105 coverage :
111106 name : Code Coverage
112- permissions :
113- contents : read
107+ permissions : { contents: read }
114108 if : github.event_name != 'release'
115109 runs-on : ubuntu-latest
116110 steps :
@@ -119,13 +113,12 @@ jobs:
119113 - uses : Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
120114 - uses : taiki-e/install-action@b8cecb83565409bcc297b2df6e77f030b2a468d5 # v2.82.0
121115 with : { tool: 'just,cargo-llvm-cov' }
122- - name : Generate code coverage
123- run : just ci-coverage
116+ - run : just ci-coverage
124117 - name : Upload coverage to Codecov
125118 uses : codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
126119 with :
127120 token : ${{ secrets.CODECOV_TOKEN }}
128- files : target/llvm-cov/codecov .info
121+ files : target/llvm-cov/lcov .info
129122
130123 # This job checks if any of the previous jobs failed or were canceled.
131124 # This approach also allows some jobs to be skipped if they are not needed.
@@ -142,16 +135,17 @@ jobs:
142135
143136 release :
144137 # Some dependencies of the `ci-passed` job might be skipped, but we still want to run if the `ci-passed` job succeeded.
145- if : always() && startsWith(github.ref, 'refs/tags/') && needs.ci-passed.result == 'success'
138+ if : |
139+ always()
140+ && startsWith(github.ref, 'refs/tags/')
141+ && needs.ci-passed.result == 'success'
146142 name : Publish to crates.io
147- permissions :
148- contents : read
143+ permissions : { contents: read }
149144 needs : [ ci-passed ]
150145 runs-on : ubuntu-latest
151146 steps :
152147 - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
153148 with : { persist-credentials: false, submodules: recursive }
154- - name : Publish to crates.io
155- run : cargo publish
149+ - run : cargo publish
156150 env :
157151 CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
0 commit comments