-
-
Notifications
You must be signed in to change notification settings - Fork 313
74 lines (69 loc) · 2.18 KB
/
centos.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
name: CentOS
on:
push:
branches:
- main
- releasebranch_*
pull_request:
branches:
- main
- releasebranch_*
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
build:
name: ${{ matrix.os }} build
runs-on: ubuntu-22.04
container: ${{ matrix.os }}
strategy:
matrix:
os:
- centos:7
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Get dependencies
run: |
yum install -y epel-release
yum install -y wget gawk
yum install -y $(cat .github/workflows/yum.txt)
- name: Install conda
run: |
wget https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh
chmod u+x Anaconda3-2020.02-Linux-x86_64.sh
./Anaconda3-2020.02-Linux-x86_64.sh -b
- name: Set variables with conda executable and activate
run: |
echo "CONDA=/github/home/anaconda3/bin/conda" >> $GITHUB_ENV
echo "CONDA_ACTIVATE=/github/home/anaconda3/bin/activate" >> $GITHUB_ENV
- name: Get GRASS GIS runtime conda dependencies
run: |
source $CONDA_ACTIVATE
$CONDA install -y -c anaconda numpy wxpython python-dateutil ply termcolor
- name: Create installation directory
run: |
mkdir $HOME/install
- name: Set number of cores for compilation
run: |
echo "MAKEFLAGS=-j$(nproc)" >> $GITHUB_ENV
- name: Set LD_LIBRARY_PATH for compilation
run: |
echo "LD_LIBRARY_PATH=$HOME/install/lib" >> $GITHUB_ENV
- name: Build
run: |
source $CONDA_ACTIVATE
.github/workflows/build_centos.sh $HOME/install
- name: Add the bin directory to PATH
run: |
echo "$HOME/install/bin" >> $GITHUB_PATH
- name: Test executing of the grass command
run: |
source $CONDA_ACTIVATE
.github/workflows/test_simple.sh
- name: Print installed versions
if: always()
run: |
source $CONDA_ACTIVATE
.github/workflows/print_versions.sh