Skip to content

Commit

Permalink
[CI] Test the Julia interface GALAHAD.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Jan 13, 2024
1 parent cf8da09 commit 57d80f1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ task:
- name: FreeBSD
freebsd_instance:
image: freebsd-13-2-release-amd64
env:
- JULIA_VERSION: 1
- name: MacOS M1
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-base:latest
env:
- JULIA_VERSION: 1
dependencies_script: |
echo $(uname)
if [ "$(uname)" = "FreeBSD" ]; then
Expand All @@ -17,9 +21,29 @@ task:
pip3 install numpy
echo "JULIA_GALAHAD_LIBRARY_PATH=/opt/homebrew/lib" >> $CIRRUS_ENV
fi
echo "JULIA_PROJECT_SUBDIR=GALAHAD.jl" >> $CIRRUS_ENV
echo "GALAHAD=$CIRRUS_WORKING_DIR" >> $CIRRUS_ENV
echo "OMP_CANCELLATION=TRUE" >> $CIRRUS_ENV
echo "OMP_PROC_BIND=TRUE" >> $CIRRUS_ENV
julia_install_script: |
# URL="https://raw.githubusercontent.com/ararslan/CirrusCI.jl/master/bin/install.sh"
URL="https://raw.githubusercontent.com/amontoison/CirrusCI.jl/package_subfolder/bin/install.sh"
set -x
if [ "$(uname -s)" = "Linux" ] && command -v apt; then
apt update
apt install -y curl
fi
if command -v curl; then
sh -c "$(curl ${URL})"
elif command -v wget; then
sh -c "$(wget ${URL} -q -O-)"
elif command -v fetch; then
sh -c "$(fetch ${URL} -o -)"
fi
julia_build_script: |
cirrusjl build
julia_test_script: |
cirrusjl test
configure_script: |
if [ "$(uname -s)" = "FreeBSD" ]; then
FC=gfortran12 CC=gcc12 CXX=g++12 meson setup builddir --buildtype=debug -Dexamples=true -Dtests=true -Dpythoniface=true
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,10 @@ jobs:
with:
name: ${{ matrix.os }}_${{ matrix.compiler }}_${{ matrix.version }}_testlog.txt
path: builddir/meson-logs/testlog.txt

- name: Install Julia
uses: julia-actions/setup-julia@v1

- name: Test GALAHAD.jl
shell: bash
run: julia --color=yes -e 'using Pkg; Pkg.develop(path="GALAHAD.jl"); Pkg.test("GALAHAD")

0 comments on commit 57d80f1

Please sign in to comment.