Skip to content

Commit

Permalink
trying to fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Dec 2, 2023
1 parent de17e22 commit 2c46ddc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/build-test-new.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,12 @@ jobs:
- name: Build and Install Geant4
if: steps.cache.outputs.cache-hit != 'true'
run: >
git clone https://github.com/Geant4/geant4.git ${{ github.workspace
}}/geant4-source --depth 1 --branch v${{ matrix.geant4-version }}
mkdir -p ${{ github.workspace }}/geant4-source/build mkdir -p ${{
github.workspace }}/geant4-install
run: |
git clone https://github.com/Geant4/geant4.git ${{ github.workspace }}/geant4-source --depth 1 --branch v${{ matrix.geant4-version }}
mkdir -p ${{ github.workspace }}/geant4-source/build mkdir -p ${{ github.workspace }}/geant4-install
cd ${{ github.workspace }}/geant4-source/build
cmake ..
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/geant4-install
-DCMAKE_CXX_STANDARD=20 -DCMAKE_BUILD_TYPE=Release
-DGEANT4_USE_GDML=ON -DGEANT4_INSTALL_EXAMPLES=OFF
-DGEANT4_INSTALL_DATA=OFF -DGEANT4_BUILD_TLS_MODEL=global-dynamic
cmake .. -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/geant4-install -DCMAKE_CXX_STANDARD=20 -DCMAKE_BUILD_TYPE=Release -DGEANT4_USE_GDML=ON -DGEANT4_INSTALL_EXAMPLES=OFF -DGEANT4_INSTALL_DATA=OFF -DGEANT4_BUILD_TLS_MODEL=global-dynamic
make install -j$(nproc)
rm -rf ${{ github.workspace }}/geant4-source
- name: Cache Geant4 Installation
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Test image
run: |
docker run --rm ${{ env.IMAGE_NAME }} -c 'from geant4_python_application import Application; Application().setup_manager()'
docker run --rm ${{ env.IMAGE_NAME }} -c 'from geant4_python_application import Application; geant4_python_application.check_datasets()'
- name: Publish
run: docker push ${{ env.IMAGE_NAME }}
Expand Down

0 comments on commit 2c46ddc

Please sign in to comment.