forked from UW-Madison-HEP/xrootd-hdfs
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 906 Bytes
/
cpp.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
env:
# Path to the CMake build directory.
build: '${{ github.workspace }}/build'
config: 'RelWithDebInfo'
name: CMake Build
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
schedule:
- cron: '23 1 * * 0'
release:
types: [published]
defaults:
run:
shell: bash
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
container: kreczko/xrootd-hdfs-build:latest
steps:
- name: Update xrootd
run: |
yum update -y
yum clean all
- name: Clone repository
uses: actions/checkout@v2
- name: Configure CMake
run: |
scl enable devtoolset-8 "cmake3 -B ${{ env.build }} -DCMAKE_BUILD_TYPE=${{ env.config }}"
- name: Build xrootd-hdfs
run: |
scl enable devtoolset-8 "make -C ${{ env.build }}"