-
Notifications
You must be signed in to change notification settings - Fork 22
75 lines (61 loc) · 1.82 KB
/
conda.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Conda Build 🐍
# Build the Swift/T Anaconda package
env:
# For Chicago time on log messages:
TZ: CST6CDT
on:
# Schedule and workflow_dispatch (manual) only work on default branch
schedule:
- cron: "0 6 * * *" # Fire at 06: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.11", "3.12"] # "3.9",
mpi:
- mpich
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
- 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