WIP: ci: Build buildox-ng on GitHub push events #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build buildbox images | |
on: | |
push: | |
branches: | |
- master | |
- branch/** | |
- camh/** | |
jobs: | |
build: | |
name: Check for relevant changes | |
runs-on: ubuntu-22.04-32core | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check changes | |
id: changes | |
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | |
with: | |
base: ${{ github.ref }} | |
filters: | | |
buildbox: | |
- 'build.assets/versions.mk' | |
- 'build.assets/images.mk' | |
- 'build.assets/buildbox/Dockerfile' | |
- 'build.assets/buildbox/clang-12.sh' | |
thirdparty: | |
- 'build.assets/images.mk' | |
- 'build.assets/buildbox/Dockerfile-thirdparty' | |
- 'build.assets/buildbox/build-buildbox.mk' | |
- 'build.assets/buildbox/buildbox-common.mk' | |
- 'build.assets/buildbox/cross-compile.mk' | |
- 'build.assets/buildbox/crosstoolng-configs/**' | |
- 'build.assets/buildbox/crosstoolng.mk' | |
- 'build.assets/buildbox/pkgconfg/**' | |
- 'build.assets/buildbox/thirdparty-libs.mk' | |
- name: Build buildbox-thirdparty | |
if: ${{ steps.changes.outputs.thirdparty }} | |
run: | |
make -C build.assets buildbox-thirdparty PUSH=1 | |
- name: Build buildbox-ng | |
if: ${{ steps.changes.outputs.thirdparty || steps.changes.outputs.buildbox }} | |
run: | |
make -C build.assets buildbox-ng PUSH=1 |