Lint the Fortran code and the MEX gateways with nagfor #7
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: Lint the Fortran code and the MEX gateways with nagfor | |
on: | |
# Trigger the workflow on push or pull request | |
#push: | |
#pull_request: # DANGEROUS! MUST be disabled for self-hosted runners! | |
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC. | |
schedule: | |
- cron: '0 17 * * *' | |
# Trigger the workflow manually | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Lint the Fortran code and the MEX gateways with nagfor | |
runs-on: [self-hosted, nagfor] | |
strategy: | |
fail-fast: false | |
matrix: | |
solver: [newuoa, cobyla, lincoa, bobyqa, uobyqa] | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
ssh-key: ${{ secrets.SSH_PRIVATE_KEY_ACT }} # This forces checkout to use SSH, not HTTPS | |
submodules: recursive | |
- name: Miscellaneous setup | |
run: bash .github/scripts/misc_setup | |
- name: Conduct the test | |
run: | | |
source ~/.bashrc | |
export PATH=$PATH:"~/local/bin" | |
source ~/local/bin/nag_licensing || (echo "\n\nNAG licensing failed.\n\n" && exit 2) | |
cd "$ROOT_DIR"/fortran/${{ matrix.solver }} | |
if [[ $(($(date +%d) % 2)) == 0 ]] ; then | |
bash ./flint -n --all | |
else | |
bash ./mlint -n --all | |
fi |