forked from gridcoin-community/Gridcoin-Research
-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (94 loc) · 3.39 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: CI
on: [push, pull_request]
env:
EVENT_TYPE: ${{ github.event_name }}
COMMIT_COUNT: ${{ github.event.commits.length }}
CI_REPO_SLUG: ${{ github.repository }}
jobs:
test-linux:
name: ${{ matrix.name }}
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- name: ARM [GOAL install] [buster]
script-id: arm
- name: Win32
script-id: win32
- name: Win64
script-id: win64
- name: i386 Linux [GOAL install] [focal]
script-id: linux_i386
- name: x86_64 Linux [GOAL install] [GUI] [focal] [no depends]
script-id: native
- name: x86_64 Linux [GOAL install] [GUI] [bionic] [no depends]
script-id: native_old
- name: x86_64 Linux [ASan] [LSan] [UBSan] [integer] [jammy] [no depends]
script-id: native_asan
# FIXME: depends is unable to compile Qt with clang.
# - name: x86_64 Linux [TSan] [GUI] [jammy]
# script-id: native_tsan
- name: macOS 10.14 [GOAL deploy] [GUI] [no tests] [focal]
script-id: mac
env:
FILE_ENV: ./ci/test/00_setup_env_${{ matrix.script-id }}.sh
OS_NAME: linux
steps:
- name: checkout
uses: actions/checkout@v3
- name: current time for cache
run: echo "TIMESTAMP=$(date +%s)" >> $GITHUB_ENV
- name: cache
uses: actions/cache@v3
with:
path: |
./depends/built
./ci/scratch/.ccache
key: ${{ runner.os }}-${{ matrix.script-id }}-${{ env.TIMESTAMP }}
restore-keys: |
${{ runner.os }}-${{ matrix.script-id }}-
- name: test
run: |
./ci/test_run_all.sh
test-macos:
name: macOS 12 native [GOAL install] [GUI] [no depends]
runs-on: macos-12
env:
DANGER_RUN_CI_ON_HOST: true
CI_USE_APT_INSTALL: no
FILE_ENV: ./ci/test/00_setup_env_mac_host.sh
OS_NAME: macos
steps:
- name: checkout
uses: actions/checkout@v3
- name: current time for cache
run: echo "TIMESTAMP=$(date +%s)" >> $GITHUB_ENV
- name: cache
uses: actions/cache@v3
with:
path: |
./ci/scratch/.ccache
key: ${{ runner.os }}-${{ env.TIMESTAMP }}
restore-keys: |
${{ runner.os }}-
- name: install-packages
run: |
brew install autoconf automake boost miniupnpc qrencode ccache leveldb librsvg libtool libzip openssl@1.1 pkg-config python qt@5 xquartz
- name: test
run: |
./ci/test_run_all.sh
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup-python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: lint
run: |
set -o errexit; source ./ci/lint/04_install.sh
set -o errexit; source ./ci/lint/05_before_script.sh
set -o errexit; source ./ci/lint/06_script.sh