mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
CI: Move the nightly Lagom GCC CI to GitHub actions
This commit is contained in:
parent
7276d52a0e
commit
0887dbfd80
Notes:
sideshowbarker
2024-07-16 22:22:13 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/0887dbfd80 Pull-request: https://github.com/SerenityOS/serenity/pull/24270 Reviewed-by: https://github.com/ADKaster
4 changed files with 24 additions and 12 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -51,6 +51,7 @@ jobs:
|
|||
|
||||
uses: ./.github/workflows/lagom-template.yml
|
||||
with:
|
||||
toolchain: 'Clang'
|
||||
os_name: ${{ matrix.os_name }}
|
||||
os: ${{ matrix.os }}
|
||||
fuzzer: ${{ matrix.fuzzer }}
|
||||
|
|
13
.github/workflows/lagom-template.yml
vendored
13
.github/workflows/lagom-template.yml
vendored
|
@ -3,6 +3,9 @@ name: Lagom Template
|
|||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
toolchain:
|
||||
required: true
|
||||
type: string
|
||||
os_name:
|
||||
required: true
|
||||
type: string
|
||||
|
@ -50,6 +53,7 @@ jobs:
|
|||
with:
|
||||
os: ${{ inputs.os_name }}
|
||||
arch: 'Lagom'
|
||||
toolchain: ${{ inputs.toolchain }}
|
||||
cache_key_extra: ${{ inputs.fuzzer }}
|
||||
serenity_ccache_path: ${{ env.CCACHE_DIR }}
|
||||
download_cache_path: ${{ github.workspace }}/Build/caches
|
||||
|
@ -58,8 +62,13 @@ jobs:
|
|||
id: 'build-parameters'
|
||||
run: |
|
||||
if ${{ inputs.os_name == 'Linux' }} ; then
|
||||
echo "host_cc=clang-18" >> "$GITHUB_OUTPUT"
|
||||
echo "host_cxx=clang++-18" >> "$GITHUB_OUTPUT"
|
||||
if ${{ inputs.toolchain == 'Clang' }} ; then
|
||||
echo "host_cc=clang-18" >> "$GITHUB_OUTPUT"
|
||||
echo "host_cxx=clang++-18" >> "$GITHUB_OUTPUT"
|
||||
elif ${{ inputs.toolchain == 'GNU' }} ; then
|
||||
echo "host_cc=gcc-13" >> "$GITHUB_OUTPUT"
|
||||
echo "host_cxx=g++-13" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
elif ${{ inputs.os_name == 'macOS' }} ; then
|
||||
echo "host_cc=$(brew --prefix llvm@18)/bin/clang" >> "$GITHUB_OUTPUT"
|
||||
echo "host_cxx=$(brew --prefix llvm@18)/bin/clang++" >> "$GITHUB_OUTPUT"
|
||||
|
|
12
.github/workflows/nightly.yml
vendored
12
.github/workflows/nightly.yml
vendored
|
@ -22,3 +22,15 @@ jobs:
|
|||
os: ubuntu-22.04
|
||||
arch: 'x86_64'
|
||||
coverage: 'ON'
|
||||
|
||||
LagomGCC:
|
||||
if: always() && github.repository == 'SerenityOS/serenity' && github.ref == 'refs/heads/master'
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
uses: ./.github/workflows/lagom-template.yml
|
||||
with:
|
||||
toolchain: 'GNU'
|
||||
os_name: 'Linux'
|
||||
os: ubuntu-22.04
|
||||
|
|
|
@ -18,13 +18,3 @@ stages:
|
|||
- template: Lagom.yml
|
||||
parameters:
|
||||
os: 'Android'
|
||||
|
||||
- stage: Lagom_GCC
|
||||
dependsOn: []
|
||||
jobs:
|
||||
- template: Lagom.yml
|
||||
parameters:
|
||||
os: 'Linux'
|
||||
fuzzer: 'NoFuzz'
|
||||
host_cc: 'gcc-13'
|
||||
host_cxx: 'g++-13'
|
||||
|
|
Loading…
Reference in a new issue