-
Notifications
You must be signed in to change notification settings - Fork 22
85 lines (67 loc) · 2.24 KB
/
build.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
76
77
78
79
80
81
82
83
84
85
name: Build and Test 🧪
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:
- github_action_mac
# - github_action_build # The name of our test branch
# - master
release:
types:
- published
permissions:
contents: read # To read the project source code (git)
# packages: read # To read the docker image from package registry
jobs:
build_swift-t:
name: Build swift-t on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
# - ubuntu-latest
- macos-14
# Comman separated list of python versions to test
python-version: ["3.11"]
mpi:
- mpich
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install deps
run: |
brew update
brew install tcl-tk java autoconf automake make mpich swig
which make gmake
# run: sudo apt-get install -y zsh tcl tcl-dev default-jdk autoconf make libcurl4-openssl-dev
# - name: Set up R
# uses: r-lib/actions/setup-r@v2
# # TODO RInside
# - name: Install R requirements
# run: R -e "install.packages('RInside')"
# # run: Rscript install/R-requirements.R
# - uses: r-lib/actions/setup-r-dependencies@v2
# with:
# extra-packages: any::RInside
# - name: Setup Python
# uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python-version }}
# # cache: pip
# - name: Upgrade pip
# run: python -m pip install -U pip
- name: Initialize swift-t settings
run: dev/build/init-settings.sh
# TODO set swift-t install, R, python, and ??
# sed -i 's/original/new/g' file.txt
# - run: sed -i 's/ENABLE_PYTHON=0/ENABLE_PYTHON=1/g' dev/build/swift-t-settings.sh
# - run: sed -i 's/ENABLE_R=0/ENABLE_R=1/g' dev/build/swift-t-settings.sh
- name: build swift-t
run: dev/build/build-swift-t.sh -vv
# TODO check swift-t install
- name: Check swift-t version info
run: /tmp/swift-t-install/stc/bin/swift-t -v