Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Dec 24, 2023
1 parent c9ec426 commit 4a74924
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Generate target list
run: |
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
if: (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) || github.event_name == 'push'
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@master
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
Expand All @@ -214,7 +214,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
Expand All @@ -238,7 +238,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
Expand All @@ -257,10 +257,10 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

Expand All @@ -274,8 +274,8 @@ jobs:
x86_64-unknown-illumos \
wasm32-wasi
# - name: Cache cargo output
# uses: Swatinem/rust-cache@v2
- name: Cache cargo output
uses: Swatinem/rust-cache@v2

- name: Run clippy
run: |
Expand All @@ -288,8 +288,7 @@ jobs:
--target x86_64-pc-windows-gnu \
--target x86_64-unknown-netbsd \
--target x86_64-unknown-illumos \
--target wasm32-wasi \
-Zlints
--target wasm32-wasi
env:
RUSTFLAGS: --cfg bench

Expand All @@ -300,7 +299,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

Expand All @@ -311,9 +310,9 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Document public API
run: cargo doc -p time --all-features -Zrustdoc-map
run: cargo doc -p time --all-features
env:
RUSTDOCFLAGS: --cfg __time_03_docs
RUSTDOCFLAGS: --cfg __time_03_docs -Zunstable-options --generate-link-to-definition

- name: Create top-level redirect
run: |
Expand All @@ -331,9 +330,9 @@ jobs:
if: github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.master_branch)

- name: Document internal API
run: cargo doc -p time --all-features --no-deps -Zrustdoc-map --document-private-items
run: cargo doc -p time --all-features --document-private-items
env:
RUSTDOCFLAGS: --cfg __time_03_docs --document-hidden-items
RUSTDOCFLAGS: --cfg __time_03_docs --document-hidden-items -Zunstable-options --generate-link-to-definition

- name: Create top-level redirect
run: |
Expand All @@ -359,18 +358,21 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
uses: dtolnay/rust-toolchain@stable

- name: Install cargo-llvm-cov
run: |
curl -LsSf https://github.com/taiki-e/cargo-llvm-cov/releases/latest/download/cargo-llvm-cov-x86_64-unknown-linux-gnu.tar.gz \
| tar xzf - -C ~/.cargo/bin
- name: Cache cargo output
uses: Swatinem/rust-cache@v2

- name: Generate coverage report
run: |
cargo llvm-cov clean --workspace
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/powerset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Generate target list
run: |
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create release
uses: ncipollo/release-action@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
permissions:
pull-requests: write
steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
with:
enable-statistics: false
stale-pr-message: This pull request has not had any activity recently. It will be closed without further activity.
Expand All @@ -29,7 +29,7 @@ jobs:
checks: write
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Audit dependencies
uses: rustsec/audit-check@v1
Expand Down

0 comments on commit 4a74924

Please sign in to comment.