Skip to content

Commit

Permalink
Updating GH workflows (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvbrt authored Nov 4, 2024
1 parent b0b5f97 commit ecc1b44
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 17 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ name: Deploy reference documentation to GitHub Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches:
- main

# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -27,36 +28,34 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: cvmfs-contrib/github-action-cvmfs@v2
- uses: cvmfs-contrib/github-action-cvmfs@v4
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Start container
run: |
docker run -it --name CI_container \
-v ${GITHUB_WORKSPACE}:/Package \
-v /cvmfs:/cvmfs:shared \
-d ghcr.io/aidasoft/centos7:latest /bin/bash
-d ghcr.io/key4hep/key4hep-images/alma9:latest /bin/bash
- name: Configure
run: |
docker exec CI_container /bin/bash -c 'cd Package
mkdir -p build
docker exec CI_container /bin/bash -c 'cd ./Package
source /cvmfs/sw.hsf.org/key4hep/setup.sh
mkdir -p build
cd build
cmake -DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always " \
-G Ninja ..'
cmake -G Ninja ..'
- name: Build docs
run: |
docker exec CI_container /bin/bash -c 'cd ./Package
source /cvmfs/sw.hsf.org/key4hep/setup.sh
cd build
ninja -k0 doc'
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: './build/doxygen/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
8 changes: 7 additions & 1 deletion .github/workflows/key4hep-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ on:
- main
pull_request:
workflow_dispatch:
schedule:
- cron: '52 4 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
matrix:
build_type: ["release", "nightly"]
image: ["alma9", "ubuntu22", "centos7"]
image: ["alma9", "ubuntu22"]
fail-fast: false
runs-on: ubuntu-latest
steps:
Expand Down
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# k4SimGeant4

Gaudi Components for Geant4 Simulation in the Key4HEP software framework.
[![key4hep-build](https://github.com/HEP-FCC/k4SimGeant4/actions/workflows/key4hep-build.yaml/badge.svg)](https://github.com/HEP-FCC/k4SimGeant4/actions/workflows/key4hep-build.yaml)
[![docs](https://github.com/HEP-FCC/k4SimGeant4/actions/workflows/docs.yml/badge.svg)](https://github.com/HEP-FCC/k4SimGeant4/actions/workflows/docs.yml)

Gaudi Components for Geant4 Simulation in the Key4hep software framework.
See the [FCC Tutorials](https://hep-fcc.github.io/fcc-tutorials/) for
documentation on the usage in FCC.

Expand All @@ -24,8 +27,10 @@ xdg-open doxygen/html/index.html

## Dependencies

* Gaudi (=>v35r0)
* k4FWCore (=>1.0)
* Gaudi
* k4FWCore
* Geant4
* DD4hep
* EDM4HEP
* EDM4hep
* ROOT
* CLHEP

0 comments on commit ecc1b44

Please sign in to comment.