Use ubuntu-latest in CI #165
Workflow file for this run
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: FortUTF macOS GFortran 15 | |
| on: [push] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: 'macOS Latest' | |
| runs-on: 'macos-latest' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup cmake | |
| uses: jwlawson/actions-setup-cmake@v2 | |
| with: | |
| cmake-version: '4.1.x' | |
| - name: Install GFortran macOS | |
| run: brew install gcc@15 | |
| - name: Build Tests | |
| run: | | |
| cmake -H. -Bbuild -DBUILD_TESTS=ON -DCMAKE_Fortran_COMPILER=$(which gfortran-15) | |
| cmake --build build | |
| - name: Run Tests | |
| run: | | |
| ./build/FortUTF_Tests | |
| if [ $? -eq 0 ]; then | |
| echo "Unit Tests completed succesfully" | |
| exit 0 | |
| else | |
| echo "Unit Tests failed" | |
| exit 1 | |
| fi | |
| - name: Run Test List | |
| run: | | |
| ./build/FortUTF_Tests TEST_FAIL_EQUAL_CHAR TEST_EQUAL_CHAR | |
| if [ $? -eq 0 ]; then | |
| echo "Unit Tests completed succesfully" | |
| exit 0 | |
| else | |
| echo "Unit Tests failed" | |
| exit 1 | |
| fi |