Skip to content

Commit

Permalink
GitHub-CI: Install Octave on runners and test stand-alone program
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Jan 18, 2024
1 parent 7a5bad2 commit a27e400
Showing 1 changed file with 64 additions and 7 deletions.
71 changes: 64 additions & 7 deletions .github/workflows/make.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,18 @@ jobs:
echo "history_file (make_absolute_filename ('./a/b/c/history')); disp ('test')" | ./.build/run-octave -i
[ -f ./a/b/c/history ] || echo "::warning::Creating history file failed"
- name: install
run: |
mkdir -p /usr/local
make -C ./.build install
- name: test stand-alone executable
continue-on-error: true
run: |
cd examples/code
mkoctfile --link-stand-alone embedded.cc -o embedded
LD_LIBRARY_PATH="/usr/local/lib" ./embedded
alpine:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -282,6 +294,8 @@ jobs:
test -d ~/.ccache || mkdir ~/.ccache
echo "max_size = 1G" >> ~/.ccache/ccache.conf
echo "compression = true" >> ~/.ccache/ccache.conf
ccache --version
ccache -p
ccache -s
echo "/usr/lib/ccache/bin" >> $GITHUB_PATH
Expand Down Expand Up @@ -375,6 +389,18 @@ jobs:
echo "history_file (make_absolute_filename ('./a/b/c/history')); disp ('test')" | ./.build/run-octave -i
[ -f ./a/b/c/history ] || echo "::warning::Creating history file failed"
- name: install
run: |
mkdir -p /usr/local
make -C ./.build install
- name: test stand-alone executable
continue-on-error: true
run: |
cd examples/code
mkoctfile --link-stand-alone embedded.cc -o embedded
LD_LIBRARY_PATH="/usr/local/lib" ./embedded
macos:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -581,6 +607,18 @@ jobs:
echo "history_file (make_absolute_filename ('./a/b/c/history')); disp ('test')" | ./.build/run-octave -i
[ -f ./a/b/c/history ] || echo "::warning::Creating history file failed"
- name: install
run: |
mkdir -p /Users/runner/usr
make -C ./.build install
- name: test stand-alone executable
continue-on-error: true
run: |
cd examples/code
mkoctfile --link-stand-alone embedded.cc -o embedded
LD_LIBRARY_PATH="/Users/runner/lib" ./embedded
mingw:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -819,18 +857,24 @@ jobs:
echo "history_file (make_absolute_filename ('./a/b/c/history')); disp ('test')" | ./.build/run-octave -i
[ -f ./a/b/c/history ] || echo "::warning::Creating history file failed"
- name: install and compress
if: matrix.msystem == 'MINGW64'
continue-on-error: true
- name: install
run: |
echo "::group::Installing Octave"
mkdir -p /c/octave/pkg
make -C ./.build DESTDIR=/c/octave/pkg install
echo "::endgroup::"
echo "::group::Compressing Octave package"
- name: test stand-alone executable
continue-on-error: true
run: |
cd examples/code
PATH="/c/octave/pkg/${{ matrix.mingw-prefix }}/bin:$PATH" mkoctfile --link-stand-alone embedded.cc -o embedded
PATH="/c/octave/pkg/${{ matrix.mingw-prefix }}/bin:$PATH" ./embedded.exe
- name: compress build artifact
if: matrix.msystem == 'MINGW64'
continue-on-error: true
run: |
cd /c/octave/pkg
tar -cvzf octave.tar.gz *
echo "::endgroup::"
- name: upload build artifact
if: matrix.msystem == 'MINGW64'
Expand Down Expand Up @@ -997,6 +1041,7 @@ jobs:
# FIXME: Fix building with Java support. Override JAVA_HOME for now.
# FIXME: How do we get a working TeX environment in Cygwin? Disable building the documentation for now.
run: |
echo $PATH
which $CC
echo $CC --version
$CC --version
Expand Down Expand Up @@ -1069,3 +1114,15 @@ jobs:
run: |
echo "history_file (make_absolute_filename ('./a/b/c/history')); disp ('test')" | ./.build/run-octave -i
[ -f ./a/b/c/history ] || echo "::warning::Creating history file failed"
- name: install
run: |
mkdir -p /usr/local
make -C ./.build install
- name: test stand-alone executable
continue-on-error: true
run: |
cd examples/code
mkoctfile --link-stand-alone embedded.cc -o embedded
LD_LIBRARY_PATH="/usr/local/lib" ./embedded

0 comments on commit a27e400

Please sign in to comment.