Skip to content

Commit 09bcffc

Browse files
authored
Merge pull request #11 from Reloaded-Project/add-friendly-target-names
Add friendly target names & use local repo for testing.
2 parents ec6d63a + 93c6949 commit 09bcffc

File tree

8 files changed

+570
-76
lines changed

8 files changed

+570
-76
lines changed

.github/workflows/test-build-workflow.yml

Lines changed: 114 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -60,33 +60,44 @@ jobs:
6060
use-cross: false
6161
runs-on: ${{ matrix.os }}
6262
steps:
63+
- name: Checkout Action
64+
uses: actions/checkout@v6
65+
6366
- name: Checkout Test Repository
6467
uses: actions/checkout@v6
6568
with:
6669
repository: Sewer56/prs-rs
6770
ref: 149060527e685360687d7332742ac016b39af8a7
71+
path: test-project
72+
6873
- name: Test Binary Build
69-
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
74+
uses: ./
7075
with:
7176
target: ${{ matrix.target }}
7277
use-pgo: ${{ matrix.use-pgo }}
7378
use-cross: ${{ matrix.use-cross }}
74-
rust-project-path: "tools/cli"
79+
rust-project-path: "test-project/tools/cli"
80+
pgo-project-path: "test-project"
7581
crate-name: "prs-rs-cli"
7682
upload-artifacts: false
7783

7884
test-build-without-native-host-tools:
7985
runs-on: ubuntu-latest
8086
steps:
87+
- name: Checkout Action
88+
uses: actions/checkout@v6
89+
8190
- name: Checkout Test Repository
8291
uses: actions/checkout@v6
8392
with:
8493
repository: Sewer56/prs-rs
8594
ref: 149060527e685360687d7332742ac016b39af8a7
95+
path: test-project
96+
8697
- name: Test Android Armv7 Build
87-
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
98+
uses: ./
8899
with:
89-
rust-project-path: tools/cli
100+
rust-project-path: test-project/tools/cli
90101
crate-name: prs-rs-cli
91102
target: armv7-linux-androideabi
92103
use-cross: true
@@ -144,13 +155,18 @@ jobs:
144155
use-tarpaulin: true
145156
runs-on: ${{ matrix.os }}
146157
steps:
158+
- name: Checkout Action
159+
uses: actions/checkout@v6
160+
147161
- name: Checkout Test Repository
148162
uses: actions/checkout@v6
149163
with:
150164
repository: Sewer56/prs-rs
151165
ref: 149060527e685360687d7332742ac016b39af8a7
166+
path: test-project
167+
152168
- name: Test Library Build
153-
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
169+
uses: ./
154170
with:
155171
crate-name: prs-rs
156172
target: ${{ matrix.target }}
@@ -162,31 +178,42 @@ jobs:
162178
upload-artifacts: false
163179
run-tests-and-coverage: true
164180
upload-coverage-to-codecov: false
181+
rust-project-path: test-project
182+
pgo-project-path: test-project
183+
workspace-path: test-project
165184

166185
# This tests gathering PGO data on a host, and building for a different target.
167186
test-pgo-with-cross-compile:
168187
runs-on: ubuntu-latest
169188
steps:
189+
- name: Checkout Action
190+
uses: actions/checkout@v6
191+
170192
- name: Checkout Test Repository
171193
uses: actions/checkout@v6
172194
with:
173195
repository: Sewer56/prs-rs
174196
ref: 149060527e685360687d7332742ac016b39af8a7
197+
path: test-project
198+
175199
- name: Test PGO with Cross-Compilation (Binary)
176-
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
200+
uses: ./
177201
with:
178-
rust-project-path: tools/cli
179-
pgo-project-path: .
202+
rust-project-path: test-project/tools/cli
203+
pgo-project-path: test-project
180204
crate-name: prs-rs-cli
181205
target: aarch64-unknown-linux-gnu # x64 host to aarch64 simulated guest
182206
use-pgo: true
183207
use-cross: true
184208
pgo-benchmark-name: my_benchmark
185209
upload-artifacts: false
210+
186211
- name: Test PGO with Cross-Compilation (Library)
187-
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
212+
uses: ./
188213
with:
189214
crate-name: prs-rs
215+
rust-project-path: test-project
216+
pgo-project-path: test-project
190217
target: aarch64-unknown-linux-gnu # x64 host to to aarch64 simulated guest
191218
use-pgo: true
192219
use-cross: true
@@ -197,15 +224,21 @@ jobs:
197224
test-library-feature-build:
198225
runs-on: ubuntu-latest
199226
steps:
227+
- name: Checkout Action
228+
uses: actions/checkout@v6
229+
200230
- name: Checkout Test Repository
201231
uses: actions/checkout@v6
202232
with:
203233
repository: Sewer56/prs-rs
204234
ref: 149060527e685360687d7332742ac016b39af8a7
235+
path: test-project
236+
205237
- name: Test Library Feature Build
206-
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
238+
uses: ./
207239
with:
208240
crate-name: prs-rs
241+
rust-project-path: test-project
209242
target: x86_64-unknown-linux-gnu
210243
features: c-exports,std
211244
upload-artifacts: false
@@ -214,15 +247,21 @@ jobs:
214247
test-library-no-default-features:
215248
runs-on: ubuntu-latest
216249
steps:
250+
- name: Checkout Action
251+
uses: actions/checkout@v6
252+
217253
- name: Checkout Test Repository
218254
uses: actions/checkout@v6
219255
with:
220256
repository: Sewer56/prs-rs
221257
ref: 149060527e685360687d7332742ac016b39af8a7
258+
path: test-project
259+
222260
- name: Test Library No Default Features
223-
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
261+
uses: ./
224262
with:
225263
crate-name: prs-rs
264+
rust-project-path: test-project
226265
target: x86_64-unknown-linux-gnu
227266
no-default-features: true
228267
features: std
@@ -232,16 +271,21 @@ jobs:
232271
test-binary-pgo-with-library:
233272
runs-on: ubuntu-latest
234273
steps:
274+
- name: Checkout Action
275+
uses: actions/checkout@v6
276+
235277
- name: Checkout Test Repository
236278
uses: actions/checkout@v6
237279
with:
238280
repository: Sewer56/prs-rs
239281
ref: 149060527e685360687d7332742ac016b39af8a7
282+
path: test-project
283+
240284
- name: Test Binary PGO with Library
241-
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
285+
uses: ./
242286
with:
243-
rust-project-path: tools/cli
244-
pgo-project-path: .
287+
rust-project-path: test-project/tools/cli
288+
pgo-project-path: test-project
245289
crate-name: prs-rs-cli
246290
target: x86_64-unknown-linux-gnu
247291
use-pgo: true
@@ -251,15 +295,22 @@ jobs:
251295
test-library-pgo:
252296
runs-on: ubuntu-latest
253297
steps:
298+
- name: Checkout Action
299+
uses: actions/checkout@v6
300+
254301
- name: Checkout Test Repository
255302
uses: actions/checkout@v6
256303
with:
257304
repository: Sewer56/prs-rs
258305
ref: 149060527e685360687d7332742ac016b39af8a7
306+
path: test-project
307+
259308
- name: Test Library PGO
260-
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
309+
uses: ./
261310
with:
262311
crate-name: prs-rs
312+
rust-project-path: test-project
313+
pgo-project-path: test-project
263314
target: x86_64-unknown-linux-gnu
264315
use-pgo: true
265316
pgo-benchmark-name: my_benchmark
@@ -269,23 +320,30 @@ jobs:
269320
test-custom-rustflags:
270321
runs-on: ubuntu-latest
271322
steps:
323+
- name: Checkout Action
324+
uses: actions/checkout@v6
325+
272326
- name: Checkout Test Repository
273327
uses: actions/checkout@v6
274328
with:
275329
repository: Sewer56/prs-rs
276330
ref: 149060527e685360687d7332742ac016b39af8a7
331+
path: test-project
332+
277333
- name: Test Custom RUSTFLAGS (Binary)
278-
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
334+
uses: ./
279335
with:
280-
rust-project-path: tools/cli
336+
rust-project-path: test-project/tools/cli
281337
crate-name: prs-rs-cli
282338
target: x86_64-unknown-linux-gnu
283339
additional-rustflags: -C opt-level=3
284340
upload-artifacts: false
341+
285342
- name: Test Custom RUSTFLAGS (Library)
286-
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
343+
uses: ./
287344
with:
288345
crate-name: prs-rs
346+
rust-project-path: test-project
289347
target: x86_64-unknown-linux-gnu
290348
additional-rustflags: -C opt-level=3
291349
upload-artifacts: false
@@ -294,24 +352,31 @@ jobs:
294352
test-custom-build-std:
295353
runs-on: ubuntu-latest
296354
steps:
355+
- name: Checkout Action
356+
uses: actions/checkout@v6
357+
297358
- name: Checkout Test Repository
298359
uses: actions/checkout@v6
299360
with:
300361
repository: Sewer56/prs-rs
301362
ref: 149060527e685360687d7332742ac016b39af8a7
363+
path: test-project
364+
302365
- name: Test Custom RUSTFLAGS (Binary)
303-
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
366+
uses: ./
304367
with:
305-
rust-project-path: tools/cli
368+
rust-project-path: test-project/tools/cli
306369
crate-name: prs-rs-cli
307370
target: x86_64-unknown-linux-gnu
308371
additional-rustflags: -C opt-level=3
309372
upload-artifacts: false
310373
size-optimized-std: true
374+
311375
- name: Test Custom RUSTFLAGS (Library)
312-
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
376+
uses: ./
313377
with:
314378
crate-name: prs-rs
379+
rust-project-path: test-project
315380
target: x86_64-unknown-linux-gnu
316381
additional-rustflags: -C opt-level=3
317382
upload-artifacts: false
@@ -321,15 +386,20 @@ jobs:
321386
test-custom-rustc-args:
322387
runs-on: ubuntu-latest
323388
steps:
389+
- name: Checkout Action
390+
uses: actions/checkout@v6
391+
324392
- name: Checkout Test Repository
325393
uses: actions/checkout@v6
326394
with:
327395
repository: Sewer56/prs-rs
328396
ref: 149060527e685360687d7332742ac016b39af8a7
397+
path: test-project
398+
329399
- name: Test Custom rustc Args (Binary)
330-
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
400+
uses: ./
331401
with:
332-
rust-project-path: tools/cli
402+
rust-project-path: test-project/tools/cli
333403
crate-name: prs-rs-cli
334404
target: x86_64-unknown-linux-gnu
335405
additional-rustc-args: --all-features
@@ -341,51 +411,64 @@ jobs:
341411
test-workspace-build:
342412
runs-on: ubuntu-latest
343413
steps:
414+
- name: Checkout Action
415+
uses: actions/checkout@v6
416+
344417
- name: Checkout Test Repository
345418
uses: actions/checkout@v6
346419
with:
347420
repository: Sewer56/dxt-lossless-transform
348421
ref: d47afd9a7c2fa71495b6d942853b0fe41f258e26
422+
path: test-project
349423

350424
- name: Test Workspace Build (API)
351-
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
425+
uses: ./
352426
with:
353-
rust-project-path: projects/dxt-lossless-transform-api
354-
workspace-path: "."
427+
rust-project-path: test-project/projects/dxt-lossless-transform-api
428+
workspace-path: "test-project"
355429
crate-name: dxt-lossless-transform-api
356430
target: x86_64-unknown-linux-gnu
357431
upload-artifacts: true
358432

359433
test-workspace-build-2:
360434
runs-on: ubuntu-latest
361435
steps:
436+
- name: Checkout Action
437+
uses: actions/checkout@v6
438+
362439
- name: Checkout Test Repository
363440
uses: actions/checkout@v6
364441
with:
365442
repository: Sewer56/dxt-lossless-transform
366443
ref: d47afd9a7c2fa71495b6d942853b0fe41f258e26
444+
path: test-project
367445

368446
- name: Test Workspace Build (CLI)
369-
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
447+
uses: ./
370448
with:
371-
rust-project-path: projects/dxt-lossless-transform-cli
372-
workspace-path: "."
449+
rust-project-path: test-project/projects/dxt-lossless-transform-cli
450+
workspace-path: "test-project"
373451
crate-name: dxt-lossless-transform-cli
374452
target: x86_64-unknown-linux-gnu
375453
upload-artifacts: true
376454

377455
test-specific-nightly:
378456
runs-on: ubuntu-latest
379457
steps:
458+
- name: Checkout Action
459+
uses: actions/checkout@v6
460+
380461
- name: Checkout Test Repository
381462
uses: actions/checkout@v6
382463
with:
383464
repository: Sewer56/prs-rs
384465
ref: 149060527e685360687d7332742ac016b39af8a7
466+
path: test-project
467+
385468
- name: Test with Specific Nightly
386-
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
469+
uses: ./
387470
with:
388-
rust-project-path: tools/cli
471+
rust-project-path: test-project/tools/cli
389472
crate-name: prs-rs-cli
390473
target: x86_64-unknown-linux-gnu
391474
rust-toolchain: nightly-2025-09-11

0 commit comments

Comments
 (0)