Skip to content

Commit a3733a3

Browse files
committed
250803.122303.CST revise the workflow files regarding os
1 parent aa0f02b commit a3733a3

File tree

5 files changed

+13
-16
lines changed

5 files changed

+13
-16
lines changed

.github/workflows/build_python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
# As of 20240501, macos-12/13 are AMD64, and macOS-14 is ARM64.
29-
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, windows-2019, windows-2022, macos-12, macos-13, macos-14]
28+
# As of 20250803 macos-13 is AMD64, and macOS-14 is ARM64.
29+
os: [ubuntu-22.04, ubuntu-24.04, ubuntu-latest, windows-2022, windows-2025, windows-latest, macos-13, macos-14, macos-latest]
3030

3131
steps:
3232
- name: Clone Repository (Latest)

.github/workflows/cmake.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
# See https://github.com/fortran-lang/setup-fortran?tab=readme-ov-file#runner-compatibility
3939
# for the toolchains provided by fortran-lang/setup-fortran. We test the latest three on each OS.
4040
# First define the toolchains on Linux and macOS.
41-
os: [ubuntu-latest, ubuntu-24.04, macos-12, macos-13]
41+
os: [ubuntu-22.04, ubuntu-latest, macos-13, macos-latest]
4242
toolchain:
4343
- {compiler: gcc, version: 11, cflags: '-Wall -Wextra -Wpedantic -Werror', fflags: '-Wall -Wextra -Wpedantic -Werror -fimplicit-none -fcheck=all -fstack-check -Wno-function-elimination'}
4444
- {compiler: gcc, version: 12, cflags: '-Wall -Wextra -Wpedantic -Werror', fflags: '-Wall -Wextra -Wpedantic -Werror -fimplicit-none -fcheck=all -fstack-check -Wno-function-elimination'}
@@ -52,19 +52,19 @@ jobs:
5252
# intel compiler (ifx) does not support macOS. So they are not included above but below.
5353
# Zaikun 20240423
5454
# On ubuntu-latest, we want to use '-Wall -w3 -Werror-all' as what we do for the intel-classic
55-
# compiler, but the (new) intel c compiler does not recognize '-W3 -Werror-all', even though the
55+
# compiler, but the (new) intel c compiler does not recognize '-w3 -Werror-all', even though the
5656
# official documentation of the compiler mentions them. Why?
57-
- os: ubuntu-latest
57+
- os: ubuntu-22.04
5858
toolchain: {compiler: intel, version: '2023.2', cflags: '-Wall -Werror', fflags: '-warn all -debug extended -fimplicit-none -standard-semantics'}
59-
- os: ubuntu-latest
59+
- os: ubuntu-22.04
6060
toolchain: {compiler: intel, version: '2024.0', cflags: '-Wall -Werror', fflags: '-warn all -debug extended -fimplicit-none -standard-semantics'}
61-
- os: ubuntu-latest
61+
- os: ubuntu-22.04
6262
toolchain: {compiler: intel, version: '2024.1', cflags: '-Wall -Werror', fflags: '-warn all -debug extended -fimplicit-none -standard-semantics'}
63-
- os: ubuntu-24.04
63+
- os: ubuntu-latest
6464
toolchain: {compiler: intel, version: '2023.2', cflags: '-Wall -Werror', fflags: '-warn all -debug extended -fimplicit-none -standard-semantics'}
65-
- os: ubuntu-24.04
65+
- os: ubuntu-latest
6666
toolchain: {compiler: intel, version: '2024.0', cflags: '-Wall -Werror', fflags: '-warn all -debug extended -fimplicit-none -standard-semantics'}
67-
- os: ubuntu-24.04
67+
- os: ubuntu-latest
6868
toolchain: {compiler: intel, version: '2024.1', cflags: '-Wall -Werror', fflags: '-warn all -debug extended -fimplicit-none -standard-semantics'}
6969

7070
# What follows contains the toolchains for Windows, including gcc, intel classic, and intel.

.github/workflows/profile_npt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
- name: Revise postprima.m
141141
run: |
142142
# The following modification is to show x, fx, funx, etc when the error InvalidFX occurs.
143-
cd matlab/interfaces/private
143+
cd matlab/interfaces/private || exit 42
144144
sed -i "s|\(^\s*if ~(isnan(fx) && isnan(funx))\)|format long; x, fx, funx, abs(fx-funx)/max(1, abs(fx)), bobyqa_prec, cobyla_prec\n\1|" postprima.m
145145
cat postprima.m
146146

.github/workflows/test_gfortran.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
os: [ubuntu-latest, windows-latest, macos-12, macos-13, macos-14]
30+
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
3131
compiler: [gcc]
3232
version: [12, 13] # Too expensive to test all versions
3333
ikind: [i2, i8]
@@ -78,7 +78,6 @@ jobs:
7878
which gfortran && gfortran --version
7979
8080
- name: Revise string.f90, so that we know what is happening if assertion fails
81-
if: ${{ matrix.os == 'macos-14' }}
8281
shell: bash
8382
run: |
8483
cd fortran/common || exit 42

.github/workflows/test_ifort.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ jobs:
2828
fail-fast: false
2929
matrix:
3030
# Windows does not work. On Windows, the options for ifort/ifx starts with "/" instead of "-".
31-
os: [ubuntu-latest, macos-12, macos-13]
31+
os: [ubuntu-latest, macos-13]
3232
ikind: [i2, i8]
3333
solver: [newuoa, cobyla, lincoa, bobyqa, uobyqa]
3434
fflags: [-O1, -O2, -O3, -g, -fast]
3535
testdim: [small, big]
3636
exclude:
37-
- os: macos-12
38-
ikind: i8
3937
- os: macos-13
4038
ikind: i8
4139

0 commit comments

Comments
 (0)