This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (54 loc) · 1.51 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
name: Continuous Integration
on: [pull_request]
env:
RUST_BACKTRACE: '1'
RUSTFLAGS: '-C debug-assertions'
jobs:
ubuntu:
name: Ubuntu CI
runs-on: ubuntu-latest
strategy:
matrix:
job_args: [ 'servers', 'chain core keychain', 'pool p2p src', 'api util store' ]
steps:
- name: Echo
run: echo ${GITHUB_REF}
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get update -yqq && sudo apt-get install -yqq --no-install-recommends libncursesw5-dev
- name: Test ${{ matrix.job_args }}
env:
CI_JOB_ARGS: ${{ matrix.job_args }}
run: |
for dir in ${CI_JOB_ARGS}; do
printf "executing tests in directory \`%s\`...\n" "${dir}"
cd "${dir}" && \
cargo test --release && \
cd - > /dev/null || exit 1
done
# macos:
# name: macOS CI
# runs-on: macos-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Install Rust
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# - name: Tests
# run: export CPATH=`xcrun --show-sdk-path`/usr/include && cargo test --release --all
windows:
name: Windows CI
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Patch Grin ncurses
run: git apply windows.patch
- name: Install LLVM
run: choco install -y llvm
- name: Tests
run: cargo test --release --all