-
Notifications
You must be signed in to change notification settings - Fork 520
50 lines (48 loc) · 1.49 KB
/
githubci.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
name: continuous build
on: [push, pull_request]
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
task: ["unittest_gtest", "cmake_test", "sanitizer_test", "s390x_test"]
os: [macos-10.15, ubuntu-22.04]
exclude:
# excludes sanitizer_test and s390x_test on macOS
- os: macos-10.15
task: "sanitizer_test"
- os: macos-10.15
task: "s390x_test"
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: test
environment-file: scripts/conda_env.yml
- name: Display Conda env
shell: bash -l {0}
run: |
conda info
conda list
- name: Install Dependencies
run: |
if [[ $(uname) != "Darwin" ]]; then
sudo apt update
sudo apt install doxygen libcurl4-openssl-dev gcc g++
else
brew install libomp doxygen gcc@11
fi
- name: Lint
shell: bash -l {0}
run: |
TASK=lint ./scripts/test_script.sh
- name: googletest
shell: bash -l {0}
run: |
if [[ "${{ matrix.task }}" == "s390x_test" ]]; then
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
fi
TASK=${{ matrix.task }} ./scripts/test_script.sh