interplane.Get Omega
Read in your language

ggml

[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)

Brought by drakestapleton

branch master Branches Tags History

ggml / .github / workflows / make-release.yml

114 lines · 3831 bytes Raw Blame History
1name: Make Release
2
3on:
4 workflow_dispatch:
5 inputs:
6 commit:
7 description: 'Commit SHA to release (empty = branch HEAD)'
8 required: false
9 default: ''
10 type: string
11 dry_run:
12 description: 'Dry run - validate without creating the tag'
13 required: true
14 type: boolean
15 default: true
16 skip_apiabi_check:
17 description: 'Skip API/ABI compatibility check'
18 required: false
19 type: boolean
20 default: false
21 apiabi_compare_tag:
22 description: 'Tag to compare against for API/ABI check (default: latest release)'
23 required: false
24 type: string
25 default: ''
26
27env:
28 GH_TOKEN: ${{ github.token }}
29
30permissions:
31 contents: write
32
33jobs:
34 make-release:
35 runs-on: ubuntu-latest
36
37 steps:
38 - name: Checkout
39 uses: actions/checkout@v6
40 with:
41 ssh-key: ${{ secrets.DEPLOY_KEY_RELEASE }}
42 ref: ${{ inputs.commit != '' && inputs.commit || github.ref_name }}
43 fetch-depth: 0
44
45 - name: Install API/ABI check tools
46 if: ${{ github.event.inputs.skip_apiabi_check != 'true' }}
47 run: sudo apt-get install -y abi-compliance-checker abigail-tools
48
49 - name: Run release checks
50 id: checks
51 run: bash scripts/make-release-checks.sh ${{ github.event.inputs.dry_run == 'true' && '--dry-run' || '' }}
52 env:
53 GITHUB_REPOSITORY: ${{ github.repository }}
54 RELEASE_BRANCH: ${{ github.ref_name }}
55 SKIP_APIABI_CHECK: ${{ github.event.inputs.skip_apiabi_check }}
56 APIABI_COMPARE_TAG: ${{ github.event.inputs.apiabi_compare_tag }}
57 APIABI_REPORT_DIR: ${{ runner.temp }}/apiabi-reports
58
59 - name: Upload API/ABI reports
60 if: ${{ always() && github.event.inputs.skip_apiabi_check != 'true' }}
61 uses: actions/upload-artifact@v7
62 with:
63 name: apiabi-reports
64 path: ${{ runner.temp }}/apiabi-reports
65 if-no-files-found: ignore
66
67 - name: Create release tag
68 if: ${{ github.event.inputs.dry_run == 'false' }}
69 run: |
70 VERSION="${{ steps.checks.outputs.version }}"
71 git config user.name "github-actions[bot]"
72 git config user.email "github-actions[bot]@users.noreply.github.com"
73 git tag -a "${VERSION}" -m "Release ${VERSION}"
74 git push origin "${VERSION}"
75 echo "Created and pushed tag ${VERSION}"
76
77 - name: Generate release description
78 id: desc
79 run: bash scripts/make-release-desc.sh "${{ steps.checks.outputs.version }}"
80 env:
81 GITHUB_REPOSITORY: ${{ github.repository }}
82
83 - name: Create release
84 if: ${{ github.event.inputs.dry_run == 'false' }}
85 uses: ggml-org/action-create-release@v1
86 env:
87 GITHUB_TOKEN: ${{ github.token }}
88 with:
89 tag_name: ${{ steps.checks.outputs.version }}
90 prerelease: false
91 # TODO: enrich the body of the release with more information
92 body: |
93 ## Overview
94
95 New version has been released.
96
97 ## More info
98
99 - [Releases and versioning of `ggml-org` projects](https://github.com/ggml-org/ggml/discussions/1579)
100
101 ## ${{ steps.desc.outputs.changelog_title }}
102
103 ${{ steps.desc.outputs.changelog }}
104
105 - name: Dry run summary
106 if: ${{ github.event.inputs.dry_run == 'true' }}
107 run: |
108 if [[ "${{ steps.checks.outputs.checks_passed }}" == "true" ]]; then
109 echo "Dry run complete - all checks passed."
110 echo "Would have created tag: ${{ steps.checks.outputs.version }}"
111 else
112 echo "::error::Dry run found release check failures. A release tag would not be created."
113 exit 1
114 fi