Add docstrings #88
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This file is kept almost identical to test-macos | |
#We use two files in order to get two distinct badges for Linux and macOS. | |
name: macOS | |
on: | |
- push | |
- pull_request | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
test: | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- '1.10' | |
os: | |
# - ubuntu-latest | |
- macOS-latest | |
arch: | |
- aarch64 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- name: Install ROOT | |
run: | | |
CONDA_BINDIR="`julia .github/workflows/install_root_macos.jl | tail -n 1`" | |
source "$CONDA_BINDIR/activate" | |
cat >> "$GITHUB_ENV" <<EOF | |
#LDFLAGS="$LDFLAGS" | |
#CPPFLAGS="$CPPFLAGS" | |
#LIBTOOL="$LIBTOOL" | |
#CXXFLAGS="$CXXFLAGS" | |
#CPP="$CPP" | |
PATH="$PATH" | |
#LD="$LD" | |
CXX="$CXX" | |
#CFLAGS="$CFLAGS" | |
#CC="$CC" | |
EOF | |
echo -n "ROOT binary: " 1>&2 | |
which root 1>&2 | |
- name: Build the Julia wrapper library | |
run: | | |
julia --project=@. -e 'import Pkg; Pkg.add("ROOTprefs"); using ROOTprefs; set_use_root_jll(false); set_ROOTSYS()' 1>&2 | |
julia --project=@. -e 'import ROOT' 1>&2 | |
#- uses: julia-actions/julia-buildpkg@latest | |
- uses: julia-actions/julia-runtest@latest |