Skip to content

Merge pull request #40 from JohanMabille/ci_fix #1

Merge pull request #40 from JohanMabille/ci_fix

Merge pull request #40 from JohanMabille/ci_fix #1

Workflow file for this run

name: "Common steps for Linux and OSX"

Check failure on line 1 in .github/workflows/unix_impl.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/unix_impl.yml

Invalid workflow file

(Line: 2, Col: 1): Unexpected value 'runs', (Line: 1, Col: 1): Required property is missing: jobs
runs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set conda environment
uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment-dev.yml
cache-environment: true
- name: Install NOVENDOR dependencies
if: env.NOVENDOR == '1'
run: |
if [[ $USE_DEV_XTENSOR_R == 1 ]]; then
micromamba install xtensor==0.24.4 xsimd=10.0.0 cmake -c conda-forge;
git clone https://github.com/xtensor-stack/xtensor-r.git;
cd xtensor-r; mkdir build; cd build;
cmake -D CMAKE_INSTALL_PREFIX=$CONDA_PREFIX ..;
make install;
cd ../..;
else
micromamba install xtensor-r==0.14.0 -c conda-forge;
fi
- name: Build Xtensor.R package
run: |
R CMD build ${{ github.workspace }};
- name: Check R package
run: |
if [[ $NOVENDOR == 1 ]]; then
echo "Running R CMD check with --novendor argument";
echo "R CMD check --install-args=\"--configure-args='--novendor'\" ./xtensor_*.tar.gz"
R CMD check --install-args="--configure-args='--novendor'" ./xtensor_*.tar.gz || (
cat xtensor.Rcheck/00install.out &&
cat xtensor.Rcheck/00check.log &&
cat xtensor.Rcheck/Rdlatex.log
);
else
echo "Running R CMD check with --as-cran argument.";
echo "R CMD check --as-cran ./xtensor_*.tar.gz"
R CMD check --as-cran ./xtensor_*.tar.gz || (
cat xtensor.Rcheck/00install.out &&
cat xtensor.Rcheck/00check.log &&
cat xtensor.Rcheck/Rdlatex.log
);
fi