-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds a release workflow that build an artefact with dune-release. The workflow runs only on branch `v*.*.x`. Should be tested on the branch `v2.5.x`.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Release | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'v*.*.x' | ||
|
||
env: | ||
OPAMYES: true | ||
|
||
jobs: | ||
dune_release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Use OCaml 5.0.0 | ||
uses: ocaml/setup-ocaml@v2 | ||
with: | ||
ocaml-compiler: 5.0.0 | ||
dune-cache: true | ||
|
||
- name: Install dependencies | ||
run: opam exec -- make deps | ||
|
||
- name: Install dune-release | ||
run: opam install dune-release | ||
|
||
- name: Build the distribution archive | ||
run: opam exec -- dune-release distrib | ||
|
||
- name: Upload the artefact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: distribution archive | ||
path: _build/alt-ergo-*.tbz |