File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 46
46
|| github.event_name == 'push' && github.ref == 'refs/heads/main' ]]
47
47
then
48
48
# Include GCC 9–13 for PRs to main
49
- MATRIX_JSON='{
49
+ MATRIX_JSON=$(cat <<EOF
50
+ {
50
51
"toolchain": [
51
52
{"compiler": "gcc", "version": 13},
52
53
{"compiler": "gcc", "version": 12},
@@ -56,20 +57,27 @@ jobs:
56
57
],
57
58
"std": ["f2008"],
58
59
"include": [
59
- "toolchain": {"compiler": "gcc", "version": 13},
60
- "std": "f2018"
60
+ {"toolchain": {"compiler": "gcc", "version": 13}, "std": "f2018"}
61
61
]
62
- }'
62
+ }
63
+ EOF
64
+ )
63
65
else
64
66
# Only GCC 13 for everything else
65
- MATRIX_JSON='{
67
+ MATRIX_JSON=$(cat <<EOF
68
+ {
66
69
"toolchain": [
67
70
{"compiler": "gcc", "version": 13}
68
71
],
69
72
"std": ["f2008, f2018"]
70
- }'
73
+ }
74
+ EOF
75
+ )
71
76
fi
77
+ # Convert json to compact line expected by github action
78
+ MATRIX_JSON=$(echo "$MATRIX_JSON" | jq -c .)
72
79
echo "matrix=${MATRIX_JSON}" >> $GITHUB_OUTPUT
80
+
73
81
GNU :
74
82
needs : setup-gnu-matrix
75
83
# The type of runner that the job will run on
You can’t perform that action at this time.
0 commit comments