fix: remove Fortran zero-config workflow; rely on shell bridge for au… #1215
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: CI | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| name: Unit Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install gfortran | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y gfortran | |
| - name: Install Fortran Package Manager | |
| run: | | |
| curl -fsSL https://github.com/fortran-lang/fpm/releases/download/v0.10.1/fpm-0.10.1-linux-x86_64 -o fpm | |
| chmod +x fpm | |
| sudo mv fpm /usr/local/bin/ | |
| - name: Verify installations | |
| run: | | |
| gfortran --version | |
| fpm --version | |
| - name: Clean build artifacts | |
| run: | | |
| echo "Cleaning build artifacts for clean CI build..." | |
| rm -rf build/ | |
| find . -name "*.mod" -delete | |
| find . -name "*.o" -delete | |
| find . -name "*.out" -delete | |
| echo "Build artifacts cleaned" | |
| - name: Build project | |
| run: fpm build | |
| - name: Run unit tests | |
| run: fpm test --verbose |