Skip to content

addressing various compiler warnings #73

addressing various compiler warnings

addressing various compiler warnings #73

Workflow file for this run

name: ASCEND4 ubuntu
on:
workflow_dispatch:
push:
branches: [ $default-branch, python3, master, main ]
pull_request:
branches: [ $default-branch, python3, master, main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v4
- name: Use a different Ubuntu mirror
run: |
sudo sed -i 's/azure\.archive\.ubuntu\.com/mirror\.lostpacket\.org/' /etc/apt/sources.list
sudo cat /etc/apt/sources.list
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install automake autoconf libtool build-essential gfortran flex bison scons swig doxygen tcl8.6 tcl8.6-dev tk8.6 tk8.6-dev tk-table graphviz libgraphviz-dev python3-dev libgtk-3-dev python-gi python-numpy liblapack-dev libblas-dev libsundials-dev coinor-libipopt-dev libmumps-seq-dev libpcre3-dev
- name: Build and install CUnit
run: |
svn co https://svn.code.sf.net/p/cunit/code/branches/mingw64 cunit
cd cunit
./bootstrap
./configure --prefix=$HOME/.local --enable-examples --enable-debug
make -j8
make install
- name: Build ASCEND
run: |
scons GCOV=1 CUNIT_PREFIX=$HOME/.local MALLOC_DEBUG=1 ascend models solvers ascxx pygtk test a4
- name: ASCEND CUnit tests
run: |
./a4 script test/test_expectpass_mallocdebug
- name: FPROPS CUnit tests
run: |
./a4 script models/johnpye/fprops/test/cutest
- name: ASCEND C++/Python wrapper tests
run: |
./a4 script ascxx/testslvreq
./a4 script ascxx/testipopt
- name: ASCEND FPROPS external function test
run: |
./a4 run models/johnpye/fprops/rankine_fprops.a4c -m stream_state_test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
gcov: true
flags: ubuntu, cunit
# vim: ts=2:sw=2:et