-
Notifications
You must be signed in to change notification settings - Fork 1
90 lines (81 loc) · 1.92 KB
/
ci.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
name: Validation
on:
workflow_dispatch:
inputs:
id:
required: true
type: string
source:
required: true
type: string
title:
required: true
type: string
pull_request:
push:
branches: [ master ]
run-name: ${{ inputs.source }} ${{ inputs.id }} ${{ inputs.title }}
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
# build
#############################################################################
build_coatjava:
runs-on: ubuntu-latest
steps:
- name: setup java
uses: actions/setup-java@v3
with:
java-version: 11
distribution: zulu
- name: clone
run: git clone https://github.com/JeffersonLab/coatjava.git
- name: build
run: |
cd coatjava
./build-coatjava.sh
- name: tree
run: tree
- name: tar
run: tar czvf coatjava{.tar.gz,}
- uses: actions/upload-artifact@v3
with:
name: build
retention-days: 1
path: ./*.tar.gz
build_gemc:
runs-on: ubuntu-latest
container: jeffersonlab/gemc:4.4.2-5.1-5.2-5.3-fedora36-cvmfs ##### FIXME: need `latest` tag
steps:
- name: clone
run: git clone https://github.com/gemc/clas12Tags.git
- name: build
run: |
cd clas12Tags/source
scons -j2 OPT=1
- name: tree
run: tree
- name: tar
run: tar czvf clas12Tags{.tar.gz,}
- uses: actions/upload-artifact@v3
with:
name: build
retention-days: 1
path: ./*.tar.gz
# test
#############################################################################
test:
needs:
- build_coatjava
- build_gemc
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: build
- name: tree
run: tree