Truly independent web browser
CI: Run Distribution builds in a job of the Distribution workflow
Jelle Raaijmakers5606eefbbe06
diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.ymlindex 5cb7f068cd1..67bbbb2f2d6 100644--- a/.github/workflows/build-and-test.yml+++ b/.github/workflows/build-and-test.yml@@ -26,10 +26,6 @@ on:required: falsetype: stringdefault: 'null'- version:- required: false- type: string- default: ''secrets:VCPKG_CACHE_SAS:required: false@@ -59,7 +55,6 @@ jobs:toolchain: ${{ inputs.toolchain }}build_preset: ${{ inputs.build_preset }}clang_plugins: ${{ inputs.clang_plugins }}- version: ${{ inputs.version }}vcpkg_cache_sas: ${{ secrets.VCPKG_CACHE_SAS }}# The macOS AX tests run against this bundle on another machine (see macos-accessibility-tests.yml). So the@@ -82,28 +77,6 @@ jobs:retention-days: 3if-no-files-found: error- - name: Package the release- if: ${{ github.workflow == 'Distribution' }}- working-directory: ${{ github.workspace }}/Build- run: |- cpack -G TZST -B packages -D CPACK_COMPONENTS_ALL="ladybird_Runtime;ladybird_Symbols" \- -D CPACK_ARCHIVE_COMPRESSION_LEVEL=19 -D CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY=ON-- - name: Attest the release- if: ${{ github.workflow == 'Distribution' }}- uses: actions/attest@v4- with:- subject-path: '${{ github.workspace }}/Build/packages/*.tar.zst'-- - name: Upload the release- if: ${{ github.workflow == 'Distribution' }}- uses: actions/upload-artifact@v7- with:- name: ladybird-${{ inputs.os_name }}-${{ inputs.arch }}- path: Build/packages/*.tar.zst- compression-level: 0- if-no-files-found: error-# === TEST ===- name: Start PulseAudiodiff --git a/.github/workflows/distribution.yml b/.github/workflows/distribution.ymlindex 764e5240326..2bb546239d1 100644--- a/.github/workflows/distribution.yml+++ b/.github/workflows/distribution.yml@@ -11,9 +11,10 @@ on:type: stringjobs:- Lagom:+ Distribution:if: github.repository == 'LadybirdBrowser/ladybird'name: ${{ matrix.os_name }}, ${{ matrix.arch }}, Distribution, Clang+ runs-on: ${{ fromJSON(matrix.runner_labels) }}strategy:fail-fast: false@@ -29,13 +30,40 @@ jobs:attestations: writeartifact-metadata: write- secrets:- VCPKG_CACHE_SAS: ${{ secrets.VCPKG_CACHE_SAS }}- uses: ./.github/workflows/build-and-test.yml- with:- toolchain: 'Clang'- os_name: ${{ matrix.os_name }}- runner_labels: ${{ matrix.runner_labels }}- arch: ${{ matrix.arch }}- build_preset: 'Distribution'- version: ${{ inputs.version }}+ steps:+ - uses: actions/[email protected]++ - name: Build+ uses: ./.github/actions/build+ with:+ os: ${{ matrix.os_name }}+ arch: ${{ matrix.arch }}+ toolchain: 'Clang'+ build_preset: 'Distribution'+ version: ${{ inputs.version }}+ vcpkg_cache_sas: ${{ secrets.VCPKG_CACHE_SAS }}++ - name: Test+ working-directory: ${{ github.workspace }}+ run: ctest --output-on-failure -E 'LibWebAccessibilityBridge|AccessibilityBridgeMac' --test-dir Build --timeout 1800+ env:+ TESTS_ONLY: 1++ - name: Package+ working-directory: ${{ github.workspace }}/Build+ run: |+ cpack -G TZST -B packages -D CPACK_COMPONENTS_ALL="ladybird_Runtime;ladybird_Symbols" \+ -D CPACK_ARCHIVE_COMPRESSION_LEVEL=19 -D CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY=ON++ - name: Attest+ uses: actions/attest@v4+ with:+ subject-path: '${{ github.workspace }}/Build/packages/*.tar.zst'++ - name: Upload+ uses: actions/upload-artifact@v7+ with:+ name: ladybird-${{ matrix.os_name }}-${{ matrix.arch }}+ path: Build/packages/*.tar.zst+ compression-level: 0+ if-no-files-found: error