Skip to content

Commit 25d87dc

Browse files
committed
260222.085633.CET 0. revise .cirrus.yml; 1. remove actionlint from the workflow files; 2. add actionlint.yml
1 parent 5ebb088 commit 25d87dc

60 files changed

Lines changed: 51 additions & 298 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cirrus.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ task:
3636

3737
- name: AMD64 FreeBSD
3838
freebsd_instance:
39-
image_family: freebsd-14-0
39+
image_family: freebsd-16-0-snap
4040
architecture: amd64
4141

4242
# The following seems not available as of 20240409. See
@@ -47,9 +47,7 @@ task:
4747
# image_family: freebsd-14-0
4848
# architecture: arm64
4949

50-
5150
dependencies_script: |
52-
set -x
5351
set -euo pipefail
5452
5553
echo "MK=make" >> $CIRRUS_ENV
@@ -90,8 +88,7 @@ task:
9088
export CC=gcc
9189
CFLAGS="-Wall -Wextra -Wpedantic -Werror"
9290
export FC=gfortran
93-
#export FFLAGS='-Wall -Wextra -Wpedantic -Werror -fimplicit-none -frecursive -fcheck=all -fstack-check -Wno-function-elimination -Wno-trampolines'
94-
export FFLAGS='-Wall -Wextra -Wpedantic -Werror -fimplicit-none -frecursive -fcheck=all -fstack-check -Wno-function-elimination'
91+
export FFLAGS='-Wall -Wextra -Wpedantic -Werror -fimplicit-none -ftrampoline-impl=heap -frecursive -fcheck=all -fstack-check -Wno-function-elimination'
9592
9693
$FC --version
9794
$CC --version
@@ -108,7 +105,8 @@ task:
108105
cd $ROOT_DIR/fortran/tests
109106
110107
# Decide the solver to test by $(date + %N)
111-
SOLVER_NUM=$(($(date +%N) % 5))
108+
# The 10# prefix tells bash to interpret the number as base 10, regardless of leading zeros.
109+
SOLVER_NUM=$((10#$(date +%N) % 5))
112110
if [ $SOLVER_NUM -eq 0 ] ; then
113111
SOLVER=uobyqa
114112
elif [ $SOLVER_NUM -eq 1 ] ; then
@@ -123,11 +121,13 @@ task:
123121
echo $SOLVER_NUM $SOLVER
124122
125123
# Decide the integer kind to test by $(date +%N)
126-
IK=$((2**($(date +%N) % 3 + 1)))
124+
# The 10# prefix tells bash to interpret the number as base 10, regardless of leading zeros.
125+
IK=$((2**(10#$(date +%N) % 3 + 1)))
127126
echo $IK
128127
129128
# Decide the real kind to test by $(date +%N)
130-
RK=$((2**($(date +%N) % 3 + 2)))
129+
# The 10# prefix tells bash to interpret the number as base 10, regardless of leading zeros.
130+
RK=$((2**(10#$(date +%N) % 3 + 2)))
131131
echo $RK
132132
133133
$MK clean && $MK gtest_i${IK}_r${RK}_d1_tst.$SOLVER

.github/actions/spelling/allow.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2560,3 +2560,4 @@ sumxs
25602560
aoccflang
25612561
actionlint
25622562
timelimit
2563+
euo

.github/workflows/actionlint.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Lint the workflows
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
11+
jobs:
12+
13+
actionlint:
14+
name: actionlint
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
19+
- name: Checkout
20+
uses: actions/checkout@v6.0.2
21+
22+
- name: actionlint
23+
id: actionlint #optional, id required only when outputs are used in the workflow steps later
24+
uses: raven-actions/actionlint@v2
25+
with:
26+
matcher: false # optional
27+
cache: false # optional
28+
fail-on-error: false # optional
29+
files: ".github/workflows/*.yml"
30+
flags: "-ignore SC1090 -ignore SC2015 -ignore SC2028 -ignore SC2035 -ignore SC2046 -ignore SC2086 -ignore SC2155 -ignore SC2193 -ignore SC2242"
31+
32+
- name: actionlint Summary
33+
if: ${{ steps.actionlint.outputs.exit-code != 0 }} # example usage, do echo only when actionlint action failed
34+
run: |
35+
echo "Used actionlint version ${{ steps.actionlint.outputs.version-semver }}"
36+
echo "Used actionlint release ${{ steps.actionlint.outputs.version-tag }}"
37+
echo "actionlint ended with ${{ steps.actionlint.outputs.exit-code }} exit code"
38+
echo "actionlint ended because '${{ steps.actionlint.outputs.exit-message }}'"
39+
echo "actionlint found ${{ steps.actionlint.outputs.total-errors }} errors"
40+
echo "actionlint checked ${{ steps.actionlint.outputs.total-files }} files"
41+
echo "actionlint cache used: ${{ steps.actionlint.outputs.cache-hit }}"
42+
exit ${{ steps.actionlint.outputs.exit-code }}

.github/workflows/build_python.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ jobs:
4545
- name: Checkout pybind11 submodule
4646
run: git submodule update --init python/pybind11
4747

48-
- name: Lint the actions
49-
if: runner.os == 'Linux'
50-
uses: devops-actions/actionlint@v0.1.10
51-
with:
52-
shellcheck_opts: '-e SC1090 -e SC2015 -e SC2028 -e SC2035 -e SC2046 -e SC2086 -e SC2193'
5348

5449
- name: Set the MACOSX_DEPLOYMENT_TARGET
5550
if: ${{ runner.os == 'macOS' }}

.github/workflows/cmake.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,6 @@ jobs:
124124
fetch-depth: 0
125125
fetch-tags: true
126126

127-
- name: Lint the actions
128-
if: runner.os == 'Linux'
129-
uses: devops-actions/actionlint@v0.1.10
130-
with:
131-
shellcheck_opts: '-e SC1090 -e SC2015 -e SC2028 -e SC2035 -e SC2046 -e SC2086 -e SC2193'
132127

133128
- name: Miscellaneous setup
134129
shell: bash
@@ -210,11 +205,6 @@ jobs:
210205
ssh-key: ${{ secrets.SSH_PRIVATE_KEY_ACT }} # This forces checkout to use SSH, not HTTPS
211206
submodules: recursive
212207

213-
- name: Lint the actions
214-
if: runner.os == 'Linux'
215-
uses: devops-actions/actionlint@v0.1.10
216-
with:
217-
shellcheck_opts: '-e SC1090 -e SC2015 -e SC2028 -e SC2035 -e SC2046 -e SC2086 -e SC2193'
218208

219209
- name: Miscellaneous setup
220210
run: bash .github/scripts/misc_setup

.github/workflows/cmake_mac_nagfor.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ jobs:
5656
fetch-depth: 0
5757
fetch-tags: true
5858

59-
- name: Lint the actions
60-
if: runner.os == 'Linux'
61-
uses: devops-actions/actionlint@v0.1.10
62-
with:
63-
shellcheck_opts: '-e SC1090 -e SC2015 -e SC2028 -e SC2035 -e SC2046 -e SC2086 -e SC2193'
6459

6560
- name: Miscellaneous setup
6661
run: bash .github/scripts/misc_setup

.github/workflows/cmake_nagfor.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ jobs:
5252
ssh-key: ${{ secrets.SSH_PRIVATE_KEY_ACT }} # This forces checkout to use SSH, not HTTPS
5353
submodules: recursive
5454

55-
- name: Lint the actions
56-
if: runner.os == 'Linux'
57-
uses: devops-actions/actionlint@v0.1.10
58-
with:
59-
shellcheck_opts: '-e SC1090 -e SC2015 -e SC2028 -e SC2035 -e SC2046 -e SC2086 -e SC2193'
6055

6156
- name: Miscellaneous setup
6257
run: bash .github/scripts/misc_setup

.github/workflows/compile_mex.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ jobs:
9999
ref: ${{ github.event.inputs.git-ref }}
100100
submodules: recursive
101101

102-
- name: Lint the actions
103-
if: runner.os == 'Linux'
104-
uses: devops-actions/actionlint@v0.1.10
105-
with:
106-
shellcheck_opts: '-e SC1090 -e SC2015 -e SC2028 -e SC2035 -e SC2046 -e SC2086 -e SC2193'
107102

108103
- name: Miscellaneous setup
109104
run: bash .github/scripts/misc_setup

.github/workflows/lint_hosted.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ jobs:
5959
ssh-key: ${{ secrets.SSH_PRIVATE_KEY_ACT }} # This forces checkout to use SSH, not HTTPS
6060
submodules: recursive
6161

62-
- name: Lint the actions
63-
if: runner.os == 'Linux'
64-
uses: devops-actions/actionlint@v0.1.10
65-
with:
66-
shellcheck_opts: '-e SC1090 -e SC2015 -e SC2028 -e SC2035 -e SC2046 -e SC2086 -e SC2193'
6762

6863
- name: Miscellaneous setup
6964
run: export SWAP_SIZE=20 && bash .github/scripts/misc_setup

.github/workflows/lint_nagfor.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ jobs:
4343
ssh-key: ${{ secrets.SSH_PRIVATE_KEY_ACT }} # This forces checkout to use SSH, not HTTPS
4444
submodules: recursive
4545

46-
- name: Lint the actions
47-
if: runner.os == 'Linux'
48-
uses: devops-actions/actionlint@v0.1.10
49-
with:
50-
shellcheck_opts: '-e SC1090 -e SC2015 -e SC2028 -e SC2035 -e SC2046 -e SC2086 -e SC2193'
5146

5247
- name: Miscellaneous setup
5348
run: bash .github/scripts/misc_setup

0 commit comments

Comments
 (0)