disable fedora 39 #110
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: FDS | |
jobs: | |
build-rpm: | |
name: Build RPM | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
container: | |
- "fedora:36" | |
- "fedora:37" | |
- "fedora:38" | |
# - "fedora:39" | |
- "rockylinux:8" | |
- "rockylinux:9" | |
fds-version: | |
- "5.5.3" | |
- "6.1.2" | |
- "6.2.0" | |
- "6.3.0" | |
- "6.3.1" | |
- "6.3.2" | |
- "6.4.0" | |
- "6.5.0" | |
- "6.5.1" | |
- "6.5.2" | |
- "6.5.3" | |
- "6.6.0" | |
- "6.7.0" | |
- "6.7.1" | |
- "6.7.3" | |
- "6.7.4" | |
- "6.7.5" | |
- "6.7.6" | |
- "6.7.7" | |
- "6.7.8" | |
- "6.7.9" | |
- "6.8.0" | |
# - "latest" | |
container: ${{ matrix.container }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Add intel RPM repo | |
run: | | |
tee > /tmp/oneAPI.repo << EOF | |
[oneAPI] | |
name=Intel® oneAPI repository | |
baseurl=https://yum.repos.intel.com/oneapi | |
enabled=1 | |
gpgcheck=1 | |
repo_gpgcheck=1 | |
gpgkey=https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | |
EOF | |
mv /tmp/oneAPI.repo /etc/yum.repos.d | |
- name: General update | |
run: dnf update -y --refresh | |
- name: Install environment-modules | |
run: dnf install -y environment-modules | |
- name: Install prerequisites | |
run: dnf install -y git gcc kmod openssl-devel rpmdevtools make | |
- name: Install fedora libxcrypt-compat | |
run: dnf install -y libxcrypt-compat || true | |
- name: Install fedora procps | |
run: dnf install -y procps || true | |
- run: dnf install -y intel-oneapi-compiler-fortran-2024.0.0-49819 intel-oneapi-mkl-devel-2024.0.0-49656 intel-oneapi-mpi-devel-2021.11.0-49493 openmpi-devel mpich-devel intel-oneapi-compiler-dpcpp-cpp-2024.0.0-49819 intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic-2023.2.1-16 | |
- run: /opt/intel/oneapi/modulefiles-setup.sh | |
- name: Build RPM | |
run: | | |
cd fds | |
export version=${{ matrix.fds-version }} | |
export repo=$(awk -F, -v version="$version" '$1 == version { print $2; exit }' versions.csv) | |
export commit=$(awk -F, -v version="$version" '$1 == version { print $3; exit }' versions.csv) | |
export date=$(awk -F, -v version="$version" '$1 == version { print $4; exit }' versions.csv) | |
export version_patch=$(awk -F, -v version="$version" '$1 == version { print $5; exit }' versions.csv) | |
export backports_patch=$(awk -F, -v version="$version" '$1 == version { print $6; exit }' versions.csv) | |
if [ "${{ matrix.container }}" = "rockylinux:8" ] | |
then | |
bash ./buildrpm.sh $version $repo $commit $date $version_patch $backports_patch --define 'build_openmpi 0' --define 'build_mpich 0' | |
else | |
bash ./buildrpm.sh $version $repo $commit $date $version_patch $backports_patch | |
fi | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: FDS-RPMs | |
path: | | |
dist/*.rpm |