Skip to content

Commit 3b478ca

Browse files
authored
Merge pull request #388 from math-comp/close-changelog-1.6.0
prepare release
2 parents 961aaba + d61dd8c commit 3b478ca

File tree

3 files changed

+72
-2
lines changed

3 files changed

+72
-2
lines changed

.github/workflows/main.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ name: docker CI
77
on:
88
push:
99
branches: [ master ]
10+
tags: [ "v*.*.*" ]
1011
pull_request:
1112
branches: [ master ]
1213

@@ -62,3 +63,60 @@ jobs:
6263
./coq.hb reset `find . -name \*.v`
6364
mv _CoqProject.test-suite.bak _CoqProject.test-suite
6465
git diff --exit-code
66+
67+
release:
68+
runs-on: ubuntu-latest
69+
if: startsWith(github.ref, 'refs/tags/')
70+
needs: [opam]
71+
steps:
72+
- name: Checkout
73+
uses: actions/checkout@v3
74+
75+
- name: Inject slug/short variables
76+
uses: rlespinasse/github-slug-action@v4
77+
78+
- name: Create archive
79+
run: |
80+
VERSION="${GITHUB_REF_NAME_SLUG#v}"
81+
git archive -o hierarchy-builder-$VERSION.tar.gz --prefix=hierarchy-builder-$VERSION/ $GITHUB_SHA .
82+
83+
- name: Release
84+
uses: softprops/action-gh-release@v1
85+
with:
86+
files: hierarchy-builder-*.tar.gz
87+
fail_on_unmatched_files: true
88+
prerelease: true
89+
generate_release_notes: true
90+
name: Hierarchy Builder ${{ github.ref }}
91+
92+
- name: Use OCaml 4.14.x
93+
uses: avsm/setup-ocaml@v2
94+
with:
95+
ocaml-compiler: 4.14.x
96+
opam-local-packages: |
97+
!coq-hierarchy-builder*.opam
98+
99+
- name: Write PAT
100+
env:
101+
OPAM_PUBLISH_TOKEN: ${{ secrets.OPAM_PUBLISH_TOKEN }}
102+
run: |
103+
mkdir -p ~/.opam/plugins/opam-publish
104+
printf "$OPAM_PUBLISH_TOKEN" > ~/.opam/plugins/opam-publish/coqelpibot.token
105+
106+
- name: Setup SSH
107+
uses: webfactory/[email protected]
108+
with:
109+
ssh-private-key: ${{ secrets.BOT_SSH_KEY }}
110+
111+
- name: Install opam-publish # 2.0.3 because more recent versions do not respect OPAMYES
112+
run: opam install -y -j 2 opam-publish=2.0.3
113+
114+
- name: Publish
115+
run: |
116+
eval $(opam env)
117+
git config --global user.name coqelpibot
118+
git config --global user.email [email protected]
119+
OPAM_SUITE=released
120+
TAG=`git tag --sort=-v:refname|head -1`
121+
opam-publish --tag=$TAG --packages-directory=$OPAM_SUITE/packages --repo=coq/opam --no-browser -v ${TAG##v} https://github.com/math-comp/hierarchy-builder/releases/download/$TAG/hierarchy-builder-${TAG##v}.tar.gz
122+

Changelog.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# Changelog
22

3-
## UNRELEASED
3+
## [1.6.0] - 2023-09-20
4+
5+
Compatible with
6+
- Coq 8.16 with Coq-Elpi 1.15.x and 1.16.x
7+
- Coq 8.17 with Coq-Elpi 1.17.x and 1.18.x
8+
- Coq 8.18 with Coq-Elpi 1.19.x
9+
This version is required if Elpi is >= 1.17.0
10+
11+
### General
12+
13+
- **Speedup** speedup in coercion compression
14+
- **Speedup** accumulate clauses in batches (on Coq-Elpi >= 8.18.0)
15+
- **Change** remove generation of eta expanded instances (was unused)
416

517
## [1.5.0] - 2023-08-04
618

coq-hierarchy-builder.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build: [ [ make "build"]
1212
[ make "test-suite" ] {with-test}
1313
]
1414
install: [ make "install" ]
15-
depends: [ "coq-elpi" { (>= "1.15" & < "1.20~") | = "dev" } ]
15+
depends: [ "coq-elpi" { (>= "1.16" & < "1.20~") | = "dev" } ]
1616
conflicts: [ "coq-hierarchy-builder-shim" ]
1717
synopsis: "High level commands to declare and evolve a hierarchy based on packed classes"
1818
description: """

0 commit comments

Comments
 (0)