mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-05 03:25:04 +00:00
Update docs.yml
This commit is contained in:
parent
5f5891d064
commit
5da657926e
24
.github/workflows/docs.yml
vendored
24
.github/workflows/docs.yml
vendored
@ -14,11 +14,27 @@ jobs:
|
|||||||
docs:
|
docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- name: Checkout code
|
||||||
- uses: jiro4989/setup-nim-action@v1
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# We need to do this because of how github cache works
|
||||||
|
# I am not sure we can move the cache file, so if we do not do this
|
||||||
|
# make update breaks because the cached compiler is there where the submodules
|
||||||
|
# are meant to go.
|
||||||
|
- name: Submodules
|
||||||
|
run: |
|
||||||
|
git submodule update --init --recursive
|
||||||
|
- name: Cache nim
|
||||||
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
nim-version: ${{ env.nim-version }}
|
path: vendor/nimbus-build-system/vendor/Nim/bin
|
||||||
- run: nimble doc --index:on --project --out:${{ env.deploy-dir }} ${{ env.nim-src }}
|
key: ${{ runner.os }}-${{ matrix.env.NPROC }}-nim-${{ hashFiles('.gitmodules') }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" V=1 update
|
||||||
|
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" LOG_LEVEL=TRACE
|
||||||
|
- run: nim doc --index:on --project --out:${{ env.deploy-dir }} ${{ env.nim-src }}
|
||||||
- name: Deploy documents
|
- name: Deploy documents
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user