Skip to content

تحديث البناء التجريبي #208

تحديث البناء التجريبي

تحديث البناء التجريبي #208

Workflow file for this run

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: |
mkdir build && cd build
if [ ${{ matrix.image_tag }} = trunk ]; then
hdf_ver=1.14.1
else
hdf_ver=1.14.3
fi
cmake .. \
-GNinja \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DHDF5_ROOT=/usr/local/HDF_Group/HDF5/${hdf_ver}
- name: Building
run: ninja -C build
- name: Running
run: build/main