dimensions and consistency analysis cleanup. #81
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: ASCEND4 MSYS2 | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ $default-branch, python3, master, main ] | |
pull_request: | |
branches: [ $default-branch, python3, master, main ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
strategy: | |
matrix: | |
include: | |
# - { sys: mingw64, env: x86_64 } | |
# - { sys: mingw32, env: i686 } | |
- { sys: ucrt64, env: ucrt-x86_64 } | |
# - { sys: clang64, env: clang-x86_64 } | |
steps: | |
- uses: msys2/setup-msys2@v2 | |
with: | |
msystem: ${{matrix.sys}} | |
update: true | |
install: >- | |
git swig subversion make flex bison | |
mingw-w64-${{matrix.env}}-toolchain | |
mingw-w64-${{matrix.env}}-gsl | |
mingw-w64-${{matrix.env}}-gcc | |
mingw-w64-${{matrix.env}}-gtk2 | |
mingw-w64-${{matrix.env}}-binutils | |
mingw-w64-${{matrix.env}}-pkg-config | |
mingw-w64-${{matrix.env}}-python | |
mingw-w64-${{matrix.env}}-python-pip | |
mingw-w64-${{matrix.env}}-python-wheel | |
mingw-w64-${{matrix.env}}-python-matplotlib | |
- name: Install Python dependencies | |
run: | | |
python3 -m pip install scons | |
- name: Build and install CUnit | |
run: | | |
svn co https://svn.code.sf.net/p/cunit/code/branches/mingw64 cunit | |
cd cunit | |
./configure --prefix=$HOME/.local | |
make -j8 | |
make install | |
- uses: actions/checkout@v4 | |
- name: Build ASCEND | |
run: | | |
mkdir -p ~/.local | |
MSYSTEM= scons GCOV=1 MALLOC_DEBUG=1 CUNIT_PREFIX=$HOME/.local ascend solvers models test a4 | |
- name: Test ASCEND | |
run: | | |
./a4 script `which bash` test/test_expectpass_mallocdebug | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
gcov: true | |
flags: msys, cunit | |
# vim: ts=2:sw=2:et | |