Skip to content

Commit

Permalink
Added: Tests for PGO with Cross Compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Jun 17, 2024
1 parent c59962b commit 4e3c20e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,37 @@ jobs:
build-library: true
upload-artifacts: false

# This tests gathering PGO data on a host, and building for a different target.
test-pgo-with-cross:
runs-on: ubuntu-latest
steps:
- name: Checkout Test Repository
uses: actions/checkout@v4
with:
repository: Sewer56/prs-rs
ref: d08599ed5473616f57d57a0966939e1a5dbda9b4
- name: Test PGO with Cross-Compilation (Binary)
uses: Reloaded-Project/devops-rust-lightweight-binary@v1
with:
rust-project-path: tools/cli/
pgo-project-path: .
crate-name: prs-rs-cli
target: aarch64-unknown-linux-gnu # x64 to aarch64
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
with:
crate-name: prs-rs
target: aarch64-unknown-linux-gnu # x64 to aarch64
use-pgo: true
use-cross: true
pgo-benchmark-name: my_benchmark
upload-artifacts: false
build-library: true

test-library-feature-build:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 4e3c20e

Please sign in to comment.