Skip to content

Commit e7aa950

Browse files
committed
Fix actions script
1 parent d400ebd commit e7aa950

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121

2222
- name: "Generate C++20 flowcharts"
2323
run: |
24+
set -eu -o pipefail
25+
2426
out='generation/gh-pages/std-2020'
2527
mkdir -- "$out"
2628
@@ -29,11 +31,13 @@ jobs:
2931
3032
- name: "Generate C++23 flowcharts"
3133
run: |
34+
set -eu -o pipefail
35+
3236
out='generation/gh-pages/std-2023'
3337
mkdir -- "$out"
3438
35-
cat cpp23/flowchart.dot.cpp | gcc -E - | dot -Tsvg -start=1000 > "$out"/initialization.svg
36-
cat cpp23/flowchart.dot.cpp | gcc -E - | dot -Tpng -start=1000 > "$out"/initialization.png
39+
(cd cpp23; cat flowchart.dot.cpp | gcc -E -) | dot -Tsvg -start=1000 > "$out"/initialization.svg
40+
(cd cpp23; cat flowchart.dot.cpp | gcc -E -) | dot -Tpng -start=1000 > "$out"/initialization.png
3741
3842
- name: Deploy generated flowcharts to Github Pages
3943
if: github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)