Repository navigation
82 lines (76 loc) · 2.64 KB
/
Copy pathpush.yml
File metadata and controls
82 lines (76 loc) · 2.64 KB
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
#-------------------------------- -*- yaml -*- ---------------------------------#
# Copyright Celeritas contributors: see top-level COPYRIGHT file for details
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
#-----------------------------------------------------------------------------#
# Run tests and pages deployment when publishing develop/backport branches.
#-----------------------------------------------------------------------------#
name: push
# Run name renders as `{branch}: {head commit subject and body}`
run-name: >-
${{github.ref_name}}: ${{github.event.head_commit.message}}
on:
push:
branches:
- develop
- backports/**
workflow_dispatch: {} # Allow manual invocation for testing when not using CELER_CI
concurrency:
group: push-${{github.ref_name}}-${{github.run_number}}
cancel-in-progress: true
jobs:
check-ci-vars:
# See https://github.com/celeritas-project/celeritas/settings/variables/actions
# or https://github.com/{user}/celeritas/settings/variables/actions
# This should be set to a "truthy" value for celeritas-project and any fork that
# wants to do regular testing.
name: Check CELER_CI variable
if: ${{ vars.CELER_CI || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-24.04
steps:
- name: Success
run: |
echo "Running on repository ${{ github.repository }}"
build-pages:
# NOTE: replaces build-docs because it includes jekyll from a separate branch
needs: [check-ci-vars]
uses: ./.github/workflows/build-pages.yml
secrets: inherit
build-fast:
needs: [check-ci-vars]
uses: ./.github/workflows/build-fast.yml
build-ultralite:
needs: [check-ci-vars]
uses: ./.github/workflows/build-ultralite.yml
build-spack:
needs: [check-ci-vars]
uses: ./.github/workflows/build-spack.yml
build-spack-extra:
needs: [check-ci-vars]
uses: ./.github/workflows/build-spack-extra.yml
build-docker:
needs: [check-ci-vars]
uses: ./.github/workflows/build-docker.yml
build-codecov:
needs: [check-ci-vars]
uses: ./.github/workflows/build-codecov.yml
secrets: inherit
build-regression:
needs: [check-ci-vars]
uses: ./.github/workflows/build-regression.yml
deploy-pages:
if: ${{ github.ref == 'refs/heads/develop' }}
needs: [build-pages]
runs-on: ubuntu-24.04
permissions:
contents: read
deployments: write
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
# vim: set nowrap tw=100: