mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-18 05:01:13 +00:00
Codechange: [CI] build some targets every night, instead of every PR
This mainly as they are not expected to fail, or give more information than the other targets already would. And this is just hogging up the CI pipeline. On average, these targets take ~80 CPU-minutes to finish.
This commit is contained in:
parent
ee22fa34d7
commit
c768f4fc7a
@ -17,3 +17,4 @@ notifications:
|
|||||||
workflow-run:
|
workflow-run:
|
||||||
only:
|
only:
|
||||||
- .github/workflows/release.yml
|
- .github/workflows/release.yml
|
||||||
|
- .github/workflows/ci-nightly.yml
|
||||||
|
30
.github/workflows/ci-build.yml
vendored
30
.github/workflows/ci-build.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: CI
|
name: CI - Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@ -38,10 +38,6 @@ jobs:
|
|||||||
compiler: gcc
|
compiler: gcc
|
||||||
cxxcompiler: g++
|
cxxcompiler: g++
|
||||||
libraries: libsdl2-dev
|
libraries: libsdl2-dev
|
||||||
- name: GCC - SDL1.2
|
|
||||||
compiler: gcc
|
|
||||||
cxxcompiler: g++
|
|
||||||
libraries: libsdl1.2-dev
|
|
||||||
- name: GCC - Dedicated
|
- name: GCC - Dedicated
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
cxxcompiler: g++
|
cxxcompiler: g++
|
||||||
@ -83,13 +79,11 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
name: Windows
|
|
||||||
arch: x86
|
arch: x86
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
name: Windows
|
|
||||||
arch: x64
|
arch: x64
|
||||||
|
|
||||||
name: ${{ matrix.name }} (${{ matrix.arch }})
|
name: Windows (${{ matrix.arch }})
|
||||||
|
|
||||||
uses: ./.github/workflows/ci-windows.yml
|
uses: ./.github/workflows/ci-windows.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
@ -98,25 +92,6 @@ jobs:
|
|||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
|
|
||||||
mingw:
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- msystem: MINGW64
|
|
||||||
arch: x86_64
|
|
||||||
- msystem: MINGW32
|
|
||||||
arch: i686
|
|
||||||
|
|
||||||
name: MinGW (${{ matrix.arch }})
|
|
||||||
|
|
||||||
uses: ./.github/workflows/ci-mingw.yml
|
|
||||||
secrets: inherit
|
|
||||||
|
|
||||||
with:
|
|
||||||
msystem: ${{ matrix.msystem }}
|
|
||||||
arch: ${{ matrix.arch }}
|
|
||||||
|
|
||||||
check_annotations:
|
check_annotations:
|
||||||
name: Check Annotations
|
name: Check Annotations
|
||||||
needs:
|
needs:
|
||||||
@ -124,7 +99,6 @@ jobs:
|
|||||||
- linux
|
- linux
|
||||||
- macos
|
- macos
|
||||||
- windows
|
- windows
|
||||||
- mingw
|
|
||||||
|
|
||||||
if: always() && github.event_name == 'pull_request'
|
if: always() && github.event_name == 'pull_request'
|
||||||
|
|
||||||
|
82
.github/workflows/ci-nightly.yml
vendored
Normal file
82
.github/workflows/ci-nightly.yml
vendored
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
name: CI - Nightly
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 3 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
CTEST_OUTPUT_ON_FAILURE: 1
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
linux:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- name: GCC - SDL1.2
|
||||||
|
compiler: gcc
|
||||||
|
cxxcompiler: g++
|
||||||
|
libraries: libsdl1.2-dev
|
||||||
|
|
||||||
|
name: Linux (${{ matrix.name }})
|
||||||
|
|
||||||
|
uses: ./.github/workflows/ci-linux.yml
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
|
with:
|
||||||
|
compiler: ${{ matrix.compiler }}
|
||||||
|
cxxcompiler: ${{ matrix.cxxcompiler }}
|
||||||
|
libraries: ${{ matrix.libraries }}
|
||||||
|
extra-cmake-parameters:
|
||||||
|
|
||||||
|
macos:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- arch: x64
|
||||||
|
full_arch: x86_64
|
||||||
|
|
||||||
|
name: Mac OS (${{ matrix.arch }})
|
||||||
|
|
||||||
|
uses: ./.github/workflows/ci-macos.yml
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
|
with:
|
||||||
|
arch: ${{ matrix.arch }}
|
||||||
|
full_arch: ${{ matrix.full_arch }}
|
||||||
|
|
||||||
|
mingw:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- msystem: MINGW64
|
||||||
|
arch: x86_64
|
||||||
|
- msystem: MINGW32
|
||||||
|
arch: i686
|
||||||
|
|
||||||
|
name: MinGW (${{ matrix.arch }})
|
||||||
|
|
||||||
|
uses: ./.github/workflows/ci-mingw.yml
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
|
with:
|
||||||
|
msystem: ${{ matrix.msystem }}
|
||||||
|
arch: ${{ matrix.arch }}
|
||||||
|
|
||||||
|
check_annotations:
|
||||||
|
name: Check Annotations
|
||||||
|
needs:
|
||||||
|
- linux
|
||||||
|
- macos
|
||||||
|
- mingw
|
||||||
|
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check annotations
|
||||||
|
uses: OpenTTD/actions/annotation-check@v5
|
Loading…
Reference in New Issue
Block a user