Skip to content

Commit

Permalink
Update CI (#686)
Browse files Browse the repository at this point in the history
* fix new clippy lint

* add miri comment

* lint workflows

* fix shell check for miri
  • Loading branch information
cospectrum authored Sep 19, 2024
1 parent c153f57 commit 54573da
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Lint GitHub Actions workflows
on: [push, pull_request]

jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
shell: bash
- name: Check workflow files
run: ${{ steps.get_actionlint.outputs.executable }} -color
shell: bash
3 changes: 2 additions & 1 deletion .github/workflows/safety.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# removed. Runs:
# - address sanitizer - detects memory errors
# - leak sanitizer - detects memory leaks
# - miri - detects undefined behavior and memory leaks
# See check.yml for information about how the concurrency cancellation and workflow triggering works
permissions:
contents: read
Expand Down Expand Up @@ -61,7 +62,7 @@ jobs:
with:
submodules: true
- run: |
echo "NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)" >> $GITHUB_ENV
echo "NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)" >> "$GITHUB_ENV"
- name: Install ${{ env.NIGHTLY }}
uses: dtolnay/rust-toolchain@master
with:
Expand Down
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
#![deny(missing_docs)]
#![cfg_attr(test, feature(test))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![allow(clippy::zero_prefixed_literal, clippy::needless_range_loop)]
#![allow(
clippy::too_long_first_doc_paragraph,
clippy::zero_prefixed_literal,
clippy::needless_range_loop
)]

#[cfg(test)]
extern crate test;
Expand Down

0 comments on commit 54573da

Please sign in to comment.