Commit 2b5ac8c1 authored by Dominik Charousset's avatar Dominik Charousset

Limit Cirrus/GH to master commits and PRs

parent d5113840
...@@ -4,14 +4,22 @@ resources_template: &RESOURCES_TEMPLATE ...@@ -4,14 +4,22 @@ resources_template: &RESOURCES_TEMPLATE
cpu: 4 cpu: 4
memory: 16GB memory: 16GB
# Run only when pushing to master and in PRs.
branch_filter: &BRANCH_FILTER
only_if: >
$CIRRUS_PR != '' ||
$CIRRUS_BRANCH == 'master'
debug_build_template: &DEBUG_BUILD_TEMPLATE debug_build_template: &DEBUG_BUILD_TEMPLATE
build_script: .ci/run.sh build .ci/debug-flags.cmake . build build_script: .ci/run.sh build .ci/debug-flags.cmake . build
test_script: .ci/run.sh test build test_script: .ci/run.sh test build
<< : *BRANCH_FILTER
asan_build_template: &ASAN_BUILD_TEMPLATE asan_build_template: &ASAN_BUILD_TEMPLATE
build_script: .ci/run.sh build .ci/asan-flags.cmake . build build_script: .ci/run.sh build .ci/asan-flags.cmake . build
# The OpenSSL tests currently report memory leaks, see GH issue #1396. # The OpenSSL tests currently report memory leaks, see GH issue #1396.
test_script: .ci/run.sh test build openssl test_script: .ci/run.sh test build openssl
<< : *BRANCH_FILTER
# CentOS 7 EOL: June 2024 # CentOS 7 EOL: June 2024
centos7_task: centos7_task:
...@@ -56,6 +64,7 @@ freebsd13_task: ...@@ -56,6 +64,7 @@ freebsd13_task:
# << : *DEBUG_BUILD_TEMPLATE # << : *DEBUG_BUILD_TEMPLATE
build_script: .ci/run.sh build .ci/debug-flags.cmake . build build_script: .ci/run.sh build .ci/debug-flags.cmake . build
test_script: .ci/run.sh test build net.udp_datagram_socket test_script: .ci/run.sh test build net.udp_datagram_socket
<< : *BRANCH_FILTER
# Fedora 38 EOL: May 2024 # Fedora 38 EOL: May 2024
sanitizers_task: sanitizers_task:
...@@ -74,3 +83,4 @@ windows_task: ...@@ -74,3 +83,4 @@ windows_task:
<< : *RESOURCES_TEMPLATE << : *RESOURCES_TEMPLATE
build_script: .ci/windows/build.cmd build_script: .ci/windows/build.cmd
test_script: .ci/windows/test.cmd test_script: .ci/windows/test.cmd
<< : *BRANCH_FILTER
name: check-formatting name: check-formatting
on: [push, pull_request] on: [pull_request]
jobs: jobs:
formatting: formatting:
runs-on: ubuntu-latest runs-on: ubuntu-latest
......
name: check-typos name: check-typos
on: [push, pull_request] on: [pull_request]
jobs: jobs:
typos: typos:
runs-on: ubuntu-latest runs-on: ubuntu-latest
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment