@@ -11,24 +11,6 @@ name: Continuous integration
1111permissions : {}
1212
1313jobs :
14- Prepare :
15- runs-on : ubuntu-24.04
16- permissions :
17- contents : read
18- outputs :
19- nightly_version : ${{ steps.read_toolchain.outputs.nightly_version }}
20- maintainer_tools_version : ${{ steps.read_toolchain.outputs.maintainer_tools_version }}
21- steps :
22- - name : " Checkout repo"
23- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
24- with :
25- persist-credentials : false
26- - name : " Read workspace versions"
27- id : read_toolchain
28- run : |
29- echo "nightly_version=$(cat nightly-version)" >> $GITHUB_OUTPUT
30- echo "maintainer_tools_version=$(cat maintainer-tools-version)" >> $GITHUB_OUTPUT
31-
3214 Stable : # 2 jobs, one per manifest.
3315 name : Test - stable toolchain
3416 needs : Prepare
@@ -40,23 +22,12 @@ jobs:
4022 matrix :
4123 dep : [minimal, recent]
4224 steps :
43- - name : " Checkout repo "
44- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
25+ - uses : actions/checkout@v6
26+ - uses : ./.github/actions/prepare
4527 with :
46- persist-credentials : false
47- - name : " Checkout maintainer tools"
48- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
49- with :
50- repository : rust-bitcoin/rust-bitcoin-maintainer-tools
51- ref : ${{ needs.Prepare.outputs.maintainer_tools_version }}
52- path : maintainer-tools
53- persist-credentials : false
54- - name : " Select toolchain"
55- uses : dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable
56- - name : " Set dependencies"
57- run : cp Cargo-${{ matrix.dep }}.lock Cargo.lock
58- - name : " Run test script"
59- run : ./maintainer-tools/ci/run_task.sh stable
28+ toolchain : stable
29+ - name : " Run tests"
30+ run : cargo rbmt test stable --lock-file ${{ matrix.dep }}
6031
6132 Nightly : # 2 jobs, one per manifest.
6233 name : Test - nightly toolchain
@@ -69,25 +40,12 @@ jobs:
6940 matrix :
7041 dep : [minimal, recent]
7142 steps :
72- - name : " Checkout repo "
73- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
43+ - uses : actions/checkout@v6
44+ - uses : ./.github/actions/prepare
7445 with :
75- persist-credentials : false
76- - name : " Checkout maintainer tools"
77- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
78- with :
79- repository : rust-bitcoin/rust-bitcoin-maintainer-tools
80- ref : ${{ needs.Prepare.outputs.maintainer_tools_version }}
81- path : maintainer-tools
82- persist-credentials : false
83- - name : " Select toolchain"
84- uses : dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
85- with :
86- toolchain : ${{ needs.Prepare.outputs.nightly_version }}
87- - name : " Set dependencies"
88- run : cp Cargo-${{ matrix.dep }}.lock Cargo.lock
89- - name : " Run test script"
90- run : ./maintainer-tools/ci/run_task.sh nightly
46+ toolchain : nightly
47+ - name : " Run tests"
48+ run : cargo rbmt test nightly --lock-file ${{ matrix.dep }}
9149
9250 MSRV : # 2 jobs, one per manifest.
9351 name : Test - MSRV toolchain
@@ -100,31 +58,12 @@ jobs:
10058 matrix :
10159 dep : [minimal, recent]
10260 steps :
103- - name : " Checkout repo"
104- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
105- with :
106- persist-credentials : false
107- - name : " Checkout maintainer tools"
108- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
109- with :
110- repository : rust-bitcoin/rust-bitcoin-maintainer-tools
111- ref : ${{ needs.Prepare.outputs.maintainer_tools_version }}
112- path : maintainer-tools
113- persist-credentials : false
114- - name : " Free disk space"
115- uses : endersonmenezes/free-disk-space@6c4664f43348c8c7011b53488d5ca65e9fc5cd1a # v3.0.0
116- with :
117- remove_android : true
118- remove_dotnet : true
119- remove_haskell : true
120- - name : " Select toolchain"
121- uses : dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable
61+ - uses : actions/checkout@v6
62+ - uses : ./.github/actions/prepare
12263 with :
12364 toolchain : " 1.74.0"
124- - name : " Set dependencies"
125- run : cp Cargo-${{ matrix.dep }}.lock Cargo.lock
126- - name : " Run test script"
127- run : ./maintainer-tools/ci/run_task.sh msrv
65+ - name : " Run tests"
66+ run : cargo rbmt test msrv --lock-file ${{ matrix.dep }}
12867
12968 Lint :
13069 name : Lint - nightly toolchain
@@ -137,27 +76,13 @@ jobs:
13776 matrix :
13877 dep : [recent]
13978 steps :
140- - name : " Checkout repo"
141- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
142- with :
143- persist-credentials : false
144- - name : " Checkout maintainer tools"
145- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
146- with :
147- repository : rust-bitcoin/rust-bitcoin-maintainer-tools
148- ref : ${{ needs.Prepare.outputs.maintainer_tools_version }}
149- path : maintainer-tools
150- persist-credentials : false
151- - name : " Select toolchain"
152- uses : dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
79+ - uses : actions/checkout@v6
80+ - uses : ./.github/actions/prepare
15381 with :
154- toolchain : ${{ needs.Prepare.outputs.nightly_version }}
155- - name : " Install clippy"
156- run : rustup component add clippy
157- - name : " Set dependencies"
158- run : cp Cargo-${{ matrix.dep }}.lock Cargo.lock
159- - name : " Run test script"
160- run : ./maintainer-tools/ci/run_task.sh lint
82+ toolchain : nightly
83+ components : clippy
84+ - name : " Run lint"
85+ run : cargo rbmt lint
16186
16287 Docs :
16388 name : Docs - stable toolchain
@@ -170,23 +95,12 @@ jobs:
17095 matrix :
17196 dep : [recent]
17297 steps :
173- - name : " Checkout repo"
174- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
175- with :
176- persist-credentials : false
177- - name : " Checkout maintainer tools"
178- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
98+ - uses : actions/checkout@v6
99+ - uses : ./.github/actions/prepare
179100 with :
180- repository : rust-bitcoin/rust-bitcoin-maintainer-tools
181- ref : ${{ needs.Prepare.outputs.maintainer_tools_version }}
182- path : maintainer-tools
183- persist-credentials : false
184- - name : " Select toolchain"
185- uses : dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable
186- - name : " Set dependencies"
187- run : cp Cargo-${{ matrix.dep }}.lock Cargo.lock
188- - name : " Run test script"
189- run : ./maintainer-tools/ci/run_task.sh docs
101+ toolchain : stable
102+ - name : " Build docs"
103+ run : cargo rbmt docs
190104
191105 Docsrs :
192106 name : Docs - nightly toolchain
@@ -199,25 +113,12 @@ jobs:
199113 matrix :
200114 dep : [recent]
201115 steps :
202- - name : " Checkout repo "
203- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
116+ - uses : actions/checkout@v6
117+ - uses : ./.github/actions/prepare
204118 with :
205- persist-credentials : false
206- - name : " Checkout maintainer tools"
207- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
208- with :
209- repository : rust-bitcoin/rust-bitcoin-maintainer-tools
210- ref : ${{ needs.Prepare.outputs.maintainer_tools_version }}
211- path : maintainer-tools
212- persist-credentials : false
213- - name : " Select toolchain"
214- uses : dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
215- with :
216- toolchain : ${{ needs.Prepare.outputs.nightly_version }}
217- - name : " Set dependencies"
218- run : cp Cargo-${{ matrix.dep }}.lock Cargo.lock
219- - name : " Run test script"
220- run : ./maintainer-tools/ci/run_task.sh docsrs
119+ toolchain : nightly
120+ - name : " Build docs.rs docs"
121+ run : cargo rbmt docsrs
221122
222123 Bench :
223124 name : Bench - nightly toolchain
@@ -230,25 +131,12 @@ jobs:
230131 matrix :
231132 dep : [recent]
232133 steps :
233- - name : " Checkout repo"
234- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
235- with :
236- persist-credentials : false
237- - name : " Checkout maintainer tools"
238- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
134+ - uses : actions/checkout@v6
135+ - uses : ./.github/actions/prepare
239136 with :
240- repository : rust-bitcoin/rust-bitcoin-maintainer-tools
241- ref : ${{ needs.Prepare.outputs.maintainer_tools_version }}
242- path : maintainer-tools
243- persist-credentials : false
244- - name : " Select toolchain"
245- uses : dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
246- with :
247- toolchain : ${{ needs.Prepare.outputs.nightly_version }}
248- - name : " Set dependencies"
249- run : cp Cargo-${{ matrix.dep }}.lock Cargo.lock
250- - name : " Run test script"
251- run : ./maintainer-tools/ci/run_task.sh bench
137+ toolchain : nightly
138+ - name : " Run benches"
139+ run : cargo rbmt test nightly --lock-file ${{ matrix.dep }}
252140
253141 Arch32bit :
254142 name : Test 32-bit version
0 commit comments