fix vla #58
Workflow file for this run
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: macOS | |
# Build and run tests on macOS | |
on: | |
- push | |
env: | |
CACHE_NUMBER: 0 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
macos_build: | |
name: macOS build | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Setup Mambaforge | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
channels: conda-forge | |
miniforge-variant: Mambaforge | |
miniforge-version: latest | |
activate-environment: grass-env | |
use-mamba: true | |
- name: Get cache date | |
id: get-date | |
run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT | |
shell: bash | |
- name: Cache conda environment | |
uses: actions/cache@v3 | |
with: | |
path: ~/miniconda3/envs/grass-env | |
key: conda-macos-x86_64-${{ | |
steps.get-date.outputs.today }}-${{ | |
hashFiles('.github/workflows/macos_dependencies.txt') }}-${{ | |
env.CACHE_NUMBER }} | |
id: cache | |
- name: Update environment | |
run: mamba env update -n grass-env -f .github/workflows/macos_dependencies.txt | |
if: steps.cache.outputs.cache-hit != 'true' | |
- name: Conda info | |
shell: bash -el {0} | |
run: | | |
conda info | |
conda list | |
conda config --show-sources | |
conda config --show | |
printenv | sort | |
$CC --version | |
- name: Create installation directory | |
run: mkdir $HOME/install | |
- name: Build and install | |
shell: bash -l {0} | |
run: source ./.github/workflows/macos_install.sh $HOME/install | |
- name: Add the bin directory to PATH | |
run: echo "$HOME/install/bin" >> $GITHUB_PATH | |
- name: Check installed version | |
shell: bash -l {0} | |
run: source ./.github/workflows/print_versions.sh | |
- name: Make HTML test report available | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: testreport-macOS | |
path: testreport | |
retention-days: 3 |