Skip to content

Make rpm

Make rpm #144

Workflow file for this run

name: Make rpm
on:
workflow_dispatch:
push:
paths:
- '!.github/**'
jobs:
rpm:
runs-on: ubuntu-20.04
strategy:
matrix:
version:
- 20.11.9
- 22.05.2
- 22.05.6
container:
image: ghcr.io/eth-cscs/cache_docker/slurm-uenv-mount-tester-${{ matrix.version }}:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
env:
NODE_HW: CPUS=2
SLURM_VER: ${{ matrix.version }}
options: --cpus 2 --privileged
steps:
- uses: actions/checkout@v3
- run: |
_rpm_build_dir=/tmp/uenv-rpm
mkdir -p ${_rpm_build_dir}
./rpm/make-rpm.sh --slurm-version "${SLURM_VER}" ${_rpm_build_dir}
# --nodeps is required since the ci container has handbuilt slurm (not installed via rpm)
sudo rpm --install --nodeps "$(find ${_rpm_build_dir} -name '*.rpm' -type f -print -quit)"
find ${_rpm_build_dir} -name '*.rpm' -type f -exec cp {} . \;
- name: upload-rpm
uses: actions/upload-artifact@v3
with:
name: rpm
path: '*.rpm'
tag-release:
runs-on: ubuntu-20.04
needs: rpm
steps:
- name: download-artifacts
uses: actions/download-artifact@v3
with:
name: rpm
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: '*.rpm'