-
Notifications
You must be signed in to change notification settings - Fork 363
ci: reduce load on pr runs #1815
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,10 @@ on: | |
| required: false | ||
| type: string | ||
| default: "0" | ||
| profile: | ||
| required: false | ||
| type: string | ||
| default: "full" # values: pr | full | ||
| outputs: | ||
| artifacts_url: | ||
| description: "URL to retrieve build artifacts" | ||
|
|
@@ -104,22 +108,10 @@ jobs: | |
| yamlfile: "" | ||
| - name: qcom-distro | ||
| yamlfile: ':ci/qcom-distro-prop-image.yml' | ||
| - name: qcom-distro-catchall | ||
| yamlfile: ':ci/qcom-distro-catchall.yml' | ||
| - name: debug | ||
| yamlfile: ':ci/qcom-distro-prop-image.yml:ci/debug.yml' | ||
| - name: performance | ||
| yamlfile: ':ci/qcom-distro-prop-image.yml:ci/performance.yml' | ||
| kernel: | ||
| - type: default | ||
| dirname: "" | ||
| yamlfile: "" | ||
| - type: 6.18 | ||
| dirname: "_linux-qcom-6.18" | ||
| yamlfile: ":ci/linux-qcom-6.18.yml" | ||
| - type: rt-6.18-distro-kvm | ||
| dirname: "_linux-qcom-rt-6.18_qcom-distro-kvm" | ||
| yamlfile: ":ci/linux-qcom-rt-6.18.yml:ci/qcom-distro-kvm.yml" | ||
| name: ${{ matrix.machine }}/${{ matrix.distro.name }}${{ matrix.kernel.dirname }} | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
@@ -154,10 +146,12 @@ jobs: | |
| - iq-x7181-evk | ||
| - kaanapali-mtp | ||
| - qcm6490-idp | ||
| - qcom-armv8a | ||
| - qcs615-ride | ||
| - qcs8300-ride-sx | ||
| - qcs9100-ride-sx | ||
| - rb1-core-kit | ||
| - rb3gen2-core-kit | ||
| - sm8750-mtp | ||
| distro: | ||
| - name: nodistro | ||
|
|
@@ -180,6 +174,28 @@ jobs: | |
| - type: rt-6.18-distro-kvm | ||
| dirname: "_linux-qcom-rt-6.18_qcom-distro-kvm" | ||
| yamlfile: ":ci/linux-qcom-rt-6.18.yml:ci/qcom-distro-kvm.yml" | ||
| exclude: | ||
| # Exclude jobs from compile_warm_up | ||
| - machine: qcom-armv8a | ||
| distro: | ||
| name: nodistro | ||
| kernel: | ||
| type: default | ||
| - machine: qcom-armv8a | ||
| distro: | ||
| name: qcom-distro | ||
| kernel: | ||
| type: default | ||
| - machine: rb3gen2-core-kit | ||
| distro: | ||
| name: nodistro | ||
| kernel: | ||
| type: default | ||
| - machine: rb3gen2-core-kit | ||
| distro: | ||
| name: qcom-distro | ||
| kernel: | ||
| type: default | ||
| include: | ||
| # Additional builds for specific machines | ||
| - machine: qcom-armv8a | ||
|
|
@@ -256,11 +272,14 @@ jobs: | |
| yamlfile: "" | ||
| name: ${{ matrix.machine }}/${{ matrix.distro.name }}${{ matrix.kernel.dirname }} | ||
|
quaresmajose marked this conversation as resolved.
|
||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: checkout | ||
| if: inputs.profile != 'pr' || (matrix.distro.name != 'debug' && matrix.distro.name != 'performance') | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you not use github.event_name here , instead of making an additional inputs?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For pr, yes, but I was thinking that having an extra argument makes it more explicit and also not bound to a potential event rename. We also expect to have a different permutation between nighly / weekly / monthly as well, so that could use the same input variable. |
||
| uses: actions/checkout@v6 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Run kas build | ||
| if: inputs.profile != 'pr' || (matrix.distro.name != 'debug' && matrix.distro.name != 'performance') | ||
| uses: ./.github/actions/compile | ||
| id: compile_kas | ||
| with: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,4 +25,6 @@ jobs: | |
| path: ${{ github.event_path }} | ||
| build-pr: | ||
| uses: ./.github/workflows/build-yocto.yml | ||
| with: | ||
| profile: pr | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.