Skip to content

Commit 3d8a1ee

Browse files
committed
Remove test on Julia nightly and attempt to fix test on MacOS
Test with Julia nightly removed because it fails to often.
1 parent c7b7823 commit 3d8a1ee

File tree

3 files changed

+34
-5
lines changed

3 files changed

+34
-5
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
using Pkg
2+
Pkg.activate(temp=true)
3+
Pkg.add("Conda")
4+
import Conda
5+
Conda.add("root=6.32.8")
6+
print("`\n", joinpath(Conda.ROOTENV, "bin"))

.github/workflows/test-linux.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
matrix:
1919
version:
2020
- '1.10'
21-
- 'nightly'
2221
os:
2322
- ubuntu-latest
2423
# - macOS-latest

.github/workflows/test-macos.yml

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
defaults:
99
run:
10-
shell: bash
10+
shell: bash -l {0}
1111

1212
jobs:
1313
test:
@@ -18,12 +18,11 @@ jobs:
1818
matrix:
1919
version:
2020
- '1.10'
21-
- 'nightly'
2221
os:
2322
# - ubuntu-latest
2423
- macOS-latest
2524
arch:
26-
- x64
25+
- aarch64
2726
steps:
2827
- uses: actions/checkout@v3
2928
with:
@@ -32,5 +31,30 @@ jobs:
3231
with:
3332
version: ${{ matrix.version }}
3433
arch: ${{ matrix.arch }}
35-
- uses: julia-actions/julia-buildpkg@latest
34+
- name: Install ROOT
35+
run: |
36+
CONDA_BINDIR="`julia .github/workflows/install_root_macos.jl | tail -n 1`"
37+
source "$CONDA_BINDIR/activate"
38+
cat >> "$GITHUB_ENV" <<EOF
39+
DFLAGS="$LDFLAGS"
40+
CPPFLAGS="$CPPFLAGS"
41+
#SDKROOT="$SDKROOT"
42+
LIBTOOL="$LIBTOOL"
43+
CXXFLAGS="$CXXFLAGS"
44+
CPP="$CPP"
45+
PATH="$PATH"
46+
LD="$LD"
47+
STRIP="$STRIP"
48+
CXX="$CXX"
49+
CFLAGS="$CFLAGS"
50+
MACOSX_DEPLOYMENT_TARGET="$MACOSX_DEPLOYMENT_TARGET"
51+
CMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH"
52+
CC="$CC"
53+
LDFLAGS_LD="$LDFLAGS_LD"
54+
EOF
55+
echo -n "ROOT binary: "
56+
which root 1>&2
57+
- name: Build the Julia wrapper library
58+
run: julia --project=@. -e 'import Pkg; Pkg.add("ROOTprefs"); using ROOTprefs; set_use_root_jll(false); set_ROOTSYS(); import ROOT'
59+
#- uses: julia-actions/julia-buildpkg@latest
3660
- uses: julia-actions/julia-runtest@latest

0 commit comments

Comments
 (0)