-
Notifications
You must be signed in to change notification settings - Fork 19
35 lines (33 loc) · 1.03 KB
/
test.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: linux
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
SETUP: ['init_hsf.sh']
steps:
- uses: actions/checkout@v2
- uses: cvmfs-contrib/github-action-cvmfs@v2
- name: Start container
run: |
docker run -it --name CI_container -v ${GITHUB_WORKSPACE}:/Package -v /cvmfs:/cvmfs:shared -d ghcr.io/aidasoft/centos7:latest /bin/bash
- name: CMake Configure
run: |
docker exec CI_container /bin/bash -c "cd ./Package;\
source ${{ matrix.SETUP }};\
mkdir build install;\
cd build;\
cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_CXX_STANDARD=17 ..;"
- name: Compile
run: |
docker exec CI_container /bin/bash -c "cd ./Package;\
source ${{ matrix.SETUP }};\
cd build;\
make -j `getconf _NPROCESSORS_ONLN`;"
- name: Install
run: |
docker exec CI_container /bin/bash -c "cd ./Package;\
source ${{ matrix.SETUP }};\
cd build;\
make install;"