debugging macos CI #108
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="`sh .github/workflows/install_root_with_conda.sh | 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: Setup upterm session | ||
| # uses: owenthereal/action-upterm@v1 | ||
| # with: | ||
| # ## limits ssh access and adds the ssh public key for the user which triggered the workflow | ||
| # limit-access-to-actor: true | ||
| # ## limits ssh access and adds the ssh public keys of the listed GitHub users | ||
| # limit-access-to-users: grasph | ||
| # ## If no one connects after 2 minutes, shut down server. | ||
| # wait-timeout-minutes: 2 | ||
| - name: Build the Julia wrapper library | ||
| run: | | ||
| cd .. | ||
| # julia --project=@. -e 'import Pkg; Pkg.add("ROOTprefs"); using ROOTprefs; set_use_root_jll(false); set_ROOTSYS(); ROOTprefs._set_preference("no_auto_compile", true); Pkg.add(path="./ROOT.jl"); import ROOT; ROOT.cxxcompile();' 1>&2 | ||
| julia --project=@. -e 'import Pkg; Pkg.add("ROOTprefs"); using ROOTprefs; ROOTprefs._set_preference("no_auto_compile", true); Pkg.add(path="./ROOT.jl"); import ROOT; ROOT.cxxcompile();' 1>&2 | ||
| julia --project=@. -e 'import ROOT' 1>&2 | ||
| #- uses: julia-actions/julia-buildpkg@latest | ||
| - uses: julia-actions/julia-runtest@latest | ||