Skip to content

Test the compilation of SPRAL with llvm/clang #5

Test the compilation of SPRAL with llvm/clang

Test the compilation of SPRAL with llvm/clang #5

Workflow file for this run

name: Clang
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read
jobs:
test:
name: aarch64-apple-darwin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Install Julia 1.7 for BinaryBuilder. Note that this is an old version of
# Julia, but it is required for compatibility with BinaryBuilder.
- uses: julia-actions/setup-julia@v2
with:
version: "1.7"
arch: x64
- uses: julia-actions/cache@v1
# Set environment variables required by BinaryBuilder.
- name: Set the environment variables
run: |
git fetch --tags
echo "SPRAL_RELEASE=$(git describe --tags $(git rev-list --tags --max-count=1) | sed 's/^v//')" >> $GITHUB_ENV
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "SPRAL_COMMIT=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
echo "SPRAL_URL=${{ github.event.pull_request.head.repo.clone_url }}" >> $GITHUB_ENV
else
echo "SPRAL_COMMIT=${{ github.sha }}" >> $GITHUB_ENV
echo "SPRAL_URL=https://github.com/${{ github.repository }}.git" >> $GITHUB_ENV
fi
echo "BINARYBUILDER_AUTOMATIC_APPLE=true" >> $GITHUB_ENV
- name: Compile SPRAL_jll
run: |
julia --color=yes -e 'using Pkg; Pkg.add("BinaryBuilder")'
julia --color=yes .github/julia/build_tarballs_yggdrasil.jl aarch64-apple-darwin-libgfortran5 --verbose --deploy="local"