-
Notifications
You must be signed in to change notification settings - Fork 5
705 lines (620 loc) · 21 KB
/
macos.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
name: macOS
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
SRC_DIR: ${{ github.workspace }}/src
BUILD_DIR: ${{ github.workspace }}/build
DEPENDENCY_DIR: /usr/local/acts
INSTALL_DIR: ${{ github.workspace }}/install
CCACHE_DIR: ${{ github.workspace }}/ccache
CCACHE_MAXSIZE: 10G
CC: clang
CXX: clang++
DEPENDENCIES: cmake ccache #[email protected]
PYTHON_VERSION: 3.10.7
XERCESC_VERSION: 3.2.2
ROOT_VERSION: 6.30.02
GEANT4_VERSION: 11.1.3
DD4HEP_VERSION: 01-27
BOOST_VERSION: 1.84.0
TBB_VERSION: 2021.5.0
HEPMC_VERSION: 3.2.5
PYTHIA8_VERSION: 309
PODIO_VERSION: v00-17-02
EDM4HEP_VERSION: v00-10-01
jobs:
build_python:
runs-on: macos-13
steps:
- name: Print architecture
run: uname -p
- name: Install dependencies
run: |
brew install ccache openssl@3
brew unlink gettext || true
# - name: Cache build
# uses: actions/cache@v3
# with:
# path: ${{ env.BUILD_DIR }}
# key: builddir-${{ runner.os }}-${{ github.job }}-${{ env.PYTHON_VERSION }}-r1
# restore-keys: |
# builddir-${{ runner.os }}-${{ github.job }}-${{ env.PYTHON_VERSION }}-r1
# builddir-${{ runner.os }}-${{ github.job }}-
- name: Build
run: >
curl -SL https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz | tar -xzC .
&& mv Python-* ${SRC_DIR} && cd ${SRC_DIR}
&& export CC="ccache $CC"
&& mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
&& ${SRC_DIR}/configure
--prefix=${DEPENDENCY_DIR}
--enable-optimizations
--with-ensurepip=install
--with-openssl=$(brew --prefix openssl)
&& make -j2
&& sudo make install
&& tar czf ../python.tar.gz -C ${DEPENDENCY_DIR} .
- uses: actions/upload-artifact@v3
with:
name: python
path: python.tar.gz
build_boost:
runs-on: macos-13
steps:
- name: Print architecture
run: uname -p
- name: Install dependencies
run: brew install ccache
- name: Cache build
uses: actions/cache@v3
with:
path: ${{ env.BUILD_DIR }}
key: builddir-${{ runner.os }}-${{ github.job }}-${{ env.BOOST_VERSION }}
restore-keys: |
builddir-${{ runner.os }}-${{ github.job }}-${{ env.BOOST_VERSION }}
builddir-${{ runner.os }}-${{ github.job }}-
- name: Build
run: >
curl -SL https://boostorg.jfrog.io/artifactory/main/release/${BOOST_VERSION}/source/boost_${BOOST_VERSION//./_}.tar.gz | tar -xzC .
&& mv boost_* ${SRC_DIR} && cd ${SRC_DIR}
&& export CC="ccache $CC"
&& export CXX="ccache $CXX"
&& ./bootstrap.sh
--prefix=${INSTALL_DIR}
&& ./b2 -address-model=64 architecture=x86 install
--build-dir=${BUILD_DIR}
&& tar czf ../boost.tar.gz -C ${INSTALL_DIR} .
- uses: actions/upload-artifact@v3
with:
name: boost
path: boost.tar.gz
build_tbb:
runs-on: ubuntu-latest # we don't actually need macOS here
steps:
- name: Print architecture
run: uname -p
- name: Download
run: >
curl -SL https://github.com/oneapi-src/oneTBB/releases/download/v${TBB_VERSION}/oneapi-tbb-${TBB_VERSION}-mac.tgz | tar -xzC .
&& tar czf tbb.tar.gz -C oneapi-tbb-* .
- uses: actions/upload-artifact@v3
with:
name: tbb
path: tbb.tar.gz
build_xercesc:
runs-on: macos-13
steps:
- name: Print architecture
run: uname -p
- name: Install dependencies
run: brew install cmake ccache
- name: Cache build
uses: actions/cache@v3
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ runner.os }}-${{ github.job }}-${{ env.XERCESC_VERSION }}
restore-keys: |
ccache-${{ runner.os }}-${{ github.job }}-${{ env.XERCESC_VERSION }}
ccache-${{ runner.os }}-${{ github.job }}-
- name: Build
run: >
curl -SL https://github.com/apache/xerces-c/archive/v${XERCESC_VERSION}.tar.gz | tar -xzC .
&& mv xerces-c-* ${SRC_DIR}
&& mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
&& cmake ${SRC_DIR}
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}
&& make -j2
&& make install
&& tar czf ../xercesc.tar.gz -C ${INSTALL_DIR} .
- uses: actions/upload-artifact@v3
with:
name: xercesc
path: xercesc.tar.gz
build_root:
runs-on: macos-13
needs:
- build_python
- build_tbb
steps:
- name: Print architecture
run: uname -p
- name: Install dependencies
run: |
brew install cmake ccache openssl@3
brew unlink r || true
- name: Cache build
uses: actions/cache@v3
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ runner.os }}-${{ github.job }}-${{ env.ROOT_VERSION }}-r1
restore-keys: |
ccache-${{ runner.os }}-${{ github.job }}-${{ env.ROOT_VERSION }}-r1
ccache-${{ runner.os }}-${{ github.job }}-
- uses: actions/download-artifact@v3
with:
name: python
path: .
- uses: actions/download-artifact@v3
with:
name: tbb
path: .
- run: sudo mkdir -p ${DEPENDENCY_DIR}
- run: sudo tar xf python.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf tbb.tar.gz -C ${DEPENDENCY_DIR}
- name: Build
run: >
curl -SL https://root.cern/download/root_v${ROOT_VERSION}.source.tar.gz | tar -xzC .
&& mv root-* ${SRC_DIR}
&& mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
&& export PATH="$DEPENDENCY_DIR/bin:$PATH"
&& cmake ${SRC_DIR}
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_STANDARD=17
-DCMAKE_PREFIX_PATH=${DEPENDENCY_DIR}
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}
-Dx11=ON
-Dfftw3=ON
-Dgdml=ON
-Dminuit2=ON
-Dopengl=ON
-Droofit=ON
-Dxml=ON
&& make -j2
&& make install
&& tar czf ../root.tar.gz -C ${INSTALL_DIR} .
- uses: actions/upload-artifact@v3
with:
name: root
path: root.tar.gz
build_geant4:
runs-on: macos-13
needs:
- build_xercesc
steps:
- name: Print architecture
run: uname -p
- name: Install dependencies
run: brew install cmake ccache
- name: Cache build
uses: actions/cache@v3
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ runner.os }}-${{ github.job }}-${{ env.GEANT4_VERSION }}
restore-keys: |
ccache-${{ runner.os }}-${{ github.job }}-${{ env.GEANT4_VERSION }}
ccache-${{ runner.os }}-${{ github.job }}-
- uses: actions/download-artifact@v3
with:
name: xercesc
path: .
- run: sudo mkdir -p ${DEPENDENCY_DIR}
- run: sudo tar xf xercesc.tar.gz -C ${DEPENDENCY_DIR}
- name: Build Geant4
run: >
curl -SL https://github.com/Geant4/geant4/archive/v${GEANT4_VERSION}.tar.gz | tar -xzC .
&& mv geant4-* ${SRC_DIR}
&& mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
&& cmake ${SRC_DIR}
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_BUILD_TYPE=Release
-DGEANT4_USE_GDML=ON
-DGEANT4_BUILD_CXXSTD=17
-DCMAKE_PREFIX_PATH=${DEPENDENCY_DIR}
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}
&& make -j2
&& make install
&& tar czf ../geant4.tar.gz -C ${INSTALL_DIR} .
- uses: actions/upload-artifact@v3
with:
name: geant4
path: geant4.tar.gz
build_podio:
runs-on: macos-13
needs:
- build_python
- build_root
steps:
- name: Print architecture
run: uname -p
- name: Install dependencies
run: brew install cmake ccache openssl@3
- name: Cache build
uses: actions/cache@v3
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ runner.os }}-${{ github.job }}-${{ env.PODIO_VERSION }}
restore-keys: |
ccache-${{ runner.os }}-${{ github.job }}-${{ env.PODIO_VERSION }}
ccache-${{ runner.os }}-${{ github.job }}-
- uses: actions/download-artifact@v3
with:
name: python
path: .
- uses: actions/download-artifact@v3
with:
name: root
path: .
- run: sudo mkdir -p ${DEPENDENCY_DIR}
- run: sudo tar xf python.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf root.tar.gz -C ${DEPENDENCY_DIR}
- name: Install Python dependencies
run: ${DEPENDENCY_DIR}/bin/pip3 install jinja2 pyyaml
- name: Build podio
run: >
curl -SL https://github.com/AIDASoft/podio/archive/refs/tags/${PODIO_VERSION}.tar.gz | tar -xzC .
&& mv podio-* ${SRC_DIR}
&& mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
&& export PATH="$DEPENDENCY_DIR/bin:$PATH"
&& cmake ${SRC_DIR}
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_PREFIX_PATH=${DEPENDENCY_DIR}
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}
-DBUILD_TESTING=OFF
-USE_EXTERNAL_CATCH2=OFF
&& make -j2
&& make install
&& tar czf ../podio.tar.gz -C ${INSTALL_DIR} .
- uses: actions/upload-artifact@v3
with:
name: podio
path: podio.tar.gz
build_edm4hep:
runs-on: macos-13
needs:
- build_python
- build_root
- build_podio
steps:
- name: Print architecture
run: uname -p
- name: Install dependencies
run: brew install cmake ccache openssl@3
- name: Cache build
uses: actions/cache@v3
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ runner.os }}-${{ github.job }}-${{ env.EDM4HEP_VERSION }}
restore-keys: |
ccache-${{ runner.os }}-${{ github.job }}-${{ env.EDM4HEP_VERSION }}
ccache-${{ runner.os }}-${{ github.job }}-
- uses: actions/download-artifact@v3
with:
name: python
path: .
- uses: actions/download-artifact@v3
with:
name: root
path: .
- uses: actions/download-artifact@v3
with:
name: podio
path: .
- run: sudo mkdir -p ${DEPENDENCY_DIR}
- run: sudo tar xf python.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf root.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf podio.tar.gz -C ${DEPENDENCY_DIR}
- name: Install Python dependencies
run: ${DEPENDENCY_DIR}/bin/pip3 install jinja2 pyyaml
- name: Build edm4hep
run: >
curl -SL https://github.com/key4hep/EDM4hep/archive/refs/tags/${EDM4HEP_VERSION}.tar.gz | tar -xzC .
&& mv EDM4hep-* ${SRC_DIR}
&& mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
&& export PATH="$DEPENDENCY_DIR/bin:$PATH"
&& cmake ${SRC_DIR}
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_PREFIX_PATH=${DEPENDENCY_DIR}
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}
-DBUILD_TESTING=OFF
-USE_EXTERNAL_CATCH2=OFF
-DPython_EXECUTABLE="$DEPENDENCY_DIR/bin/python3"
&& make -j2
&& make install
&& tar czf ../edm4hep.tar.gz -C ${INSTALL_DIR} .
- uses: actions/upload-artifact@v3
with:
name: edm4hep
path: edm4hep.tar.gz
build_dd4hep:
runs-on: macos-13
needs:
- build_python
- build_boost
- build_tbb
- build_xercesc
- build_root
- build_geant4
- build_podio
- build_edm4hep
steps:
- name: Print architecture
run: uname -p
- name: Install dependencies
run: |
brew install cmake ccache openssl@3
brew unlink gettext || true
- name: Cache build
uses: actions/cache@v3
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ runner.os }}-${{ github.job }}-${{ env.DD4HEP_VERSION }}-r1
restore-keys: |
ccache-${{ runner.os }}-${{ github.job }}-${{ env.DD4HEP_VERSION }}-r1
ccache-${{ runner.os }}-${{ github.job }}-
- uses: actions/download-artifact@v3
with:
name: python
path: .
- uses: actions/download-artifact@v3
with:
name: boost
path: .
- uses: actions/download-artifact@v3
with:
name: xercesc
path: .
- uses: actions/download-artifact@v3
with:
name: tbb
path: .
- uses: actions/download-artifact@v3
with:
name: root
path: .
- uses: actions/download-artifact@v3
with:
name: geant4
path: .
- uses: actions/download-artifact@v3
with:
name: podio
path: .
- uses: actions/download-artifact@v3
with:
name: edm4hep
path: .
- run: sudo mkdir -p ${DEPENDENCY_DIR}
- run: sudo tar xf python.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf boost.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf xercesc.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf tbb.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf root.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf geant4.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf podio.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf edm4hep.tar.gz -C ${DEPENDENCY_DIR}
- uses: actions/checkout@v4
- name: Build DD4hep
run: >
curl -SL https://github.com/AIDASoft/DD4hep/archive/refs/tags/v${DD4HEP_VERSION}.tar.gz | tar -xzC .
&& mv DD4hep-* ${SRC_DIR}
&& patch -d ${SRC_DIR} -p1 -i ${{ github.workspace }}/dd4hep-python.patch
&& mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
&& export PATH="$DEPENDENCY_DIR/bin:$PATH"
&& cmake ${SRC_DIR}
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_BUILD_TYPE=Release
-DDD4HEP_USE_GEANT4=ON
-DDD4HEP_USE_EDM4HEP=ON
-DDD4HEP_RELAX_PYVER=ON
-DDD4HEP_IGNORE_GEANT4_TLS=ON
-DDD4HEP_RELAX_PYVER=ON
-DCMAKE_CXX_STANDARD=17
-DCMAKE_PREFIX_PATH=${DEPENDENCY_DIR}
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}
-DPython_EXECUTABLE=${DEPENDENCY_DIR}/bin/python3.10
-DBUILD_DOCS=OFF
&& make -j2
&& make install
&& tar czf ../dd4hep.tar.gz -C ${INSTALL_DIR} .
- uses: actions/upload-artifact@v3
with:
name: dd4hep
path: dd4hep.tar.gz
build_hepmc3:
runs-on: macos-13
needs:
- build_root
steps:
- name: Print architecture
run: uname -p
- name: Install dependencies
run: brew install cmake ccache
- name: Cache build
uses: actions/cache@v3
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ runner.os }}-${{ github.job }}-${{ env.HEPMC_VERSION }}
restore-keys: |
ccache-${{ runner.os }}-${{ github.job }}-${{ env.HEPMC_VERSION }}
ccache-${{ runner.os }}-${{ github.job }}-
- uses: actions/download-artifact@v3
with:
name: root
path: .
- run: sudo mkdir -p ${DEPENDENCY_DIR}
- run: sudo tar xf root.tar.gz -C ${DEPENDENCY_DIR}
- name: Build
run: >
curl -SL https://gitlab.cern.ch/hepmc/HepMC3/-/archive/${HEPMC_VERSION}/HepMC3-${HEPMC_VERSION}.tar.gz | tar -xzC .
&& mv HepMC* ${SRC_DIR}
&& mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
&& cmake ${SRC_DIR}
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_PREFIX_PATH=${DEPENDENCY_DIR}
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}
-DHEPMC3_ENABLE_PYTHON=OFF
&& make -j2
&& make install
&& tar czf ../hepmc3.tar.gz -C ${INSTALL_DIR} .
- uses: actions/upload-artifact@v3
with:
name: hepmc3
path: hepmc3.tar.gz
build_pythia8:
runs-on: macos-13
needs:
- build_python
steps:
- name: Print architecture
run: uname -p
- name: Install dependencies
run: brew install ${DEPENDENCIES}
- name: Cache build
uses: actions/cache@v3
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ runner.os }}-${{ github.job }}-${{ env.PYTHIA8_VERSION }}
restore-keys: |
ccache-${{ runner.os }}-${{ github.job }}-${{ env.PYTHIA8_VERSION }}
ccache-${{ runner.os }}-${{ github.job }}-
- uses: actions/download-artifact@v3
with:
name: python
path: .
- run: sudo mkdir -p ${DEPENDENCY_DIR}
- run: sudo tar xf python.tar.gz -C ${DEPENDENCY_DIR}
- run: ls -al ${DEPENDENCY_DIR}/include/python3.10
- name: Build
run: >
curl -SL https://pythia.org/download/pythia8${PYTHIA8_VERSION:0:1}/pythia8${PYTHIA8_VERSION}.tgz | tar -xzC .
&& mv pythia8* ${SRC_DIR}
&& cd ${SRC_DIR}
&& CC="ccache $CC" CXX="ccache $CXX" ./configure --prefix=${INSTALL_DIR} --with-python-include=${DEPENDENCY_DIR}/include/python3.10
&& make -j2
&& make install
&& tar czf ../pythia8.tar.gz -C ${INSTALL_DIR} .
- uses: actions/upload-artifact@v3
with:
name: pythia8
path: pythia8.tar.gz
make_tarball:
runs-on: ubuntu-latest # we don't need macOS here
needs:
- build_python
- build_tbb
- build_xercesc
- build_root
- build_geant4
- build_hepmc3
- build_pythia8
- build_podio
- build_edm4hep
- build_dd4hep
steps:
- uses: actions/download-artifact@v3
with:
name: python
path: .
- uses: actions/download-artifact@v3
with:
name: boost
path: .
- uses: actions/download-artifact@v3
with:
name: tbb
path: .
- uses: actions/download-artifact@v3
with:
name: xercesc
path: .
- uses: actions/download-artifact@v3
with:
name: root
path: .
- uses: actions/download-artifact@v3
with:
name: geant4
path: .
- uses: actions/download-artifact@v3
with:
name: dd4hep
path: .
- uses: actions/download-artifact@v3
with:
name: hepmc3
path: .
- uses: actions/download-artifact@v3
with:
name: pythia8
path: .
- uses: actions/download-artifact@v3
with:
name: podio
path: .
- uses: actions/download-artifact@v3
with:
name: edm4hep
path: .
- run: sudo mkdir -p ${DEPENDENCY_DIR}
- run: sudo tar xf python.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf tbb.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf boost.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf xercesc.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf root.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf geant4.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf dd4hep.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf hepmc3.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf pythia8.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf podio.tar.gz -C ${DEPENDENCY_DIR}
- run: sudo tar xf edm4hep.tar.gz -C ${DEPENDENCY_DIR}
- name: Make combined tarball
run: tar -c --xz -f deps.tar.gz -C ${DEPENDENCY_DIR} .
- uses: actions/upload-artifact@v3
with:
name: deps
path: deps.tar.gz
deploy_to_eos:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest # we don't need macOS here
needs:
- make_tarball
env:
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
DEPLOY_PWD: ${{ secrets.DEPLOY_PWD }}
steps:
- uses: actions/checkout@v2
- name: Install prerequisites
run: >
sudo apt-get install -y krb5-user krb5-config
- uses: actions/download-artifact@v3
with:
name: deps
path: .
- name: Upload
run: >
echo "$DEPLOY_PWD" | kinit [email protected] 2>&1 >/dev/null
&& sha=$(echo $GITHUB_SHA | head -c 7)
&& name=deps.$sha.tar.gz
&& mv deps.tar.gz $name
&& scp -F ssh_config $name [email protected]:/eos/user/a/atsjenkins/www/ACTS/ci/macOS/
&& ssh -F ssh_config [email protected] ln -f -s $name /eos/user/a/atsjenkins/www/ACTS/ci/macOS/deps.latest.tar.gz