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
7 changes: 6 additions & 1 deletion .github/workflows/CiWorkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ on:
required: false
default: ""
type: string
runner-images:
description: 'JSON array string of runner images to use for the OS matrix (e.g. ["ubuntu-latest", "windows-latest"])'
required: false
default: '["ubuntu-latest", "windows-latest", "ubuntu-24.04-arm"]'
type: string

jobs:
basic_ci:
Expand Down Expand Up @@ -76,7 +81,7 @@ jobs:

strategy:
matrix:
os: [ ubuntu-latest, windows-latest, ubuntu-24.04-arm ]
os: ${{ fromJSON(inputs.runner-images) }}

steps:
- name: ✅ Checkout Repository ✅
Expand Down
20 changes: 18 additions & 2 deletions .sync/Files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -503,20 +503,36 @@ group:
repos: |
OpenDevicePartnership/patina-dxe-core-qemu

# CI Workflow: patina-mtrr & patina-paging
# CI Workflow: patina-mtrr
- files:
- source: .sync/workflows/leaf/ci-workflow.yml
dest: .github/workflows/ci-workflow.yml
template:
build_tasks:
- "build"
- "build-x64"
- "build-aarch64"
run_cargo_vet: false
runner_images:
- "ubuntu-latest"
- "windows-latest"
trigger_branches:
- "main"
repos: |
OpenDevicePartnership/patina-mtrr

# CI Workflow: patina-paging
- files:
- source: .sync/workflows/leaf/ci-workflow.yml
dest: .github/workflows/ci-workflow.yml
template:
build_tasks:
- "build"
- "build-x64"
- "build-aarch64"
run_cargo_vet: false
trigger_branches:
- "main"
repos: |
OpenDevicePartnership/patina-paging

# CI Workflow: patina-components
Expand Down
28 changes: 2 additions & 26 deletions .sync/rust/Makefiles/Makefile-patina-mtrr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,29 +138,12 @@ clear = true
command = "cargo"
args = ["build", "--target", "x86_64-unknown-uefi", "@@split(BUILD_FLAGS, )", "@@split(UEFI_CRATES, )"]

[tasks.build-aarch64]
description = """Builds patina_mtrr crate as UEFI target.

Example:
`cargo make build-aarch64`
`cargo make -p release build-aarch64`
"""
clear = true
command = "cargo"
args = ["build", "--target", "aarch64-unknown-uefi", "@@split(BUILD_FLAGS, )", "@@split(UEFI_CRATES, )"]

[tasks.check_code_x64]
description = "Checks rust code for x64 build errors with results."
private = true
command = "cargo"
args = ["check", "--target", "x86_64-unknown-uefi", "--features", "ci_features", "@@split(CARGO_MAKE_TASK_ARGS, )", "@@split(NO_STD_FLAGS, )",]

[tasks.check_code_aarch64]
description = "Checks rust code for aarch64 build errors with results."
private = true
command = "cargo"
args = ["check", "--target", "aarch64-unknown-uefi", "--features", "ci_features", "@@split(CARGO_MAKE_TASK_ARGS, )", "@@split(NO_STD_FLAGS, )",]

[tasks.check_tests]
description = "Checks rust test code for build errors with results."
private = true
Expand All @@ -170,7 +153,7 @@ args = ["test", "--no-run", "--all-targets", "--all-features", "@@split(CARGO_MA
[tasks.check]
description = "Checks rust code for errors. Example `cargo make check`"
clear = true
run_task = [{ name = ["check_code_x64", "check_code_aarch64", "check_tests"], parallel = true }]
run_task = [{ name = ["check_code_x64", "check_tests"], parallel = true }]

[tasks.check-no-default-features-code]
description = "Checks rust code compiles without default features."
Expand Down Expand Up @@ -289,20 +272,14 @@ exec --fail-on-error cargo test --target ${target} --workspace --features std
[tasks.clippy]
description = "Run cargo clippy for the host target and both UEFI cross-compilation targets."
clear = true
run_task = [{ name = ["clippy-x64", "clippy-aarch64", "clippy-std"], parallel = true }]
run_task = [{ name = ["clippy-x64", "clippy-std"], parallel = true }]

[tasks.clippy-x64]
description = "Run cargo clippy for x86_64-unknown-uefi."
private = true
command = "cargo"
args = ["clippy", "--target", "x86_64-unknown-uefi", "--features", "ci_features", "@@split(NO_STD_FLAGS, )", "--", "-D", "warnings"]

[tasks.clippy-aarch64]
description = "Run cargo clippy for aarch64-unknown-uefi."
private = true
command = "cargo"
args = ["clippy", "--target", "aarch64-unknown-uefi", "--features", "ci_features", "@@split(NO_STD_FLAGS, )", "--", "-D", "warnings"]

[tasks.clippy-std]
description = "Run cargo clippy for std."
private = true
Expand Down Expand Up @@ -360,7 +337,6 @@ dependencies = [
"check-no-default-features",
"build",
"build-x64",
"build-aarch64",
"coverage",
"doc-test",
"doc",
Expand Down
3 changes: 3 additions & 0 deletions .sync/workflows/leaf/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ jobs:
with:
build-tasks: {{ build_tasks | join(",") }}
run-cargo-vet: {{ run_cargo_vet }}
{% if runner_images %}
runner-images: '{{ runner_images | dump | safe }}'
{% endif %}
secrets: inherit
{% if test_mdbook -%}
{{" "}}mdbook_docs_test:
Expand Down
Loading