Skip to content

Commit

Permalink
Replace make_release by the Release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Halbaroth committed Oct 30, 2023
1 parent 840c904 commit 33a09ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 27 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,27 +79,3 @@ jobs:
uses: getsentry/action-git-diff-suggestions@main
with:
message: 'The following changes have been made after `make`:'

make_release:
name: Make package release
runs-on: ubuntu-latest

if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next'

steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Use OCaml ${{ env.OCAML_DEFAULT_VERSION }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ env.OCAML_DEFAULT_VERSION }}
dune-cache: true

- name: Install dependencies
run: opam exec -- make deps

- name: Run make install
run: opam exec -- make install
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Release

on:
pull_request:
push:
branches:
- 'v*.*.x'

env:
OCAML_DEFAULT_VERSION: 5.0.0
OPAMYES: true

jobs:
Expand All @@ -17,10 +18,10 @@ jobs:
with:
persist-credentials: false

- name: Use OCaml 5.0.0
- name: Use OCaml ${{ env.OCAML_DEFAULT_VERSION }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 5.0.0
ocaml-compiler: ${{ env.OCAML_DEFAULT_VERSION }}
dune-cache: true

- name: Install dependencies
Expand Down

0 comments on commit 33a09ff

Please sign in to comment.