Allow setting BUILDDIR in the build to dictate where to find directories (#1153)

This allows building many components without elevated permissions or
needing to do it within a container.
This commit is contained in:
Mario Limonciello
2021-01-11 12:56:51 -06:00
committed by GitHub
parent 2c3c066ea0
commit d7c09e15b9
3 changed files with 6 additions and 5 deletions

View File

@@ -74,7 +74,7 @@ jobs:
docker run --rm --privileged -v "${GITHUB_WORKSPACE}:/build" \
-e BUILDER_UID="${BUILDER_UID}" -e BUILDER_GID="${BUILDER_GID}" \
-v "${{ matrix.board.runner }}-build-cache:/cache" \
haos-builder make VERSION_DEV=${{ needs.version.outputs.version_dev }} ${{ matrix.board.name }}
haos-builder make BUILDDIR=/build VERSION_DEV=${{ needs.version.outputs.version_dev }} ${{ matrix.board.name }}
- name: Upload images
uses: appleboy/scp-action@master

View File

@@ -69,7 +69,7 @@ jobs:
docker run --rm --privileged -v "${GITHUB_WORKSPACE}:/build" \
-e BUILDER_UID="${BUILDER_UID}" -e BUILDER_GID="${BUILDER_GID}" \
-v "${{ matrix.board.runner }}-build-cache:/cache" \
haos-builder make VERSION_DEV="" ${{ matrix.board.name }}
haos-builder make BUILDDIR=/build VERSION_DEV="" ${{ matrix.board.name }}
- name: Upload disk image
if: ${{ matrix.board.name != 'ova' }}