-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (37 loc) · 988 Bytes
/
testing.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
name: Github actions
on:
push:
schedule:
- cron: '0 8 * * 0'
jobs:
Build:
name: build
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
image_tag: [old, stable, trunk]
build_type: [Debug, Release]
container: ghcr.io/mehdichinoune/debian-gfortran-testing:${{ matrix.image_tag }}
steps:
- uses: actions/checkout@v4
- name: Preparing Data
env:
USERNAME: ${{ secrets.LPDAAC_USERNAME }}
PASSWORD: ${{ secrets.LPDAAC_PASSWORD }}
run: |
echo machine urs.earthdata.nasa.gov >> ~/.netrc
echo http-user="$USERNAME" >> ~/.wgetrc
echo http-password="$PASSWORD" >> ~/.wgetrc
- name: Configuring
run: |
cmake \
-GNinja \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DHDF5_ROOT=/usr/local/hdf5 \
-B build \
-S .
- name: Building
run: ninja -C build
- name: Running
run: build/main