From a20fa6b0bc2bacd333ef454daf066651ab0c5a2d Mon Sep 17 00:00:00 2001 From: Luis Antonio Obis Aparicio Date: Tue, 28 Nov 2023 20:27:49 -0600 Subject: [PATCH] use conda to install Geant4 --- .github/workflows/build-test.yml | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 925ef43..a7d7c19 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -13,21 +13,34 @@ concurrency: jobs: build-test: runs-on: ubuntu-latest - container: - image: ghcr.io/rest-for-physics/root-garfield-geant4:latest - timeout-minutes: 20 + defaults: + run: + shell: bash -l {0} + steps: - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 + - name: Get conda + uses: conda-incubator/setup-miniconda@v2 with: - python-version: 3.11 + auto-update-conda: true + python-version: ${{ matrix.python-version }} + miniforge-variant: Mambaforge + use-mamba: true - - name: Setup cmake - uses: jwlawson/actions-setup-cmake@v1.14 + - name: Install Geant4 via conda + run: | + conda env list + mamba install -c conda-forge geant4 + conda list + + - name: Install cmake via conda + run: | + conda env list + mamba install -c conda-forge cmake + conda list - name: Version run: |