Skip to content

Add matrix.os

Add matrix.os #308

Workflow file for this run

name: Conda Build 🐍
# Build the Swift/T Anaconda package
env:
# For Chicago time on log messages:
TZ: America/Chicago
on:
# Schedule and workflow_dispatch (manual) only work on default branch
schedule:
- cron: "0 5 * * *" # Fire at 05:00 AM every day
workflow_dispatch:
pull_request:
push:
branches:
- master
# - github_action_mac
release:
types:
- published
permissions:
contents: read # To read the project source code (git)
jobs:
build_conda_pkg:
name: OS=${{ matrix.os }} PY=${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
# - macos-13
- macos-14 # This is ARM64
# - macos-14-arm64
# Comma separated list of python versions to test
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
mpi:
- mpich
exclude:
# Some package spec difference exists on GH for this:
- os: macos-14
python-version: "3.9"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup dependencies
run: |
dev/github-actions/check setup-conda.sh ${{ matrix.os }}
- name: Save setup-conda.log
uses: actions/upload-artifact@v4
with:
name: setup-conda-log-${{ matrix.os }}-py${{ matrix.python-version }}
path: setup-conda.log
- name: Check setup-conda.log
run: |
grep "setup-conda: SUCCESS" setup-conda.log
- name: Build Anaconda package
run: |
dev/github-actions/check dev/jenkins/anaconda.sh -p ${{ matrix.python-version }}
- name: Save anaconda.log
uses: actions/upload-artifact@v4
with:
name: anaconda-log-${{ matrix.os }}-py${{ matrix.python-version }}
path: anaconda.log
- name: Check anaconda.log
run: |
# Returns error code if not found, stopping GitHub workflow
grep "anaconda.sh: SUCCESS" anaconda.log