-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
696 additions
and
43 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
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: Swift/T OS=${{ matrix.os }} PY=${{ matrix.python-version }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
# - macos-14 | ||
|
||
# Comma separated list of python versions to test | ||
python-version: ["3.11"] # "3.8", "3.9", "3.10", | ||
|
||
mpi: | ||
- mpich | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
# R may need to run before installing sed: | ||
- name: Set up R | ||
uses: r-lib/actions/setup-r@v2 | ||
|
||
- name: Install deps | ||
run: | | ||
dev/github-actions/setup-deps.sh ${{ matrix.os }} | ||
# # 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 }} | ||
|
||
# - name: Upgrade pip | ||
# run: python -m pip install -U pip | ||
|
||
- name: Initialize swift-t settings | ||
run: | | ||
dev/build/init-settings.sh | ||
dev/github-actions/edit-settings.sh | ||
# TODO set swift-t install, R, python, and ?? | ||
# sed -i 's/original/new/g' file.txt | ||
# - run: | ||
# - 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 | ||
- name: Report Swift/T version info | ||
run: /tmp/swift-t-install/stc/bin/swift-t -v | ||
|
||
- name: Check that Swift/T runs | ||
run: /tmp/swift-t-install/stc/bin/swift-t -E 'trace(42);' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
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: | ||
- github_action_mac | ||
# - master | ||
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.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 tool.log | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: tool-log | ||
path: tool.log | ||
|
||
- name: Check tool.log | ||
run: | | ||
grep "setup-conda: SUCCESS" tool.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 | ||
path: anaconda.log | ||
|
||
- name: Check anaconda.log | ||
run: | | ||
grep "anaconda.sh: SUCCESS" tool.log | ||
- name: Report Swift/T version info | ||
run: /tmp/swift-t-install/stc/bin/swift-t -v | ||
|
||
- name: Check that Swift/T runs | ||
run: /tmp/swift-t-install/stc/bin/swift-t -E 'trace(42);' |
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
# CHECK | ||
# Run job, always return success for GitHub action | ||
# Allows us to capture artifacts and test for success later | ||
# Adds dev/github-actions to PATH to shorten commands | ||
|
||
echo "CHECK: ${*}" | ||
|
||
if [ ! -d dev/github-actions ] | ||
then | ||
echo "CHECK: MISCONFIGURATION!" | ||
exit 1 | ||
fi | ||
|
||
PATH=dev/github-actions:$PATH | ||
|
||
# Run the arguments here! | ||
if ! ${*} | ||
then | ||
echo "CHECK FAILED: ${*}" | ||
fi | ||
|
||
# Always succeeds. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
# SETTINGS SH | ||
# Edit swift-t-settings.sh via settings.sed | ||
# Assumes PWD is the top of the Swift/T clone | ||
# We immediately cd into /dev/ | ||
|
||
cd dev | ||
SETTINGS_SH=build/swift-t-settings.sh | ||
echo "Editing $SETTINGS_SH ..." | ||
sed -i -f github-actions/settings.sed build/swift-t-settings.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# sed edits to swift-t-settings.sh | ||
|
||
s/ENABLE_PYTHON=0/ENABLE_PYTHON=1/ | ||
s/MAKE_PARALLELISM=1/MAKE_PARALLELISM=4/ | ||
|
||
# Local Variables: | ||
# mode: sh; | ||
# End: |
Oops, something went wrong.