diff --git a/.github/workflows/make.yaml b/.github/workflows/make.yaml index b46853a1a2..c40e8004ad 100644 --- a/.github/workflows/make.yaml +++ b/.github/workflows/make.yaml @@ -163,6 +163,17 @@ 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: | + sudo make -C ./.build install + + - name: test stand-alone executable + run: | + cd examples/code + mkoctfile --link-stand-alone embedded.cc -o embedded + LD_LIBRARY_PATH="/usr/local/lib/octave/$(octave --eval "disp(version())")" \ + ./embedded + alpine: runs-on: ubuntu-latest @@ -282,6 +293,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 @@ -375,6 +388,16 @@ 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: | + sudo make -C ./.build install + + - name: test stand-alone executable + run: | + cd examples/code + mkoctfile --link-stand-alone embedded.cc -o embedded + LD_LIBRARY_PATH="/usr/local/lib/octave/$(octave --eval "disp(version())")" ./embedded + macos: runs-on: ${{ matrix.os }} @@ -581,6 +604,19 @@ 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 + PATH="/Users/runner/usr/bin:$PATH" CXX="${CXX} ${{ matrix.cxx-compiler-flags }}" \ + mkoctfile --link-stand-alone embedded.cc -o embedded + ./embedded + mingw: runs-on: ${{ matrix.os }} @@ -609,6 +645,7 @@ jobs: f77: gfortran extra-config-flags: "" ccache-max: 0.9G + allow-error: false - msystem: CLANG64 mingw-prefix: clang64 target-prefix: mingw-w64-clang-x86_64 @@ -620,10 +657,11 @@ jobs: # autoconf and libtool still need help to correctly invoke flang. extra-config-flags: --disable-lib-visibility-flags - --enable-fortran-calling-convention=gfortran ac_cv_f77_compiler_gnu=yes lt_cv_prog_gnu_ld=yes ccache-max: 400M + # This configuration is not fully supported yet + allow-error: true env: CHERE_INVOKING: 1 @@ -745,6 +783,7 @@ jobs: # FIXME: Fix building with Java support. Override JAVA_HOME for now. # FIXME: How do we get a working TeX environment in MSYS2? Disable building the documentation for now. run: | + echo $PATH which $CC echo $CC --version $CC --version @@ -819,18 +858,26 @@ 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: ${{ matrix.allow-error }} + run: | + cd examples/code + export PATH=$(echo "$PATH" | sed -e "s|$MINGW_PREFIX/lib/ccache/bin:||g") + export PATH="/c/octave/pkg/${{ matrix.mingw-prefix }}/bin:$PATH" + mkoctfile --link-stand-alone embedded.cc -o embedded + ./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' @@ -997,6 +1044,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 @@ -1069,3 +1117,14 @@ 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: | + make -C ./.build install + + - name: test stand-alone executable + run: | + export PATH=$(echo "$PATH" | sed -e "s|/usr/lib/ccache/bin:||g") + cd examples/code + mkoctfile --link-stand-alone embedded.cc -o embedded + ./embedded.exe