Skip to content

Commit

Permalink
ci: depot matrix
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Goller <[email protected]>
  • Loading branch information
goller committed Oct 3, 2024
1 parent b8a5e18 commit 0f64274
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 646 deletions.
76 changes: 0 additions & 76 deletions .github/actions/cache-restore/action.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/actions/cache-save/action.yml

This file was deleted.

23 changes: 2 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,20 @@ on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || format('{0}-{1}', github.ref, github.run_number) }}
cancel-in-progress: true

jobs:
Lagom:
if: github.repository == 'LadybirdBrowser/ladybird'

strategy:
fail-fast: false
matrix:
os_name: ['Linux']
os: [ubuntu-24.04]
os: [depot-ubuntu-24.04, depot-ubuntu-22.04, depot-ubuntu-24.04-8, depot-ubuntu-22.04-8, depot-ubuntu-24.04-16, depot-ubuntu-22.04-16, depot-ubuntu-24.04-32, depot-ubuntu-22.04-32]

fuzzer: ['NO_FUZZ']
toolchain: ['GNU']
clang_plugins: [false]

include:
- os_name: 'Linux'
os: ubuntu-24.04
fuzzer: 'NO_FUZZ'
toolchain: 'Clang'
clang_plugins: true

- os_name: 'macOS'
os: macos-14
fuzzer: 'NO_FUZZ'
toolchain: 'Clang'
clang_plugins: false

- os_name: 'Linux'
os: ubuntu-24.04
fuzzer: 'FUZZ'
toolchain: 'Clang'
clang_plugins: false

uses: ./.github/workflows/lagom-template.yml
with:
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/dev-container.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/ladybird-js-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ env:
jobs:
build-and-package:
runs-on: ${{ matrix.os }}
if: always() && github.repository == 'LadybirdBrowser/ladybird' && github.ref == 'refs/heads/master'
strategy:
fail-fast: false
matrix:
Expand All @@ -37,16 +36,6 @@ jobs:
os: ${{ matrix.os_name }}
arch: 'Lagom'

- name: Restore Caches
uses: ./.github/actions/cache-restore
id: 'cache-restore'
with:
os: ${{ matrix.os_name }}
arch: 'Lagom'
cache_key_extra: 'LibJS Artifacts'
ccache_path: ${{ env.CCACHE_DIR }}
download_cache_path: ${{ github.workspace }}/Build/caches

- name: Create build directory Ubuntu
run: |
cmake --preset CI -B Build \
Expand All @@ -73,17 +62,3 @@ jobs:
run: |
ninja js
cpack
- name: Save Caches
uses: ./.github/actions/cache-save
with:
arch: 'Lagom'
ccache_path: ${{ env.CCACHE_DIR }}
ccache_primary_key: ${{ steps.cache-restore.outputs.ccache_primary_key }}

- name: Upload js package
uses: actions/upload-artifact@v4
with:
name: ladybird-js-${{ matrix.package_type }}
path: Build/ladybird-js*.tar.gz
retention-days: 7
36 changes: 0 additions & 36 deletions .github/workflows/lagom-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,6 @@ jobs:
echo "cmake_options=" >> "$GITHUB_OUTPUT"
fi
- name: Restore Caches
uses: ./.github/actions/cache-restore
id: 'cache-restore'
with:
os: ${{ inputs.os_name }}
arch: 'Lagom'
toolchain: ${{ inputs.toolchain }}
cache_key_extra: ${{ steps.build-parameters.outputs.ccache_key }}
ccache_path: ${{ env.CCACHE_DIR }}
download_cache_path: ${{ github.workspace }}/Build/caches

- name: Set dynamic environment variables
run: |
# Note: Required for vcpkg to use this compiler for its own builds.
Expand Down Expand Up @@ -167,13 +156,6 @@ jobs:
working-directory: ${{ github.workspace }}/Build
run: cmake --build .

- name: Save Caches
uses: ./.github/actions/cache-save
with:
arch: 'Lagom'
ccache_path: ${{ env.CCACHE_DIR }}
ccache_primary_key: ${{ steps.cache-restore.outputs.ccache_primary_key }}

# === TEST ===

- name: Test
Expand All @@ -183,21 +165,3 @@ jobs:
env:
TESTS_ONLY: 1

- name: Upload LibWeb Test Artifacts
if: ${{ always() && inputs.fuzzer == 'NO_FUZZ' }}
uses: actions/upload-artifact@v4
with:
name: libweb-test-artifacts-${{ inputs.os_name }}
path: ${{ github.workspace }}/Build/Ladybird/test-dumps
retention-days: 7
if-no-files-found: ignore

- name: Lints
if: ${{ inputs.os_name == 'Linux' && inputs.fuzzer == 'NO_FUZZ' }}
working-directory: ${{ github.workspace }}
run: |
set -e
git ls-files '*.ipc' | xargs ./Build/bin/IPCMagicLinter
env:
ASAN_OPTIONS: 'strict_string_checks=1:check_initialization_order=1:strict_init_order=1:detect_stack_use_after_return=1:allocator_may_return_null=1'
UBSAN_OPTIONS: 'print_stacktrace=1:print_summary=1:halt_on_error=1'
Loading

0 comments on commit 0f64274

Please sign in to comment.