Add env vars for macOS #5
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: | ||
[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 GitHub Actions / ciInvalid workflow file
|
||
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 |