Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
145 changes: 114 additions & 31 deletions .github/workflows/test-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,33 +60,44 @@ jobs:
use-cross: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Action
uses: actions/checkout@v6

- name: Checkout Test Repository
uses: actions/checkout@v6
with:
repository: Sewer56/prs-rs
ref: 149060527e685360687d7332742ac016b39af8a7
path: test-project

- name: Test Binary Build
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
uses: ./
with:
target: ${{ matrix.target }}
use-pgo: ${{ matrix.use-pgo }}
use-cross: ${{ matrix.use-cross }}
rust-project-path: "tools/cli"
rust-project-path: "test-project/tools/cli"
pgo-project-path: "test-project"
crate-name: "prs-rs-cli"
upload-artifacts: false

test-build-without-native-host-tools:
runs-on: ubuntu-latest
steps:
- name: Checkout Action
uses: actions/checkout@v6

- name: Checkout Test Repository
uses: actions/checkout@v6
with:
repository: Sewer56/prs-rs
ref: 149060527e685360687d7332742ac016b39af8a7
path: test-project

- name: Test Android Armv7 Build
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
uses: ./
with:
rust-project-path: tools/cli
rust-project-path: test-project/tools/cli
crate-name: prs-rs-cli
target: armv7-linux-androideabi
use-cross: true
Expand Down Expand Up @@ -144,13 +155,18 @@ jobs:
use-tarpaulin: true
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Action
uses: actions/checkout@v6

- name: Checkout Test Repository
uses: actions/checkout@v6
with:
repository: Sewer56/prs-rs
ref: 149060527e685360687d7332742ac016b39af8a7
path: test-project

- name: Test Library Build
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
uses: ./
with:
crate-name: prs-rs
target: ${{ matrix.target }}
Expand All @@ -162,31 +178,42 @@ jobs:
upload-artifacts: false
run-tests-and-coverage: true
upload-coverage-to-codecov: false
rust-project-path: test-project
pgo-project-path: test-project
workspace-path: test-project

# This tests gathering PGO data on a host, and building for a different target.
test-pgo-with-cross-compile:
runs-on: ubuntu-latest
steps:
- name: Checkout Action
uses: actions/checkout@v6

- name: Checkout Test Repository
uses: actions/checkout@v6
with:
repository: Sewer56/prs-rs
ref: 149060527e685360687d7332742ac016b39af8a7
path: test-project

- name: Test PGO with Cross-Compilation (Binary)
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
uses: ./
with:
rust-project-path: tools/cli
pgo-project-path: .
rust-project-path: test-project/tools/cli
pgo-project-path: test-project
crate-name: prs-rs-cli
target: aarch64-unknown-linux-gnu # x64 host to aarch64 simulated guest
use-pgo: true
use-cross: true
pgo-benchmark-name: my_benchmark
upload-artifacts: false

- name: Test PGO with Cross-Compilation (Library)
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
uses: ./
with:
crate-name: prs-rs
rust-project-path: test-project
pgo-project-path: test-project
target: aarch64-unknown-linux-gnu # x64 host to to aarch64 simulated guest
use-pgo: true
use-cross: true
Expand All @@ -197,15 +224,21 @@ jobs:
test-library-feature-build:
runs-on: ubuntu-latest
steps:
- name: Checkout Action
uses: actions/checkout@v6

- name: Checkout Test Repository
uses: actions/checkout@v6
with:
repository: Sewer56/prs-rs
ref: 149060527e685360687d7332742ac016b39af8a7
path: test-project

- name: Test Library Feature Build
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
uses: ./
with:
crate-name: prs-rs
rust-project-path: test-project
target: x86_64-unknown-linux-gnu
features: c-exports,std
upload-artifacts: false
Expand All @@ -214,15 +247,21 @@ jobs:
test-library-no-default-features:
runs-on: ubuntu-latest
steps:
- name: Checkout Action
uses: actions/checkout@v6

- name: Checkout Test Repository
uses: actions/checkout@v6
with:
repository: Sewer56/prs-rs
ref: 149060527e685360687d7332742ac016b39af8a7
path: test-project

- name: Test Library No Default Features
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
uses: ./
with:
crate-name: prs-rs
rust-project-path: test-project
target: x86_64-unknown-linux-gnu
no-default-features: true
features: std
Expand All @@ -232,16 +271,21 @@ jobs:
test-binary-pgo-with-library:
runs-on: ubuntu-latest
steps:
- name: Checkout Action
uses: actions/checkout@v6

- name: Checkout Test Repository
uses: actions/checkout@v6
with:
repository: Sewer56/prs-rs
ref: 149060527e685360687d7332742ac016b39af8a7
path: test-project

- name: Test Binary PGO with Library
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
uses: ./
with:
rust-project-path: tools/cli
pgo-project-path: .
rust-project-path: test-project/tools/cli
pgo-project-path: test-project
crate-name: prs-rs-cli
target: x86_64-unknown-linux-gnu
use-pgo: true
Expand All @@ -251,15 +295,22 @@ jobs:
test-library-pgo:
runs-on: ubuntu-latest
steps:
- name: Checkout Action
uses: actions/checkout@v6

- name: Checkout Test Repository
uses: actions/checkout@v6
with:
repository: Sewer56/prs-rs
ref: 149060527e685360687d7332742ac016b39af8a7
path: test-project

- name: Test Library PGO
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
uses: ./
with:
crate-name: prs-rs
rust-project-path: test-project
pgo-project-path: test-project
target: x86_64-unknown-linux-gnu
use-pgo: true
pgo-benchmark-name: my_benchmark
Expand All @@ -269,23 +320,30 @@ jobs:
test-custom-rustflags:
runs-on: ubuntu-latest
steps:
- name: Checkout Action
uses: actions/checkout@v6

- name: Checkout Test Repository
uses: actions/checkout@v6
with:
repository: Sewer56/prs-rs
ref: 149060527e685360687d7332742ac016b39af8a7
path: test-project

- name: Test Custom RUSTFLAGS (Binary)
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
uses: ./
with:
rust-project-path: tools/cli
rust-project-path: test-project/tools/cli
crate-name: prs-rs-cli
target: x86_64-unknown-linux-gnu
additional-rustflags: -C opt-level=3
upload-artifacts: false

- name: Test Custom RUSTFLAGS (Library)
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
uses: ./
with:
crate-name: prs-rs
rust-project-path: test-project
target: x86_64-unknown-linux-gnu
additional-rustflags: -C opt-level=3
upload-artifacts: false
Expand All @@ -294,24 +352,31 @@ jobs:
test-custom-build-std:
runs-on: ubuntu-latest
steps:
- name: Checkout Action
uses: actions/checkout@v6

- name: Checkout Test Repository
uses: actions/checkout@v6
with:
repository: Sewer56/prs-rs
ref: 149060527e685360687d7332742ac016b39af8a7
path: test-project

- name: Test Custom RUSTFLAGS (Binary)
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
uses: ./
with:
rust-project-path: tools/cli
rust-project-path: test-project/tools/cli
crate-name: prs-rs-cli
target: x86_64-unknown-linux-gnu
additional-rustflags: -C opt-level=3
upload-artifacts: false
size-optimized-std: true

- name: Test Custom RUSTFLAGS (Library)
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
uses: ./
with:
crate-name: prs-rs
rust-project-path: test-project
target: x86_64-unknown-linux-gnu
additional-rustflags: -C opt-level=3
upload-artifacts: false
Expand All @@ -321,15 +386,20 @@ jobs:
test-custom-rustc-args:
runs-on: ubuntu-latest
steps:
- name: Checkout Action
uses: actions/checkout@v6

- name: Checkout Test Repository
uses: actions/checkout@v6
with:
repository: Sewer56/prs-rs
ref: 149060527e685360687d7332742ac016b39af8a7
path: test-project

- name: Test Custom rustc Args (Binary)
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
uses: ./
with:
rust-project-path: tools/cli
rust-project-path: test-project/tools/cli
crate-name: prs-rs-cli
target: x86_64-unknown-linux-gnu
additional-rustc-args: --all-features
Expand All @@ -341,51 +411,64 @@ jobs:
test-workspace-build:
runs-on: ubuntu-latest
steps:
- name: Checkout Action
uses: actions/checkout@v6

- name: Checkout Test Repository
uses: actions/checkout@v6
with:
repository: Sewer56/dxt-lossless-transform
ref: d47afd9a7c2fa71495b6d942853b0fe41f258e26
path: test-project

- name: Test Workspace Build (API)
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
uses: ./
with:
rust-project-path: projects/dxt-lossless-transform-api
workspace-path: "."
rust-project-path: test-project/projects/dxt-lossless-transform-api
workspace-path: "test-project"
crate-name: dxt-lossless-transform-api
target: x86_64-unknown-linux-gnu
upload-artifacts: true

test-workspace-build-2:
runs-on: ubuntu-latest
steps:
- name: Checkout Action
uses: actions/checkout@v6

- name: Checkout Test Repository
uses: actions/checkout@v6
with:
repository: Sewer56/dxt-lossless-transform
ref: d47afd9a7c2fa71495b6d942853b0fe41f258e26
path: test-project

- name: Test Workspace Build (CLI)
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
uses: ./
with:
rust-project-path: projects/dxt-lossless-transform-cli
workspace-path: "."
rust-project-path: test-project/projects/dxt-lossless-transform-cli
workspace-path: "test-project"
crate-name: dxt-lossless-transform-cli
target: x86_64-unknown-linux-gnu
upload-artifacts: true

test-specific-nightly:
runs-on: ubuntu-latest
steps:
- name: Checkout Action
uses: actions/checkout@v6

- name: Checkout Test Repository
uses: actions/checkout@v6
with:
repository: Sewer56/prs-rs
ref: 149060527e685360687d7332742ac016b39af8a7
path: test-project

- name: Test with Specific Nightly
uses: Reloaded-Project/devops-rust-lightweight-binary@v1-test
uses: ./
with:
rust-project-path: tools/cli
rust-project-path: test-project/tools/cli
crate-name: prs-rs-cli
target: x86_64-unknown-linux-gnu
rust-toolchain: nightly-2025-09-11
Expand Down
Loading
Loading