-
Notifications
You must be signed in to change notification settings - Fork 10
35 lines (33 loc) · 1.13 KB
/
test-pr.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
name: 'Test PR'
on:
pull_request:
branches:
- 'master'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-pr:
name: 'Build and test Blockchain Plugin'
runs-on: ubuntu-latest
steps:
- name: 'Check out code'
uses: actions/checkout@v3
with:
submodules: recursive
- name: 'Set up Docker'
uses: ./.github/actions/with-docker
with:
tag: blockchain-k-plugin-concrete-${{ github.sha }}
distro: focal
llvm-version: 12
- name: 'Compile Deps'
run: docker exec -t blockchain-k-plugin-concrete-${GITHUB_SHA} /bin/bash -c 'make -j`nproc` CXX=clang++-12 libff libcryptopp libsecp256k1'
- name: 'Compile'
run: docker exec -t blockchain-k-plugin-concrete-${GITHUB_SHA} /bin/bash -c 'make -j`nproc` CXX=clang++-12'
- name: 'Test'
run: docker exec -t blockchain-k-plugin-concrete-${GITHUB_SHA} /bin/bash -c 'make -j`nproc` -C tests'
- name: 'Tear down Docker'
if: always()
run: |
docker stop --time=0 blockchain-k-plugin-concrete-${GITHUB_SHA}