-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kakadu <[email protected]>
- Loading branch information
Showing
6 changed files
with
134 additions
and
44 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name: Build master in docker | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'master' | ||
# pull_request: | ||
# branches: | ||
# - 'master' | ||
push: | ||
branches: | ||
- 'master' | ||
|
@@ -22,64 +22,75 @@ jobs: | |
matrix: | ||
os: | ||
- ubuntu-latest | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
runs-on: ${{ matrix.os }} | ||
container: | ||
image: ocaml/opam:ubuntu-lts-ocaml-4.14 | ||
options: --user root # dirty hack | ||
options: --user root # Kind of important dirty hack | ||
#options: --user opam # dirty hack | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- run: sudo apt update | ||
- run: | | ||
sudo apt-get update | ||
sudo apt-get install pkg-config libpcre2-dev m4 -y | ||
- run: opam --version | ||
|
||
- run: | | ||
- name: bisect many not work without it | ||
run: | | ||
git config --global --add safe.directory /__w/GT/GT | ||
git submodule update --init | ||
- run: opam pin add GT . --no-action | ||
- run: opam depext GT --yes #--with-test | ||
#git submodule update --init | ||
- name: Install dependecies for documentation | ||
run: | | ||
sudo apt-get install pkg-config libpcre2-dev -y | ||
#opam install odoc pa_ppx --yes --depext | ||
opam install odoc pa_ppx --yes | ||
- run: opam install . --deps-only #--with-test | ||
- run: opam exec -- dune build --profile=release | ||
- run: opam exec -- dune test --profile=release | ||
- run: opam install . --deps-only --with-test --with-doc | ||
- run: opam exec -- dune build @check --profile=release | ||
- run: opam exec -- dune test --profile=release | ||
|
||
- name: Build documentation | ||
run: opam exec -- dune build -p GT @doc | ||
- name: Send coverage report to Coveralls | ||
run: | | ||
opam exec -- make coverage | ||
opam exec -- bisect-ppx-report send-to Coveralls --coverage-path $BISECT_DIR | ||
env: | ||
BISECT_DIR: /tmp/GTcov | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PULL_REQUEST_NUMBER: ${{ github.event.number }} | ||
|
||
- name: Installing using Opam | ||
run: | | ||
opam exec -- dune build @install | ||
opam exec -- dune install | ||
- name: List files | ||
run: opam show --list-files GT | ||
|
||
- name: Deploy documentation | ||
if: ${{ github.event.pull_request.head.repo.full_name == 'PLTools/OCanren' }} | ||
#if: ${{ github.event.pull_request.head.repo.full_name == 'PLTools/OCanren' }} | ||
if: false | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./_build/default/_doc/_html | ||
|
||
- name: Send coverage report to Coveralls | ||
- name: Build API documentation | ||
if: github.event_name != 'pull_request' | ||
run: | | ||
#git config --global --add safe.directory /__w/zanuda/zanuda | ||
opam exec -- make coverage | ||
opam exec -- bisect-ppx-report send-to Coveralls --coverage-path $BISECT_DIR | ||
env: | ||
BISECT_DIR: /tmp/GTcov | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PULL_REQUEST_NUMBER: ${{ github.event.number }} | ||
opam exec -- make install odig | ||
echo "ODIG_DOC_LOC=$(opam exec -- odig cache path)/html" >> $GITHUB_ENV | ||
- name: Deploy documentation | ||
#if: ${{ github.event.pull_request.head.repo.full_name == 'PLTools/GT' }} | ||
#if: false | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ${{ env.ODIG_DOC_LOC }} | ||
|
||
- name: List files | ||
run: opam show --list-files GT |
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,64 @@ | ||
name: Build master in docker (OCaml 5.2) | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
paths-ignore: | ||
- 'README.md' | ||
|
||
env: | ||
OPAMROOT: /home/opam/.opam | ||
OPAMCONFIRMLEVEL: unsafe-yes | ||
GT_WITH_DOCS: yes | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
runs-on: ${{ matrix.os }} | ||
container: | ||
image: ocaml/opam:ubuntu-lts-ocaml-5.2 | ||
options: --user root # Kind of important dirty hack | ||
#options: --user opam # dirty hack | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- run: | | ||
sudo apt-get update | ||
sudo apt-get install pkg-config libpcre2-dev m4 -y | ||
- run: opam --version | ||
|
||
- name: bisect many not work without it | ||
if: false #we will not run coverage in 5.2 | ||
run: | | ||
git config --global --add safe.directory /__w/GT/GT | ||
#git submodule update --init | ||
- name: Install dependecies for documentation | ||
run: | | ||
sudo apt-get install pkg-config libpcre2-dev -y | ||
- run: opam install . --deps-only --with-test --with-doc | ||
- run: opam exec -- dune build @check --profile=release | ||
- run: opam exec -- dune test --profile=release | ||
|
||
- name: Installing using Opam | ||
run: | | ||
opam exec -- dune build @install | ||
opam exec -- dune install | ||
- name: List files | ||
run: opam show --list-files GT |
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
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
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
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