Skip to content

Enable cmake workflow to build a specified target #1533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 1, 2024
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
5 changes: 4 additions & 1 deletion .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ inputs:
required: false
default: ""
description: "extra compile flags will be added to the end of C_FLAGS and CXX_FLAGS"
ninja_target:
required: false
type: string

runs:
using: "composite"
Expand Down Expand Up @@ -59,7 +62,7 @@ runs:
export CCACHE_SLOPPINESS=locale
export CCACHE_MAXSIZE=50G
cd ../build
ninja
ninja ${{ inputs.ninja_target }}
ccache -s
df -h
- name: report Build failed
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build_and_test_provisioned.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ on:
checkout_ref:
required: false
type: string
ninja_target:
required: false
type: string
workflow_dispatch:
inputs:
runner_label:
Expand All @@ -53,6 +56,9 @@ on:
checkout_ref:
required: false
type: string
ninja_target:
required: false
type: string

jobs:
main:
Expand All @@ -70,6 +76,7 @@ jobs:
sanitizer: ${{ inputs.sanitizer }}
ccache_remote_path: ${{ vars.REMOTE_CACHE_URL && format('http://{0}{1}', secrets.REMOTE_CACHE_AUTH, vars.REMOTE_CACHE_URL) || ''}}
extra_compile_flags: ${{ inputs.extra_compile_flags }}
ninja_target: ${{ inputs.ninja_target }}
- name: Run tests
uses: ./.github/actions/test
with:
Expand Down