From 7b978b79692e474d17e1d7419e1f49d3d6b97fe6 Mon Sep 17 00:00:00 2001 From: Ross Ceballo Date: Thu, 5 Sep 2024 16:14:20 -0400 Subject: [PATCH] Allow jenkins to run on mac minis --- etc/scipipe/build_matrix.yaml | 8 ++++++++ pipelines/lib/util.groovy | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/etc/scipipe/build_matrix.yaml b/etc/scipipe/build_matrix.yaml index 4632e083..4457a3d2 100644 --- a/etc/scipipe/build_matrix.yaml +++ b/etc/scipipe/build_matrix.yaml @@ -39,11 +39,19 @@ template: display_name: macos-13 compiler: conda-system python: '3' + - &macarm64-conda + <<: *platform_defaults + image: null + label: mini + display_name: macosarm-14 + compiler: conda-system + python: '3' # # build environment/matrix configs # scipipe-lsstsw-matrix: - <<: *el7-conda + - <<: *macarm64-conda - <<: *ventura-conda # allow builds on monterey and ventura label: osx-12||osx-13 diff --git a/pipelines/lib/util.groovy b/pipelines/lib/util.groovy index 788009aa..6db69ae2 100644 --- a/pipelines/lib/util.groovy +++ b/pipelines/lib/util.groovy @@ -385,13 +385,12 @@ def lsstswBuild( } } // runEnv - def agent = null + def agent = lsstswConfig.label def task = null if (lsstswConfig.image) { agent = 'docker' task = { runEnv(runDocker) } } else { - agent = lsstswConfig.label task = { runEnv(run) } } @@ -1540,7 +1539,7 @@ def String sanitizeEupsTag(String tag) { char c = tag.charAt(0) if ( c.isDigit() ) { tag = "v" + tag - } + } // eups doesn't like dots in tags, convert to underscores // by policy, we're not allowing dash either