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+ on :
2+ workflow_dispatch : # run the workflow manually
3+
4+ concurrency :
5+ group : ${{ github.workflow }}-${{ github.ref }}
6+ cancel-in-progress : true # Cancel any in-progress runs of this workflow when a new run is triggered on the same ref (branch or tag)
7+
8+ permissions :
9+ contents : write
10+
11+ env :
12+ RELEASE : " v3.3.0-draft"
13+
14+ name : bundle
15+ jobs :
16+ build :
17+ name : Bundle mimalloc release
18+ runs-on : ${{ matrix.os }}
19+ strategy :
20+ matrix :
21+ # we build on the oldest ubuntu version for better binary compatibility.
22+ branch : [dev,dev2,dev3]
23+ os : [windows-latest, macOS-latest, ubuntu-22.04]
24+
25+ steps :
26+ # Checkout: https://github.com/actions/checkout
27+ - name : Checkout repository
28+ uses : actions/checkout@v6
29+ ref : ${{ matrix.branch }}
30+
31+ # Build
32+ - name : Build (Windows)
33+ if : runner.os == "Windows"
34+ run : ./bin/bundle.bat
35+
36+ - name : Build (Linux, macOS)
37+ if : runner.os != "Windows"
38+ run : ./bin/bundle.sh
39+
40+ # Create a release: https://github.com/softprops/action-gh-release (MIT license)
41+ - name : Release
42+ uses : softprops/action-gh-release@v2
43+ if : $RELEASE != "" && $RELEASE != "no"
44+ with :
45+ name : $RELEASE
46+ draft : true
47+ files : |
48+ out/bundle/*.tar.gz
49+ # body_path: release.md
50+
You can’t perform that action at this time.
0 commit comments