Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 39 additions & 22 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
workflow_dispatch:
inputs:
fatal_warnings:
description: 'Build with --fatal-meson-warning (yes/no)'
description: 'Build with --fatal-meson-warnings (yes/no)'
default: 'no'
required: false
schedule:
Expand All @@ -18,8 +18,8 @@ env:
TEST_FATAL_WARNINGS: ${{ github.event.inputs.fatal_warnings }}

jobs:
sources:
name: Download sources
prelude:
name: Initial setup
runs-on: ubuntu-latest
outputs:
cache-key: ${{ steps.cache-key.outputs.cache-key }}
Expand Down Expand Up @@ -61,11 +61,16 @@ jobs:

Ubuntu:
if: github.event_name != 'schedule' || github.repository == 'mesonbuild/wrapdb'
runs-on: ${{ matrix.platform == 'aarch64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
needs: sources
name: Ubuntu (${{ matrix.platform }})
runs-on: ${{ matrix.runner }}
needs: prelude
strategy:
matrix:
platform: ['x86_64', 'aarch64']
include:
- platform: aarch64
runner: ubuntu-24.04-arm
- platform: x86_64
runner: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
Expand All @@ -80,7 +85,7 @@ jobs:
- name: Restore sources
uses: actions/cache/restore@v4
with:
key: ${{ needs.sources.outputs.cache-key }}
key: ${{ needs.prelude.outputs.cache-key }}
path: subprojects/packagecache
enableCrossOsArchive: true
fail-on-cache-miss: true
Expand All @@ -91,17 +96,24 @@ jobs:

Alpine:
if: github.event_name != 'schedule' || github.repository == 'mesonbuild/wrapdb'
runs-on: ${{ matrix.platform == 'aarch64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
needs: sources
name: Alpine (${{ matrix.platform }})
runs-on: ${{ matrix.runner }}
needs: prelude
strategy:
matrix:
platform: ['x86_64', 'aarch64']
include:
- platform: aarch64
runner: ubuntu-24.04-arm
apk-tools-url: 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/aarch64/apk.static#!sha256!27a975638ddc95a411c9f17c63383e335da9edf6bb7de2281d950c291a11f878'
- platform: x86_64
runner: ubuntu-latest
apk-tools-url: 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/x86_64/apk.static#!sha256!bdd044e0fd6cc388c5e571e1093efa5f35f7767cc5aa338b0a2576a429009a62'
steps:
- uses: jirutka/setup-alpine@v1
with:
# next two lines: https://github.com/jirutka/setup-alpine/pull/22
arch: ${{ matrix.platform }}
apk-tools-url: ${{ matrix.platform == 'aarch64' && 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/aarch64/apk.static#!sha256!27a975638ddc95a411c9f17c63383e335da9edf6bb7de2281d950c291a11f878' || 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/x86_64/apk.static#!sha256!bdd044e0fd6cc388c5e571e1093efa5f35f7767cc5aa338b0a2576a429009a62' }}
apk-tools-url: ${{ matrix.apk-tools-url }}
packages: >
binutils clang libc-dev fortify-headers make patch cmake git linux-headers pkgconf py3-pip samurai sudo

Expand All @@ -112,7 +124,7 @@ jobs:
- name: Restore sources
uses: actions/cache/restore@v4
with:
key: ${{ needs.sources.outputs.cache-key }}
key: ${{ needs.prelude.outputs.cache-key }}
path: subprojects/packagecache
enableCrossOsArchive: true
fail-on-cache-miss: true
Expand All @@ -128,7 +140,7 @@ jobs:
VisualStudio:
if: github.event_name != 'schedule' || github.repository == 'mesonbuild/wrapdb'
runs-on: windows-latest
needs: sources
needs: prelude
strategy:
matrix:
platform: ['x64', 'x86']
Expand Down Expand Up @@ -156,7 +168,7 @@ jobs:
- name: Restore sources
uses: actions/cache/restore@v4
with:
key: ${{ needs.sources.outputs.cache-key }}
key: ${{ needs.prelude.outputs.cache-key }}
path: subprojects/packagecache
enableCrossOsArchive: true
fail-on-cache-miss: true
Expand All @@ -168,7 +180,7 @@ jobs:
VisualStudio-clang-cl:
if: github.event_name != 'schedule' || github.repository == 'mesonbuild/wrapdb'
runs-on: windows-latest
needs: sources
needs: prelude
env:
CC: clang-cl
CXX: clang-cl
Expand All @@ -186,7 +198,7 @@ jobs:
- name: Restore sources
uses: actions/cache/restore@v4
with:
key: ${{ needs.sources.outputs.cache-key }}
key: ${{ needs.prelude.outputs.cache-key }}
path: subprojects/packagecache
enableCrossOsArchive: true
fail-on-cache-miss: true
Expand All @@ -198,7 +210,7 @@ jobs:
MSYS2:
if: github.event_name != 'schedule' || github.repository == 'mesonbuild/wrapdb'
runs-on: windows-latest
needs: sources
needs: prelude
strategy:
matrix:
platform: ['UCRT64', 'CLANG64']
Expand Down Expand Up @@ -233,7 +245,7 @@ jobs:
- name: Restore sources
uses: actions/cache/restore@v4
with:
key: ${{ needs.sources.outputs.cache-key }}
key: ${{ needs.prelude.outputs.cache-key }}
path: subprojects/packagecache
enableCrossOsArchive: true
fail-on-cache-miss: true
Expand All @@ -245,11 +257,16 @@ jobs:

MacOS:
if: github.event_name != 'schedule' || github.repository == 'mesonbuild/wrapdb'
runs-on: ${{ matrix.platform == 'arm64' && 'macos-14' || 'macos-13' }}
needs: sources
name: MacOS (${{ matrix.platform }})
runs-on: ${{ matrix.runner }}
needs: prelude
strategy:
matrix:
platform: ['arm64', 'x86_64']
include:
- platform: arm64
runner: macos-14
- platform: x86_64
runner: macos-13
steps:
- uses: actions/checkout@v5
with:
Expand All @@ -269,7 +286,7 @@ jobs:
- name: Restore sources
uses: actions/cache/restore@v4
with:
key: ${{ needs.sources.outputs.cache-key }}
key: ${{ needs.prelude.outputs.cache-key }}
path: subprojects/packagecache
enableCrossOsArchive: true
fail-on-cache-miss: true
Expand Down
43 changes: 35 additions & 8 deletions .github/workflows/sanity_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,19 @@ jobs:
./tools/fake_tty.py ./tools/sanity_checks.py

Ubuntu:
runs-on: ${{ matrix.platform == 'aarch64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
name: Ubuntu (${{ matrix.platform }})
runs-on: ${{ matrix.runner }}
needs: prelude
strategy:
fail-fast: false
matrix:
include:
- platform: x86_64
python: 3.13
- platform: aarch64
runner: ubuntu-24.04-arm
python: 3.8
- platform: x86_64
runner: ubuntu-latest
python: 3.13
steps:
- uses: actions/checkout@v5
with:
Expand Down Expand Up @@ -109,12 +112,31 @@ jobs:
./tools/fake_tty.py ./tools/sanity_checks.py TestReleases.test_meson_version_deps

Alpine:
runs-on: ${{ startsWith(matrix.platform, 'x86') && 'ubuntu-latest' || 'ubuntu-24.04-arm' }}
name: Alpine (${{ matrix.platform }})
runs-on: ${{ matrix.runner }}
needs: prelude
strategy:
fail-fast: false
matrix:
platform: ['x86_64', 'x86', 'aarch64', 'armv7', 'riscv64', 'ppc64le']
include:
- platform: aarch64
runner: ubuntu-24.04-arm
apk-tools-url: 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/aarch64/apk.static#!sha256!27a975638ddc95a411c9f17c63383e335da9edf6bb7de2281d950c291a11f878'
- platform: armv7
runner: ubuntu-24.04-arm
apk-tools-url: 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/aarch64/apk.static#!sha256!27a975638ddc95a411c9f17c63383e335da9edf6bb7de2281d950c291a11f878'
- platform: ppc64le
runner: ubuntu-24.04-arm
apk-tools-url: 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/aarch64/apk.static#!sha256!27a975638ddc95a411c9f17c63383e335da9edf6bb7de2281d950c291a11f878'
- platform: riscv64
runner: ubuntu-24.04-arm
apk-tools-url: 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/aarch64/apk.static#!sha256!27a975638ddc95a411c9f17c63383e335da9edf6bb7de2281d950c291a11f878'
- platform: x86
runner: ubuntu-latest
apk-tools-url: 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/x86_64/apk.static#!sha256!bdd044e0fd6cc388c5e571e1093efa5f35f7767cc5aa338b0a2576a429009a62'
- platform: x86_64
runner: ubuntu-latest
apk-tools-url: 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/x86_64/apk.static#!sha256!bdd044e0fd6cc388c5e571e1093efa5f35f7767cc5aa338b0a2576a429009a62'
steps:
- uses: actions/checkout@v5
with:
Expand All @@ -124,7 +146,7 @@ jobs:
with:
arch: ${{ matrix.platform }}
# https://github.com/jirutka/setup-alpine/pull/22
apk-tools-url: ${{ startsWith(matrix.platform, 'x86') && 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/x86_64/apk.static#!sha256!bdd044e0fd6cc388c5e571e1093efa5f35f7767cc5aa338b0a2576a429009a62' || 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/aarch64/apk.static#!sha256!27a975638ddc95a411c9f17c63383e335da9edf6bb7de2281d950c291a11f878' }}
apk-tools-url: ${{ matrix.apk-tools-url }}
packages: >
binutils clang libc-dev fortify-headers make patch cmake git linux-headers pkgconf py3-pip samurai sudo

Expand Down Expand Up @@ -281,12 +303,17 @@ jobs:
python tools/sanity_checks.py

MacOS:
runs-on: ${{ matrix.platform == 'arm64' && 'macos-14' || 'macos-13' }}
name: MacOS (${{ matrix.platform }})
runs-on: ${{ matrix.runner }}
needs: prelude
strategy:
fail-fast: false
matrix:
platform: ['arm64', 'x86_64']
include:
- platform: arm64
runner: macos-14
- platform: x86_64
runner: macos-13
steps:
- uses: actions/checkout@v5
with:
Expand Down
Loading