File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Validate Command 0.2.0
2+ on :
3+ push :
4+ branches : [main]
5+ paths : ['.github/workflows/validate-020.yml']
6+ permissions :
7+ contents : write
8+ jobs :
9+ validate :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ - name : Validate and report
14+ shell : bash
15+ run : |
16+ set +e
17+ {
18+ echo '=== CONFIGURE ==='
19+ cmake -S tests -B build
20+ c1=$?
21+ echo "configure_exit=$c1"
22+ if [ $c1 -eq 0 ]; then
23+ echo '=== BUILD ==='
24+ cmake --build build --parallel
25+ c2=$?
26+ else c2=99; fi
27+ echo "build_exit=$c2"
28+ if [ $c1 -eq 0 ] && [ $c2 -eq 0 ]; then
29+ echo '=== TEST ==='
30+ ctest --test-dir build --output-on-failure
31+ c3=$?
32+ else c3=99; fi
33+ echo "test_exit=$c3"
34+ } > validation.txt 2>&1
35+ cat validation.txt
36+ git config user.name "github-actions[bot]"
37+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
38+ mkdir -p .ci
39+ mv validation.txt .ci/command-020-validation.txt
40+ git add -- .ci/command-020-validation.txt
41+ git commit -m "chore: record Command 0.2.0 validation"
42+ git push origin HEAD:main
You can’t perform that action at this time.
0 commit comments