File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build on push
2+
3+ on : [pull_request]
4+
5+
6+
7+
8+ env :
9+ REGISTRY : ghcr.io
10+ IMAGE_NAME : ${{ github.repository }}
11+
12+ jobs :
13+
14+ build :
15+
16+ runs-on : ubuntu-latest
17+ permissions :
18+ contents : read
19+ packages : read
20+
21+ steps :
22+ - name : Checkout repository
23+ uses : actions/checkout@v3
24+ - uses : webfactory/ssh-agent@v0.6.0
25+ with :
26+ ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
27+
28+ - name : Log in to the Container registry
29+ uses : docker/login-action@v2
30+ with :
31+ registry : ${{ env.REGISTRY }}
32+ username : ${{ github.actor }}
33+ password : ${{ secrets.GITHUB_TOKEN }}
34+
35+ - name : Extract metadata (tags, labels) for Docker
36+ id : meta
37+ uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
38+ with :
39+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
40+
41+ - name : Build and push Docker image
42+ uses : docker/build-push-action@v3.1.0
43+ with :
44+ context : .
45+ file : Dockerfile
46+ push : false
47+ pull : true
48+ github-token : ${{ secrets.GITHUB_TOKEN }}
49+ tags : ${{ steps.meta.outputs.tags }}
50+ labels : ${{ steps.meta.outputs.labels }}
51+ ssh : |
52+ default=${{ env.SSH_AUTH_SOCK }}
53+
54+ # - name: Build the Docker image
55+ # run: docker build . --file Dockerfile --tag ghcr.io/hyperk/geant4:latest
Original file line number Diff line number Diff line change 1+ name : Build on push
2+
3+ on :
4+ push :
5+ branches : [main]
6+ tags : ['*']
7+
8+ env :
9+ REGISTRY : ghcr.io
10+ IMAGE_NAME : ${{ github.repository }}
11+
12+ jobs :
13+
14+
15+ build :
16+
17+ runs-on : ubuntu-latest
18+ permissions :
19+ contents : read
20+ packages : write
21+
22+ steps :
23+ - name : Checkout repository
24+ uses : actions/checkout@v3
25+ - uses : webfactory/ssh-agent@v0.6.0
26+ with :
27+ ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
28+
29+ - name : Log in to the Container registry
30+ uses : docker/login-action@v2
31+ with :
32+ registry : ${{ env.REGISTRY }}
33+ username : ${{ github.actor }}
34+ password : ${{ secrets.GITHUB_TOKEN }}
35+
36+ - name : Extract metadata (tags, labels) for Docker
37+ id : meta
38+ uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
39+ with :
40+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
41+
42+ - name : Build and push Docker image
43+ uses : docker/build-push-action@v3.1.0
44+ with :
45+ context : .
46+ file : Dockerfile
47+ push : true
48+ pull : true
49+ github-token : ${{ secrets.GITHUB_TOKEN }}
50+ tags : ${{ steps.meta.outputs.tags }}
51+ labels : ${{ steps.meta.outputs.labels }}
52+ ssh : |
53+ default=${{ env.SSH_AUTH_SOCK }}
Original file line number Diff line number Diff line change 11* ~
22* .o
33* #
4- * .so
4+ * .so
5+ .gitignore
6+
7+ build /
8+ build- *
9+ install- *
10+ __pycache__
Original file line number Diff line number Diff line change 1+ # Minimum cmake verison 3.1 required for the variable CMAKE_CXX_STANDARD
2+ cmake_minimum_required (VERSION 3.1 )
3+
4+
5+ set (PROJECT_NAME hk-DataModel)
6+
7+ list (APPEND CMAKE_MODULE_PATH
8+ $ENV{HK_PILOT_DIR} /cmake
9+ )
10+ include (GetVersionGit )
11+ MESSAGE ("Preparing project ${PROJECT_NAME} version ${PROJECT_VERSION} " )
12+ project (${PROJECT_NAME} VERSION ${PROJECT_VERSION} )
13+ include (HKPackageBuilder )
14+ hkbuilder_prepare_project ()
15+ set ( PUBLIC_EXT_LIBS )
16+ hk_check_dependencies ()
17+
18+
19+ add_subdirectory (DataModel )
Original file line number Diff line number Diff line change 1+
2+ include_directories (BEFORE
3+ ${PROJECT_SOURCE_DIR} /DataModel
4+ )
5+
6+ # Don't include Utilities
7+ #file(GLOB_RECURSE SRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.cpp")
8+ #file(GLOB_RECURSE HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h")
9+
10+ set (SRC
11+ DataModel.cpp
12+ Utilities.cpp)
13+ set (HEADERS
14+ DataModel.h
15+ Utilities.h)
16+
17+ pbuilder_library (
18+ TARGET DataModel
19+ SOURCES ${SRC}
20+ PROJECT_LIBRARIES ToolFrameworkCore::ToolFrameworkCore
21+ PUBLIC_EXTERNAL_LIBRARIES ${PUBLIC_EXT_LIBS}
22+ PRIVATE_EXTERNAL_LIBRARIES ${PRIVATE_EXT_LIBS}
23+ )
24+
25+ pbuilder_install_headers (${HEADERS} )
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1+ FROM ghcr.io/hyperk/hk-meta-externals:latest
2+
3+ COPY . /usr/local/hk/hk-DataModel
4+
5+ RUN --mount=type=ssh mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
6+
7+ WORKDIR /usr/local/hk
8+ RUN --mount=type=ssh . /usr/local/hk/hk-pilot/setup.sh &&\
9+ hkp install -r hk-DataModel
You can’t perform that action at this time.
0 commit comments