CHG: Updating CMakeList.txt minimum version requirement #79
This file contains hidden or 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: Casal2 Linux Build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master ## this will run actions on current branch, to change to main, needed for testing. all branches '*' | |
| ## taken from https://keithweaverca.medium.com/only-run-github-actions-on-specific-branches-694782fcc07 | |
| ## for a release idea linux is fairly easy | |
| ## for windows look at this example https://github.com/freenet/wininstaller-innosetup/actions/runs/768471071/workflow | |
| jobs: | |
| Compile-Casal2-Linux: | |
| # should run on linux based operating system | |
| # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 180 | |
| env: | |
| CC: gcc-14 | |
| CXX: g++-14 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - name: Install python dependencies | |
| run: pip install pytz python-dateutil --user --upgrade pip | |
| - name: Install gcc | |
| uses: egor-tensin/setup-gcc@v1 | |
| with: | |
| version: 14 | |
| platform: x86 | |
| - name: Build third-party library - release | |
| run: | | |
| cd BuildSystem | |
| ./doBuild.sh thirdparty | |
| - name: Build release library | |
| run: | | |
| cd BuildSystem | |
| ./doBuild.sh test | |
| - name: Run Unit Tests from frontend build | |
| run: | | |
| cd BuildSystem/bin/linux_gcc/test | |
| ./casal2 | |
| - name: Build release library | |
| run: | | |
| cd BuildSystem | |
| ./doBuild.sh library release | |
| - name: Build "Betadiff" library | |
| run: | | |
| cd BuildSystem | |
| ./doBuild.sh library betadiff | |
| - name: Build "ADOL-C" library | |
| run: | | |
| cd BuildSystem | |
| ./doBuild.sh library adolc | |
| - name: Build "Unit Test" library | |
| run: | | |
| cd BuildSystem | |
| ./doBuild.sh library test | |
| - name: Build Frontend | |
| run: | | |
| cd BuildSystem | |
| ./doBuild.sh frontend | |
| shell: bash | |
| - name: Build Linux Archive | |
| continue-on-error: true | |
| run: | | |
| cd BuildSystem | |
| ./doBuild.sh archive true | |
| shell: bash | |
| - name: Run Linux model runner | |
| continue-on-error: true | |
| run: | | |
| cd BuildSystem | |
| ./doBuild.sh modelrunner | |
| # - name: Run Unit Tests from frontend build | |
| # run: | | |
| # cd BuildSystem/Casal2 | |
| # ./casal2 --unittest | |
| # - name: Archive Linux build | |
| # continue-on-error: true | |
| # uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: Casal2-Linux-build | |
| # path: BuildSystem/Casal2 | |
| # retention-days: 1 | |
| # overwrite: true |