Skip to content

Commit

Permalink
initial octave support
Browse files Browse the repository at this point in the history
  • Loading branch information
mcg1969 committed Apr 9, 2024
1 parent beb58c0 commit 0fdcb74
Showing 1 changed file with 44 additions and 2 deletions.
46 changes: 44 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
branches:
- master
jobs:
build:
build-mex:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -33,8 +33,50 @@ jobs:
name: mexfiles-${{ matrix.os }}
path: |
Solver/Mexfun/*.mex*
build-oct:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest,windows-latest,macos-latest,macos-14]
steps:
- name: Retrieve the source code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Octave
shell: bash
run: |
if [ "${{ matrix.os }}" = ubuntu-latest ]; then
sudo apt update
sudo apt install --no-install-recommends octave
octave_dir=o_lin
elif [ "${{ matrix.os }}" = windows-latest ]; then
choco install octave.portable
octave_dir=o_win
else
brew install octave
if [ "${{ matrix.os }}" = macos-latest ]; then
octave_dir=o_maci
else
octave_dir=o_maca
fi
fi
echo "OCTAVE_DIR=$octave_dir" >> $GITHUB_ENV
- name: Build Octave mex files
shell: bash
run: |
octave_dir=Solver/Mexfun/$OCTAVE_DIR
octave --eval 'install_sdpt3'
mkdir -p $octave_dir
mv Solver/Mexfun/*.mex $octave_dir
- uses: actions/upload-artifact@v4
with:
name: mexfiles-oct-${{ matrix.os }}
path: |
Solver/Mexfun/$OCTAVE_DIR/*.mex*
package:
needs: build
needs: [build-mex,build-oct]
runs-on: ubuntu-latest
steps:
- name: Retrieve the source code
Expand Down

0 comments on commit 0fdcb74

Please sign in to comment.