Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into prusti-std
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurel300 committed Aug 18, 2023
2 parents cfba140 + cb68494 commit e49dd1a
Show file tree
Hide file tree
Showing 354 changed files with 7,597 additions and 5,534 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/benchmarks.yml

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Java
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: '15'
distribution: 'zulu'

- name: Set up the environment
run: python x.py setup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/crates-io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Publish crates.io
uses: katyo/publish-crates@v2
with:
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,18 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Set up Java
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: '15'
distribution: 'zulu'

- name: Set up the environment
run: python x.py setup
Expand Down Expand Up @@ -61,17 +62,18 @@ jobs:
if: false
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Set up Java
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: '15'
distribution: 'zulu'

- name: Set up the environment
run: python x.py setup
Expand Down Expand Up @@ -128,7 +130,7 @@ jobs:
with:
tag_name: ${{ env.TAG_NAME }}
release_name: Nightly Release ${{ env.TAG_NAME }}
keep_num: 2
keep_num: 4

- name: Upload release asset for Ubuntu 20.04 using a backward compatible asset name
uses: actions/upload-release-asset@v1
Expand Down
68 changes: 0 additions & 68 deletions .github/workflows/docs.yml

This file was deleted.

82 changes: 82 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Build GitHub pages

on:
workflow_dispatch:
push:
branches: 'master'
pull_request:
branches: 'master'

env:
RUST_BACKTRACE: 1
# Currently broken. See issue #1287
# RUSTDOCFLAGS: "--generate-link-to-definition -Zunstable-options"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
path: "repo"

- name: Check for broken links
uses: lycheeverse/[email protected]
with:
fail: true

- name: Prepare output directory
run: |
mkdir -p output
cp -r repo/docs/static/* output/
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: "latest"

- name: Build dummy crate to get dependencies
run: |
cd repo/docs/dummy/
cargo build --target-dir ./target
- name: Build user guide
run: |
cd repo/docs/user-guide
mdbook build -d ../../../output/user-guide
- name: Build dev guide
run: |
cd repo/docs/dev-guide
mdbook build -d ../../../output/dev-guide
- name: Doctest user guide
run: |
cd repo/docs/user-guide
mdbook test -L ../dummy/target/debug/deps
- name: Doctest dev guide
run: |
cd repo/docs/dev-guide
mdbook test -L ../dummy/target/debug/deps
- name: Set up the environment
run: |
cd repo
python x.py setup
- name: Generate documentation
run: |
cd repo
python x.py doc --all --no-deps
cp -r ./target/doc ../output/doc
# Only deploy on push to master
- name: Publish to GitHub pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
force_orphan: true
33 changes: 0 additions & 33 deletions .github/workflows/rustdoc.yml

This file was deleted.

Loading

0 comments on commit e49dd1a

Please sign in to comment.