-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 950 Bytes
/
build.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
name: build
on:
push:
pull_request:
schedule:
- cron: "18 3 * * 0" # Run at a random time weekly
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
imp-branch: [main, develop]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setup conda
run: |
support/setup_travis.sh ${{ matrix.imp-branch }} ${{ matrix.python-version }}
- name: Test
run: |
eval "$(conda shell.bash hook)"
conda activate python${{ matrix.python-version }}
# Use same C/C++ compiler as conda
source ${CONDA_PREFIX}/etc/conda/activate.d/activate-gcc_linux-64.sh
source ${CONDA_PREFIX}/etc/conda/activate.d/activate-gxx_linux-64.sh
mkdir build && cd build
cmake .. -DIMP_DIR=${CONDA_PREFIX}/lib/cmake/IMP
make
./simple