Skip to content

Commit

Permalink
ci: run tests on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Sep 29, 2023
1 parent 12bea47 commit f43a09d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ concurrency:
jobs:

build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
runner:
- ubuntu-latest
- macos-latest
outputs:
default_runner: ubuntu-latest
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK
Expand All @@ -33,16 +41,18 @@ jobs:
run: tar czvf coatjava.tar.gz coatjava
- uses: actions/upload-artifact@v3
with:
name: build
name: build_${{ matrix.runner }}
retention-days: 1
path: coatjava.tar.gz

test_coatjava:
needs: [ build ]
runs-on: ubuntu-latest
strategy:
fail-fast: true
fail-fast: false
matrix:
runner:
- ubuntu-latest
- macos-latest
id:
- kpp
- eb-ep
Expand All @@ -57,6 +67,7 @@ jobs:
- { id: eb-epc, cmd: ./run-eb-tests.sh -100 electronprotonC }
- { id: eb-enc, cmd: ./run-eb-tests.sh -100 electronneutronC }
- { id: eb-eftpi, cmd: ./run-eb-tests.sh -100 electronFTpion }
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK
Expand All @@ -66,17 +77,18 @@ jobs:
distribution: zulu
- uses: actions/download-artifact@v3
with:
name: build
name: build_${{ matrix.runner }}
- name: untar build
run: tar xzvf coatjava.tar.gz
- name: run test
run: |
cd validation/advanced-tests
${{matrix.cmd}}
echo "COMMAND: ${{ matrix.cmd }}"
${{ matrix.cmd }}
test_run-groovy:
needs: [ build ]
runs-on: ubuntu-latest
runs-on: ${{ needs.build.outputs.default_runner }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK
Expand All @@ -90,7 +102,7 @@ jobs:
groovy-version: 4.x
- uses: actions/download-artifact@v3
with:
name: build
name: build_${{ needs.build.outputs.default_runner }}
- name: untar build
run: tar xzvf coatjava.tar.gz
- name: test run-groovy
Expand Down
4 changes: 3 additions & 1 deletion bin/env.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash

thisEnv=${BASH_SOURCE[0]:-$0}
export CLAS12DIR=$(cd $(dirname $thisEnv)/.. && pwd -P)
# CLAS12DIR=$(cd $(dirname $thisEnv)/.. && pwd -P)
CLAS12DIR=$(realpath $(dirname $thisEnv)/..)
export CLAS12DIR

# Set default field maps (but do not override user's env):
if [ -z "${COAT_MAGFIELD_TORUSMAP-}" ]; then
Expand Down

0 comments on commit f43a09d

Please sign in to comment.