forked from mschneider/solcpp
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.39 KB
/
tests.yml
File metadata and controls
51 lines (43 loc) · 1.39 KB
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
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- { os: "ubuntu-18.04", profile: "linux" }
- { os: "macos-latest", profile: "macos" }
steps:
- uses: actions/checkout@v2
- name: Get Conan
uses: turtlebrowser/get-conan@v1.0
- name: Create default profile
run: conan profile new default --detect --force
- uses: actions/cache@v2
with:
path: ~/.conan
key: ${{ runner.os }}-conan-${{ hashFiles('**/conanfile.txt') }}
restore-keys: |
${{ runner.os }}-conan-
- name: Override default profile
run:
rsync --checksum
${{github.workspace}}/conan_profile.${{matrix.config.profile}}
~/.conan/profiles/default
- name: Install dependencies
run:
conan install . -s build_type=Release
--install-folder=${{github.workspace}}/build --build=missing -o:h
boost:without_fiber=True -o:h boost:without_python=True
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
- name: Build
run:
cmake --build ${{github.workspace}}/build --config Release --verbose
- name: Test
run: cd ${{github.workspace}}/build && ./bin/tests