Build Geant4 #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Geant4 | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Geant4 version to build' | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
GEANT4_VERSION: "${{ github.event.inputs.version }}" | |
GEANT4_ARCHIVE: "${{ github.event.inputs.version }}-binaries.tar.gz" | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Install packages | |
run: sudo apt-get install libxerces-c-dev | |
- name: Build Geant4 | |
run: | | |
cd $HOME | |
$GITHUB_WORKSPACE/build.sh | |
tar czf $GITHUB_WORKSPACE/$GEANT4_ARCHIVE Geant4 | |
- name: Upload binaries | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ github.event.inputs.version }} | |
path: ${{ env.GEANT4_ARCHIVE }} |