-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (52 loc) · 1.48 KB
/
artifacts.yaml
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
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
- 23.02.7
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'