Update CompFlatteningConverter.cpp #244
Workflow file for this run
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
name: Octave | |
on: [push] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: update | |
if: matrix.os == 'ubuntu-latest' | |
shell: bash | |
run: | | |
sudo apt-get update | |
- name: add linux dependencies | |
if: matrix.os == 'ubuntu-latest' | |
shell: bash | |
run: | | |
sudo apt-get install swig liboctave-dev | |
- name: Create Build Environment | |
# Some projects don't allow in-source building, so create a separate build directory | |
# We'll use this as our working directory for all subsequent commands | |
run: cmake -E make_directory ${{runner.workspace}}/build | |
- name: Configure | |
# build dependencies | |
working-directory: ${{runner.workspace}}/build | |
shell: bash | |
run: | | |
cmake -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DWITH_BZIP2=ON -DWITH_CHECK=OFF -DWITH_EXPAT=ON -DWITH_LIBXML=OFF -DWITH_OCTAVE=ON -DWITH_STABLE_PACKAGES=ON $GITHUB_WORKSPACE | |
- name: Build | |
working-directory: ${{runner.workspace}}/build | |
shell: bash | |
# Execute the build. You can specify a specific target with "--target <NAME>" | |
run: cmake --build . --config $BUILD_TYPE | |
- name: Install Strip | |
working-directory: ${{runner.workspace}}/build | |
run: cmake --install . --prefix instdir --strip | |
- name: Pack | |
working-directory: ${{runner.workspace}}/build/instdir | |
run: cmake -E tar cvzf ../octave_${{ matrix.os }}.tar.gz . | |
- name: Test | |
working-directory: ${{runner.workspace}}/build/instdir/lib/octave/site/oct/x86_64-pc-linux-gnu/test | |
shell: bash | |
run: LD_LIBRARY_PATH=../../../../.. octave --eval "runTests()" | |
- name: Upload | |
uses: actions/upload-artifact@v1 | |
with: | |
path: ${{runner.workspace}}/build/octave_${{ matrix.os }}.tar.gz | |
name: octave_${{ matrix.os }}.tar.gz |