Skip to content

Add env vars for macOS #5

Add env vars for macOS

Add env vars for macOS #5

Workflow file for this run

name: ci
on:
[push]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: "true"
- if: ${{ matrix.os == 'macos-latest' }}
run:
|
brew install llvm libomp gcc gfortran
export PATH="/usr/local/opt/llvm/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/llvm/lib"
export CPPFLAGS="-I/usr/local/opt/llvm/include"
export CC=/usr/local/opt/llvm/bin/clang
- name: Setup
env:
|

Check failure on line 31 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / ci

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 31, Col: 11): Unexpected value 'XCBASE:=$(shell xcrun --show-sdk-path) LLVMBASE:=$(shell brew --prefix llvm) GCCBASE:=$(shell brew --prefix gcc) GETTEXT:=$(shell brew --prefix gettext) CC=$(LLVMBASE)/bin/clang -fopenmp CXX=$(LLVMBASE)/bin/clang++ -fopenmp CXX11=$(LLVMBASE)/bin/clang++ -fopenmp CXX14=$(LLVMBASE)/bin/clang++ -fopenmp CXX17=$(LLVMBASE)/bin/clang++ -fopenmp CXX1X=$(LLVMBASE)/bin/clang++ -fopenmp CPPFLAGS=-isystem "$(LLVMBASE)/include" -isysroot "$(X[...]
XCBASE:=$(shell xcrun --show-sdk-path)
LLVMBASE:=$(shell brew --prefix llvm)
GCCBASE:=$(shell brew --prefix gcc)
GETTEXT:=$(shell brew --prefix gettext)
CC=$(LLVMBASE)/bin/clang -fopenmp
CXX=$(LLVMBASE)/bin/clang++ -fopenmp
CXX11=$(LLVMBASE)/bin/clang++ -fopenmp
CXX14=$(LLVMBASE)/bin/clang++ -fopenmp
CXX17=$(LLVMBASE)/bin/clang++ -fopenmp
CXX1X=$(LLVMBASE)/bin/clang++ -fopenmp
CPPFLAGS=-isystem "$(LLVMBASE)/include" -isysroot "$(XCBASE)"
LDFLAGS=-L"$(LLVMBASE)/lib" -L"$(GETTEXT)/lib" --sysroot="$(XCBASE)"
FC=$(GCCBASE)/bin/gfortran -fopenmp
F77=$(GCCBASE)/bin/gfortran -fopenmp
FLIBS=-L$(GCCBASE)/lib/gcc/9/ -lm
run:
|
python -m pip install --upgrade pip setuptools wheel
python -m pip install poetry
poetry install -vvv
- name: Build
run:
|
poetry build