diff options
author | 2022-05-11 12:23:22 +0200 | |
---|---|---|
committer | 2022-05-11 12:34:27 +0200 | |
commit | 799abbc4a5438c7cc4f8efc9756c18a733263356 (patch) | |
tree | c606146b912c23f5206eea840bf033bc9649332a | |
parent | 9196279e9c9bc9e9b4a393dfba7df158e5077c5a (diff) | |
download | meta-qcom-honister.tar.gz meta-qcom-honister.tar.bz2 meta-qcom-honister.zip |
.github: add build for push actionshonister
In addition to testing pull_request events, also test push events. In
order to effectively reuse the template job, a few additional changes
were made, especially the addition of a couple of input params.
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
(cherry picked from commit 85909070970751fb56d9eee67a8ac8b35fbdb2d0)
-rw-r--r-- | .github/workflows/premerge.yml | 7 | ||||
-rw-r--r-- | .github/workflows/push.yml | 21 |
2 files changed, 26 insertions, 2 deletions
diff --git a/.github/workflows/premerge.yml b/.github/workflows/premerge.yml index 42dfa4b..614581d 100644 --- a/.github/workflows/premerge.yml +++ b/.github/workflows/premerge.yml @@ -1,14 +1,17 @@ -name: PR build test +name: PR build on: pull_request_target: jobs: build: - uses: ndechesne/meta-qcom/.github/workflows/premerge-template.yml@master + uses: ndechesne/meta-qcom/.github/workflows/build-template.yml@master with: host: ubuntu-20.04 images: core-image-base core-image-weston core-image-x11 initramfs-test-image initramfs-test-full-image cryptodev-module machines: >- ['dragonboard-410c', 'qcom-armv8a', 'sdx55-mtp'] + ref: refs/pull/${{github.event.pull_request.number}}/merge + branch: ${{github.base_ref}} + url: ${{github.server_url}}/${{github.repository}} secrets: inherit diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..e2d057b --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,21 @@ +name: Push build + +on: + push: + branches: + - master + - honister + - dunfell + +jobs: + build: + uses: ndechesne/meta-qcom/.github/workflows/build-template.yml@master + with: + host: ubuntu-20.04 + images: core-image-base core-image-weston core-image-x11 initramfs-test-image initramfs-test-full-image cryptodev-module + machines: >- + ['dragonboard-410c', 'qcom-armv8a', 'sdx55-mtp'] + ref: ${{github.sha}} + branch: ${{github.ref_name}} + url: ${{github.server_url}}/${{github.repository}} + secrets: inherit |