Skip to content

Commit a7ac6e8

Browse files
committed
decouple ubuntu/macos builds to reduce wait
1 parent c37ef34 commit a7ac6e8

1 file changed

Lines changed: 38 additions & 6 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,46 @@ jobs:
6161
# build
6262
#############################################################################
6363

64+
build-macos:
65+
strategy:
66+
fail-fast: true
67+
runs-on: macos-latest
68+
steps:
69+
- uses: actions/checkout@v6
70+
- uses: actions/setup-java@v5
71+
with:
72+
java-version: ${{ env.JAVA_VERSION }}
73+
distribution: ${{ env.java_distribution }}
74+
cache: maven
75+
- name: setup cvmfs
76+
uses: cvmfs-contrib/github-action-cvmfs@v5
77+
with:
78+
cvmfs_repositories: 'oasis.opensciencegrid.org'
79+
- name: cvmfs
80+
run: ls /cvmfs/oasis.opensciencegrid.org/jlab/hallb/clas12/sw/noarch/data/ccdb/ccdb_latest.sqlite
81+
- name: bump version to tag if tag trigger
82+
if: ${{ github.ref_type == 'tag' }}
83+
run: libexec/version-bump.sh ${{ github.ref_name }}
84+
- name: build
85+
run: |
86+
./build-coatjava.sh --lfs --no-progress -T${{ env.nthreads }}
87+
./bin/install-clara -b -c ./coatjava ./clara
88+
- name: tar # tarball to preserve permissions
89+
run: |
90+
tar czvf coatjava.tar.gz coatjava
91+
tar czvf clara.tar.gz clara
92+
- uses: actions/upload-artifact@v7
93+
with:
94+
name: build_macos-latest
95+
retention-days: 1
96+
path: |
97+
coatjava.tar.gz
98+
clara.tar.gz
99+
64100
build:
65101
strategy:
66102
fail-fast: true
67-
matrix:
68-
runner:
69-
- ubuntu-latest
70-
- macos-latest
71-
runs-on: ${{ matrix.runner }}
103+
runs-on: ubuntu-latest
72104
steps:
73105
- uses: actions/checkout@v6
74106
- uses: actions/setup-java@v5
@@ -95,7 +127,7 @@ jobs:
95127
tar czvf clara.tar.gz clara
96128
- uses: actions/upload-artifact@v7
97129
with:
98-
name: build_${{ matrix.runner }}
130+
name: build_ubuntu-latest
99131
retention-days: 1
100132
path: |
101133
coatjava.tar.gz

0 commit comments

Comments
 (0)