-
Notifications
You must be signed in to change notification settings - Fork 23
50 lines (43 loc) · 1.3 KB
/
nightly.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
45
46
47
48
49
50
name: Nightly
# on: push
on:
schedule:
# every night at midnight
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
# uploading master and devel tarballs as artifacts, for use in subsequent tests
# the base tests that use these uploaded tarballs are the DIRAC "pilot wrapper" tests:
# https://github.com/DIRACGrid/DIRAC/actions?query=workflow%3A%22pilot+wrapper%22
# (triggered by https://github.com/DIRACGrid/DIRAC/blob/integration/.github/workflows/pilotWrapper.yml)
upload:
runs-on: ubuntu-latest
if: github.repository == 'DIRACGrid/Pilot'
strategy:
fail-fast: False
matrix:
branch:
- master
- devel
steps:
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- name: create artifacts
run: |
mkdir tmp_dir
cp Pilot/*.py tmp_dir/
cp tests/pilot.json tmp_dir/
# create the tar
cd tmp_dir
tar -cf pilot.tar *.py
# make the checksums file
sha512sum pilot.tar pilot.json *.py > checksums.sha512
# remove unneeded files
rm *.py
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: Pilot_${{ matrix.branch }}
path: tmp_dir
retention-days: 1