mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +00:00
CI: Move the nightly Lagom GCC CI to GitHub actions
This commit is contained in:
parent
7276d52a0e
commit
0887dbfd80
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -51,6 +51,7 @@ jobs:
|
||||||
|
|
||||||
uses: ./.github/workflows/lagom-template.yml
|
uses: ./.github/workflows/lagom-template.yml
|
||||||
with:
|
with:
|
||||||
|
toolchain: 'Clang'
|
||||||
os_name: ${{ matrix.os_name }}
|
os_name: ${{ matrix.os_name }}
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
fuzzer: ${{ matrix.fuzzer }}
|
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:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
toolchain:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
os_name:
|
os_name:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
@ -50,6 +53,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
os: ${{ inputs.os_name }}
|
os: ${{ inputs.os_name }}
|
||||||
arch: 'Lagom'
|
arch: 'Lagom'
|
||||||
|
toolchain: ${{ inputs.toolchain }}
|
||||||
cache_key_extra: ${{ inputs.fuzzer }}
|
cache_key_extra: ${{ inputs.fuzzer }}
|
||||||
serenity_ccache_path: ${{ env.CCACHE_DIR }}
|
serenity_ccache_path: ${{ env.CCACHE_DIR }}
|
||||||
download_cache_path: ${{ github.workspace }}/Build/caches
|
download_cache_path: ${{ github.workspace }}/Build/caches
|
||||||
|
@ -58,8 +62,13 @@ jobs:
|
||||||
id: 'build-parameters'
|
id: 'build-parameters'
|
||||||
run: |
|
run: |
|
||||||
if ${{ inputs.os_name == 'Linux' }} ; then
|
if ${{ inputs.os_name == 'Linux' }} ; then
|
||||||
echo "host_cc=clang-18" >> "$GITHUB_OUTPUT"
|
if ${{ inputs.toolchain == 'Clang' }} ; then
|
||||||
echo "host_cxx=clang++-18" >> "$GITHUB_OUTPUT"
|
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
|
elif ${{ inputs.os_name == 'macOS' }} ; then
|
||||||
echo "host_cc=$(brew --prefix llvm@18)/bin/clang" >> "$GITHUB_OUTPUT"
|
echo "host_cc=$(brew --prefix llvm@18)/bin/clang" >> "$GITHUB_OUTPUT"
|
||||||
echo "host_cxx=$(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
|
os: ubuntu-22.04
|
||||||
arch: 'x86_64'
|
arch: 'x86_64'
|
||||||
coverage: 'ON'
|
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
|
- template: Lagom.yml
|
||||||
parameters:
|
parameters:
|
||||||
os: 'Android'
|
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