Skip to content

BUG: update path

BUG: update path #103

Workflow file for this run

# This workflow will install RST and eventually run tests
name: Compilation Test
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
cc: ["gcc-default"]
cdf: ["39_0"]
name: ${{ matrix.cc }} on ${{ matrix.os }} with CDF ${{ matrix.cdf }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Ubuntu dependencies
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
cat build/.requirements.ubuntu | xargs sudo apt-get install
echo "Get and install NASA CDF"
sudo apt-get install wget
wget https://spdf.gsfc.nasa.gov/pub/software/cdf/dist/latest/linux/cdf${{ matrix.cdf }}-dist-cdf.tar.gz
tar -xzvf cdf${{ matrix.cdf }}-dist-cdf.tar.gz
cd cdf${{ matrix.cdf }}-dist
make OS=linux ENV=gnu all
make test
sudo make INSTALLDIR=/usr/local/cdf install
- name: Install MacOS dependencies
if: startsWith(matrix.os, 'mac')
run: |
brew update-reset
xargs brew install < build/.requirements.darwin
echo "Get and install NASA CDF"
brew install wget
wget https://spdf.gsfc.nasa.gov/pub/software/cdf/dist/latest/linux/cdf${{ matrix.cdf }}-dist-cdf.tar.gz
tar -xzvf cdf${{ matrix.cdf }}-dist-cdf.tar.gz
cd cdf${{ matrix.cdf }}-dist
make OS=macosx ENV=arm all
make test
sudo make INSTALLDIR=/usr/local/cdf install
- name: Build and make Linux code
if: startsWith(matrix.os, 'ubuntu')
run: |
export RSTPATH=$(pwd)
source .profile.bash
build/script/make.build
build/script/make.code
build/script/make.doc
- name: Build and make MacOS code
if: startsWith(matrix.os, 'mac')
run: |

Check failure on line 60 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 60
export PATH="/opt/homebrew:$(PATH)"
export RSTPATH=$(pwd)
source .profile.bash
export OSTYPE="darwin"
export SYSTEM="darwin"
echo $PATH
build/script/make.build
build/script/make.code
build/script/make.doc