Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
Signed-off-by: Kakadu <[email protected]>
  • Loading branch information
Kakadu committed Jul 30, 2024
1 parent 8cccb20 commit ce4f6a2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 18 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,10 @@ jobs:
#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-get update
Expand All @@ -60,7 +57,7 @@ jobs:
run: |
sudo apt-get install pkg-config libpcre2-dev -y
#opam install odoc pa_ppx --yes --depext
opam install odoc pa_ppx --yes
#opam install odoc pa_ppx --yes
- run: opam install . --deps-only --with-test --with-doc
- run: opam exec -- dune build @check --profile=release
Expand All @@ -75,11 +72,6 @@ jobs:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_NUMBER: ${{ github.event.number }}


- name: Build documentation
if: false
run: opam exec -- dune build -p GT @doc

- name: Installing using Opam
run: |
opam exec -- dune build @install
Expand All @@ -100,8 +92,8 @@ jobs:
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/OCanren' }}
if: false
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 }}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/master52.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
runs-on: ${{ matrix.os }}
container:
image: ocaml/opam:ubuntu-lts-ocaml-5.2
options: --user root # dirty hack
options: --user root # Kind of important dirty hack
#options: --user opam # dirty hack

steps:
- name: Checkout code
Expand All @@ -42,7 +43,7 @@ jobs:
sudo apt-get install pkg-config libpcre2-dev m4 -y
- run: opam --version

- name: Update submodules
- name: bisect many not work without it
run: |
git config --global --add safe.directory /__w/GT/GT
#git submodule update --init
Expand All @@ -58,7 +59,7 @@ jobs:
run: |
sudo apt-get install pkg-config libpcre2-dev -y
#opam install odoc pa_ppx --yes --depext
opam install odoc pa_ppx --yes
#opam install odoc pa_ppx --yes
- run: opam install . --deps-only --with-test --with-doc
- run: opam exec -- dune build --profile=release
Expand Down
2 changes: 1 addition & 1 deletion GT.opam
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ depends: [
"conf-m4" {build}
"odoc" {with-doc}
"odig" {with-doc}
"pa-ppx" {with-doc}
"pa_ppx" {with-doc}
]
build: [
["dune" "subst"] {dev}
Expand Down
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
(conf-m4 :build)
(odoc :with-doc)
(odig :with-doc)
(pa-ppx :with-doc)
(pa_ppx :with-doc)
;
))

Expand Down

0 comments on commit ce4f6a2

Please sign in to comment.