-
Notifications
You must be signed in to change notification settings - Fork 4
112 lines (107 loc) · 3.33 KB
/
linux-eic-shell.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
name: linux-eic-shell
on:
push:
branches:
- main
tags:
- '*'
pull_request:
schedule:
- cron: '41 4 * * 0'
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cvmfs-contrib/github-action-cvmfs@v4
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "eic_xl:nightly"
run: |
PREFIX=${PWD}/install
cmake -B build -S . -DCMAKE_INSTALL_PREFIX=${PREFIX}
cmake --build build -- install
- uses: actions/upload-artifact@v4
with:
name: build-eic-shell
path: build/
if-no-files-found: error
- uses: actions/upload-artifact@v4
with:
name: install-eic-shell
path: install/
if-no-files-found: error
trigger-container:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'merge_group' && github.event_name != 'schedule' && github.actor != 'dependabot[bot]' }}
needs:
- build-test
steps:
- uses: eic/trigger-gitlab-ci@v3
id: trigger
with:
url: https://eicweb.phy.anl.gov
project_id: 290
token: ${{ secrets.EICWEB_CONTAINER_TRIGGER }}
ref_name: master
variables: |
GITHUB_REPOSITORY=${{ github.repository }}
GITHUB_SHA=${{ github.event.pull_request.head.sha || github.sha }}
GITHUB_PR=${{ github.event.pull_request.number }}
EDM4EIC_VERSION="${{ github.event.pull_request.head.ref || github.ref_name }}"
PIPELINE_NAME=${{ github.repository }}: ${{ github.event.pull_request.title || github.ref_name }}
- run: |
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
/repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha || github.sha }} \
-f state="pending" \
-f target_url="${{ steps.trigger.outputs.web_url }}" \
-f description="Triggered... $(TZ=America/New_York date)" \
-f context="eicweb/eic_container"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-docs:
runs-on: ubuntu-latest
needs: build-test
container:
image: alpine:latest
volumes:
- /home/runner/work/_temp:/home/runner/work/_temp
# FIXME hard-coded: see https://github.com/actions/upload-pages-artifact/pull/14
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: build-eic-shell
path: build/
- run: |
apk add doxygen graphviz
doxygen build/Doxyfile
- uses: actions/upload-artifact@v4
with:
name: docs-eic-shell
path: build/docs/html/
if-no-files-found: error
- run: |
apk add tar bash
# FIXME bash not really required: see https://github.com/actions/upload-pages-artifact/pull/14
- uses: actions/upload-pages-artifact@v1
if: github.ref == 'refs/heads/main'
with:
path: build/docs/html/
retention-days: 7
deploy-docs:
needs: build-docs
if: github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1