Skip to content

Commit 64be91f

Browse files
author
MarcoFalke
committed
ci: Move to GHA
1 parent ca75c1d commit 64be91f

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

.github/workflows/ci.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Copyright (c) 2023-present The Bitcoin Core developers
2+
# Distributed under the MIT software license, see the accompanying
3+
# file COPYING or https://opensource.org/license/mit.
4+
5+
name: CI
6+
on:
7+
push:
8+
pull_request:
9+
10+
concurrency:
11+
group: ${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
ci-matrix:
16+
name: ${{ matrix.name }}
17+
runs-on: ${{ matrix.runner }}
18+
timeout-minutes: ${{ matrix.timeout-minutes }}
19+
20+
env:
21+
CI_FAILFAST_TEST_LEAVE_DANGLING: 1 # GHA does not care about dangling processes and setting this variable avoids killing the CI script itself on error
22+
DANGER_CI_ON_HOST_FOLDERS: 1
23+
FILE_ENV: ${{ matrix.file-env }}
24+
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
include:
29+
- name: 'fuzz'
30+
runner: 'ubuntu-24.04'
31+
timeout-minutes: 240
32+
file-env: './ci/test/00_setup_env_native_fuzz.sh'
33+
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v5
37+
with:
38+
fetch-depth: 1
39+
40+
- name: Checkout Bitcoin Core
41+
uses: actions/checkout@v5
42+
with:
43+
repository: bitcoin/bitcoin
44+
path: bitcoin-core
45+
fetch-depth: 1
46+
47+
- name: Configure environment
48+
uses: willcl-ark/bitcoin/.github/actions/configure-environment@cirrus-runners
49+
50+
- name: Restore caches
51+
id: restore-cache
52+
uses: willcl-ark/bitcoin/.github/actions/restore-caches@cirrus-runners
53+
54+
- name: Configure Docker
55+
uses: willcl-ark/bitcoin/.github/actions/configure-docker@cirrus-runners
56+
with:
57+
use-cirrus: false
58+
59+
- name: Set mmap_rnd_bits to prevent crashes due to high ASLR entropy
60+
run: sudo sysctl -w vm.mmap_rnd_bits=28
61+
62+
- name: CI script
63+
run: ./bitcoin-core/ci/test_run_all.sh
64+
65+
- name: Save caches
66+
uses: willcl-ark/bitcoin/.github/actions/save-caches@cirrus-runners

0 commit comments

Comments
 (0)