File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Regression tests
22
33on :
4- push :
5- branches : [ master ]
6- pull_request :
7- branches : [ master ]
4+ # push:
5+ # branches: [ master ]
6+ # pull_request:
7+ # branches: [ master ]
88
99jobs :
1010
Original file line number Diff line number Diff line change 11name : Build/publish release binaries (Linux, Mac)
22
3+ # Also build/publish a prism-X.Y-src.tar.gz
4+
35on :
6+ push :
7+ branches : [ master ]
8+ pull_request :
9+ branches : [ master ]
410# push:
511# # Trigger on version tags: v4.10 etc.
612# tags:
2026
2127jobs :
2228
29+ build_src :
30+ runs-on : ubuntu-latest
31+ steps :
32+ - uses : actions/checkout@v4
33+ with :
34+ # Use the tag from manual input, otherwise fall back to the git ref
35+ ref : ${{ github.event.inputs.tag_name || github.ref }}
36+ fetch-depth : 0 # Fetches all tags and history
37+ - name : Build source
38+ shell : bash
39+ working-directory : ./prism
40+ run : |
41+ make release_source BRANCH=HEAD
42+ - name : Upload artifact
43+ uses : actions/upload-artifact@v4
44+ with :
45+ name : prism-src
46+ path : prism/release/*.tar.gz
47+
2348 build :
2449 strategy :
2550 matrix :
90115 etc/tests/run.sh
91116
92117 publish :
93- needs : [build, test_release]
118+ needs : [build_src, build, test_release]
94119 runs-on : ubuntu-latest
95120 permissions :
96121 # Crucial for creating releases
Original file line number Diff line number Diff line change @@ -625,11 +625,12 @@ build_release:
625625release_source : release_check_version build_release_source
626626
627627build_release_source :
628- @ echo Creating source distribution from branch " $( BRANCH) " in " release/$( SRC_DIST_FILE) " ... && \
628+ echo Creating source distribution from branch " $( BRANCH) " in " release/$( SRC_DIST_FILE) " ... && \
629629 mkdir -p release && \
630630 rm -rf " release/$( SRC_DIST_DIR) " && \
631631 rm -f " release/$( SRC_DIST_FILE) " && \
632632 mkdir -p " release/$( SRC_DIST_DIR) " && \
633+ git branch --v && \
633634 (cd .. && git archive $( BRANCH) --format=tar) | tar xf - -C " release/$( SRC_DIST_DIR) " && \
634635 (cd release && tar cfz " $( SRC_DIST_FILE) " " $( SRC_DIST_DIR) " ) && rm -rf " release/$( SRC_DIST_DIR) "
635636
You can’t perform that action at this time.
0 commit comments