Skip to content

Commit

Permalink
Merge pull request #852 from o1-labs/dw/fix-ci
Browse files Browse the repository at this point in the history
CI: make it happier
  • Loading branch information
dannywillems authored Dec 16, 2024
2 parents 5d6f0c3 + 91250e7 commit 2fcefed
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 44 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Check build

on:
[pull_request]
pull_request:

jobs:
check_build:
Expand All @@ -18,12 +18,13 @@ jobs:

steps:
- name: Get code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Use OCaml ${{ matrix.ocaml-version }}
uses: avsm/setup-ocaml@v1
uses: ocaml/setup-ocaml@v3
with:
ocaml-version: ${{ matrix.ocaml-version }}
ocaml-compiler: ${{ matrix.ocaml-version }}
disable-cache: true

- name: Build
run: |
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
name: ci

on:
[pull_request]
pull_request:

jobs:
docker-build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
uses: docker/setup-buildx-action@v1
- name: Checkout
uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
id: docker-build
with:
install: true
-
name: Build
- name: Build
run: |
docker build . # will run buildx
62 changes: 30 additions & 32 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,37 @@
name: Deploy Docs to GitHub Pages

on:
push:
branches:
- master
push:
branches:
- master

jobs:
release:
name: GitHub Pages
runs-on: ubuntu-latest
release:
name: GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2

steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Use OCaml "4.14.0"
uses: avsm/setup-ocaml@v1
with:
ocaml-version: 4.14.0

- name: Use OCaml "4.14.0"
uses: avsm/setup-ocaml@v1
with:
ocaml-version: 4.14.0

- name: Build Documentation
run: |
eval $(opam env)
opam pin add . -y
opam install odoc
make website
cd website/website
yarn
yarn build
pwd
ls
ls build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/website/build/snarky
- name: Build Documentation
run: |
eval $(opam env)
opam pin add . -y
opam install odoc
make website
cd website/website
yarn
yarn build
pwd
ls
ls build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/website/build/snarky

0 comments on commit 2fcefed

Please sign in to comment.