Skip to content

Commit

Permalink
hm
Browse files Browse the repository at this point in the history
  • Loading branch information
John Guibas authored and John Guibas committed Feb 11, 2024
1 parent f23cace commit a4487ff
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,24 @@ jobs:
- name: Run tests
run: mdbook test

lint:
runs-on: ubuntu-latest
name: lint
timeout-minutes: 60
# lint:
# runs-on: ubuntu-latest
# name: lint
# timeout-minutes: 60

steps:
- uses: actions/checkout@v4
# steps:
# - uses: actions/checkout@v4

- name: Install mdbook-linkcheck
run: |
mkdir mdbook-linkcheck
curl -sSL -o mdbook-linkcheck.zip https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/latest/download/mdbook-linkcheck.x86_64-unknown-linux-gnu.zip
unzip mdbook-linkcheck.zip -d ./mdbook-linkcheck
chmod +x $(pwd)/mdbook-linkcheck/mdbook-linkcheck
echo $(pwd)/mdbook-linkcheck >> $GITHUB_PATH
# - name: Install mdbook-linkcheck
# run: |
# mkdir mdbook-linkcheck
# curl -sSL -o mdbook-linkcheck.zip https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/latest/download/mdbook-linkcheck.x86_64-unknown-linux-gnu.zip
# unzip mdbook-linkcheck.zip -d ./mdbook-linkcheck
# chmod +x $(pwd)/mdbook-linkcheck/mdbook-linkcheck
# echo $(pwd)/mdbook-linkcheck >> $GITHUB_PATH

- name: Run linkcheck
run: mdbook-linkcheck --standalone
# - name: Run linkcheck
# run: mdbook-linkcheck --standalone

build:
runs-on: ubuntu-latest
Expand All @@ -85,17 +85,17 @@ jobs:
- name: Build book
run: mdbook build

- name: Build docs
run: cargo docs
env:
# Keep in sync with ./ci.yml:jobs.docs
RUSTDOCFLAGS:
--cfg docsrs --show-type-layout --generate-link-to-definition --enable-index-page
-Zunstable-options
# - name: Build docs
# run: cargo docs
# env:
# # Keep in sync with ./ci.yml:jobs.docs
# RUSTDOCFLAGS:
# --cfg docsrs --show-type-layout --generate-link-to-definition --enable-index-page
# -Zunstable-options

- name: Move docs to book folder
run: |
mv target/doc target/book/docs
# - name: Move docs to book folder
# run: |
# mv target/doc target/book/docs

- name: Archive artifact
shell: sh
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
# Only deploy if a push to main
# if: github.ref_name == 'main' && github.event_name == 'push'
runs-on: ubuntu-latest
needs: [test, lint, build]
needs: [lint, build]

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
Expand Down

0 comments on commit a4487ff

Please sign in to comment.