Update ci.yml for aarch64 mac #4595
This file contains 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
name: ci | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [master, v2] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
ci: | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
env: | |
JULIA_CONDAPKG_BACKEND: MicroMamba | |
MPLBACKEND: agg | |
GKS_ENCODING: utf8 | |
GKSwstype: nul | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- '1' # latest stable | |
- '1.9' # minimal declared julia compat in `Project.toml` | |
experimental: | |
- false | |
os: [ubuntu-latest, windows-latest] | |
arch: [x64] | |
include: | |
- os: macOS-latest | |
arch: aarch64 | |
version: '1' | |
- os: ubuntu-latest | |
experimental: true | |
version: 'pre' # upcoming julia version (`alpha`, `beta` or `rc`) | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Ubuntu LaTeX dependencies | |
if: startsWith(matrix.os, 'ubuntu') | |
run: | | |
sudo apt-get -y update | |
sudo apt-get -y install g++ gnuplot poppler-utils texlive-{latex-base,latex-extra,luatex} | |
sudo fc-cache -vr | |
- name: Set LD_PRELOAD | |
if: startsWith(matrix.os, 'ubuntu') | |
run: echo "LD_PRELOAD=$(g++ --print-file-name=libstdc++.so)" >> $GITHUB_ENV | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: ${{ matrix.version }} | |
- uses: julia-actions/cache@v2 | |
- name: Develop RecipesBase, RecipesPipeline, PlotsBase, Plots | |
env: | |
JULIA_PKG_PRECOMPILE_AUTO: 0 | |
shell: julia --color=yes {0} | |
run: | | |
using Pkg | |
foreach(path -> Pkg.develop(; path), ("./RecipesBase", "./RecipesPipeline", "./PlotsBase", ".")) | |
- name: Install conda based matplotlib | |
env: | |
JULIA_PKG_PRECOMPILE_AUTO: 0 | |
run: julia --color=yes ci/matplotlib.jl | |
- name: Test RecipesBase, RecipesPipeline, PlotsBase, Plots | |
timeout-minutes: 60 | |
run: | | |
cmd=(julia --color=yes) | |
if [ "$RUNNER_OS" == "Linux" ]; then | |
cmd=(xvfb-run ${cmd[@]}) | |
fi | |
echo ${cmd[@]} | |
${cmd[@]} -e ' | |
using Pkg | |
foreach(name -> Pkg.test(name; coverage=true), ("RecipesBase", "RecipesPipeline", "PlotsBase", "Plots")) | |
' | |
- name: Test downstream packages | |
if: startsWith(matrix.os, 'ubuntu') | |
run: | | |
xvfb-run julia --color=yes ci/downstream.jl GraphRecipes || true | |
xvfb-run julia --color=yes ci/downstream.jl StatsPlots || true | |
- uses: julia-actions/julia-processcoverage@latest | |
if: startsWith(matrix.os, 'ubuntu') | |
with: | |
directories: RecipesBase/src,RecipesPipeline/src,PlotsBase/src,src | |
- uses: codecov/codecov-action@v4 | |
if: startsWith(matrix.os, 'ubuntu') | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: false | |
file: lcov.info | |
Skip: | |
if: contains(github.event.head_commit.message, '[skip ci]') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Skip CI 🚫 | |
run: echo skip ci |