ci: set debug flag explicitly in os build pipeline

This commit is contained in:
Malte Poll 2023-01-20 10:28:56 +01:00 committed by Malte Poll
parent 5eb0b88bd7
commit ce17a0c9ac

View File

@ -71,7 +71,7 @@ jobs:
if: inputs.stream == 'debug' if: inputs.stream == 'debug'
uses: ./.github/actions/build_debugd uses: ./.github/actions/build_debugd
with: with:
outputPath: ${{ github.workspace }}/build/bootstrapper outputPath: ${{ github.workspace }}/build/debugd
- name: Build disk-mapper - name: Build disk-mapper
uses: ./.github/actions/build_disk_mapper uses: ./.github/actions/build_disk_mapper
@ -85,10 +85,12 @@ jobs:
- name: Upload dependencies - name: Upload dependencies
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
env:
MAIN_BINARY: ${{ inputs.stream == 'debug' && 'debugd' || 'bootstrapper' }}
with: with:
name: dependencies name: dependencies
path: | path: |
${{ github.workspace }}/build/bootstrapper ${{ github.workspace }}/build/${{ env.MAIN_BINARY }}
${{ github.workspace }}/build/disk-mapper ${{ github.workspace }}/build/disk-mapper
${{ github.workspace }}/build/upgrade-agent ${{ github.workspace }}/build/upgrade-agent
@ -250,9 +252,10 @@ jobs:
name: dependencies name: dependencies
path: ${{ github.workspace }}/build path: ${{ github.workspace }}/build
- name: Mark bootstrapper, disk-mapper, and upgrade-agent as executable - name: Mark bootstrapper, debugd, disk-mapper, and upgrade-agent as executable
run: | run: |
chmod +x ${{ github.workspace }}/build/bootstrapper chmod +x ${{ github.workspace }}/build/bootstrapper || true
chmod +x ${{ github.workspace }}/build/debugd || true
chmod +x ${{ github.workspace }}/build/disk-mapper chmod +x ${{ github.workspace }}/build/disk-mapper
chmod +x ${{ github.workspace }}/build/upgrade-agent chmod +x ${{ github.workspace }}/build/upgrade-agent
@ -277,14 +280,16 @@ jobs:
working-directory: ${{ github.workspace }}/image working-directory: ${{ github.workspace }}/image
env: env:
BOOTSTRAPPER_BINARY: ${{ github.workspace }}/build/bootstrapper BOOTSTRAPPER_BINARY: ${{ github.workspace }}/build/bootstrapper
DEBUGD_BINARY: ${{ github.workspace }}/build/bootstrapper
DISK_MAPPER_BINARY: ${{ github.workspace }}/build/disk-mapper DISK_MAPPER_BINARY: ${{ github.workspace }}/build/disk-mapper
UPGRADE_AGENT_BINARY: ${{ github.workspace }}/build/upgrade-agent UPGRADE_AGENT_BINARY: ${{ github.workspace }}/build/upgrade-agent
DEBUG: ${{ (needs.build-settings.outputs.stream == 'debug') && 'true' || 'false' }}
AUTOLOGIN: ${{ (needs.build-settings.outputs.stream == 'console' || needs.build-settings.outputs.stream == 'debug' ) && 'true' || 'false' }} AUTOLOGIN: ${{ (needs.build-settings.outputs.stream == 'console' || needs.build-settings.outputs.stream == 'debug' ) && 'true' || 'false' }}
IMAGE_VERSION: ${{ needs.build-settings.outputs.imageVersion }} IMAGE_VERSION: ${{ needs.build-settings.outputs.imageVersion }}
CSP: ${{ matrix.csp }} CSP: ${{ matrix.csp }}
run: | run: |
echo "::group::Build" echo "::group::Build"
sudo make IMAGE_VERSION="${IMAGE_VERSION}" AUTOLOGIN="${AUTOLOGIN}" "${CSP}" sudo make IMAGE_VERSION="${IMAGE_VERSION}" DEBUG="${DEBUG}" AUTOLOGIN="${AUTOLOGIN}" "${CSP}"
echo "::endgroup::" echo "::endgroup::"
- name: Collect hashes - name: Collect hashes