Skip to content

Commit

Permalink
Merge pull request #18 from AliSajid/next
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSajid committed Mar 28, 2024
2 parents eb62094 + 98efd47 commit 0aac93d
Show file tree
Hide file tree
Showing 13 changed files with 317 additions and 84 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-audit
uses: taiki-e/install-action@f03bd5e420b56953c9c6d492f25b1bdeed9c5aec # v2.29.1
uses: taiki-e/install-action@10b774e4cd9aedbfa3d470d887cf5272006b89a0 # v2.31.2
with:
tool: cargo-audit
- name: Security Audit
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- stable
- beta
- nightly
- 1.75.0 # MSRV
- 1.70.0 # MSRV
os:
- windows
- ubuntu
Expand All @@ -69,7 +69,7 @@ jobs:
logo: ubuntu
- os: macos
logo: apple
- rust: 1.75.0 # MSRV
- rust: 1.70.0 # MSRV
label: msrv
- rust: stable
label: stable
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
run: cargo clippy -- -D warnings
- name: Wait before badge creation
if: ${{ needs.check_changed_dirs.outputs.source_changed == 'true' }}
uses: AliSajid/random-wait-action@01b537571b90fecf98521ac9dbd3054d34dd5819 # v2.2.1
uses: AliSajid/random-wait-action@e64e2d7024f9adae6633b7599abe5e766a4a75a3 # v2.3.1
with:
minimum: ${{env.MINIMUM_WAIT}}
maximum: ${{env.MAXIMUM_WAIT}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/code_coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: dtolnay/rust-toolchain@nightly
with:
components: llvm-tools-preview
- uses: taiki-e/install-action@f03bd5e420b56953c9c6d492f25b1bdeed9c5aec # v2.29.1
- uses: taiki-e/install-action@10b774e4cd9aedbfa3d470d887cf5272006b89a0 # v2.31.2
with:
tool: cargo-llvm-cov,nextest
- name: Collect coverage data (including doctests)
Expand All @@ -30,7 +30,7 @@ jobs:
cargo llvm-cov --no-report --doc
cargo llvm-cov report --doctests --lcov --output-path lcov.info
- name: Upload to codecov.io
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0
uses: codecov/codecov-action@c16abc29c95fcf9174b58eb7e1abf4c866893bc8 # v4.1.1
with:
file: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
22 changes: 3 additions & 19 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Cache dependencies
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- name: Install cross
uses: taiki-e/install-action@f03bd5e420b56953c9c6d492f25b1bdeed9c5aec # v2.29.1
uses: taiki-e/install-action@10b774e4cd9aedbfa3d470d887cf5272006b89a0 # v2.31.2
with:
tool: cross
- name: Configure cross
Expand All @@ -85,18 +85,12 @@ jobs:
run: |
mkdir dist
cp target/${{ matrix.build.target }}/release/${{ matrix.bin }} dist/${{ matrix.bin }}-${{ matrix.build.target }}
- name: Create binary checksum
run: |
shasum --algorithm 256 \
--binary ${{ matrix.bin }}-${{ matrix.build.target }} | tee ${{ matrix.bin }}-${{ matrix.build.target }}-SHA256SUM.txt
working-directory: ./dist
- name: Upload release artifacts
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: ${{ matrix.build.target }}
path: |
dist/${{ matrix.bin }}-${{ matrix.build.target }}
dist/${{ matrix.bin }}-${{ matrix.build.target }}-SHA256SUM.txt
if-no-files-found: error
retention-days: 1
release:
Expand Down Expand Up @@ -131,7 +125,7 @@ jobs:
- name: Install dependencies
run: sudo apt install tree
- name: Install semantic-release-cargo
uses: taiki-e/install-action@f03bd5e420b56953c9c6d492f25b1bdeed9c5aec # v2.29.1
uses: taiki-e/install-action@10b774e4cd9aedbfa3d470d887cf5272006b89a0 # v2.31.2
with:
tool: semantic-release-cargo@${{env.SEMREL_RUST_VERSION}}
- name: Download release artifacts
Expand All @@ -141,17 +135,7 @@ jobs:
- name: ls artifacts
run: tree ./artifacts
- name: Prepare GitHub Release artifacts
run: |
mkdir dist/
cp -vr artifacts/aarch64-apple-darwin dist/aarch64-apple-darwin
cp -vr artifacts/aarch64-unknown-linux-gnu dist/aarch64-unknown-linux-gnu
cp -vr artifacts/i686-unknown-linux-gnu dist/i686-unknown-linux-gnu
cp -vr artifacts/x86_64-apple-darwin dist/x86_64-apple-darwin
cp -vr artifacts/x86_64-unknown-linux-gnu dist/x86_64-unknown-linux-gnu
cp -vr artifacts/x86_64-pc-windows-gnu dist/x86_64-pc-windows-gnu
cp -vr artifacts/i686-pc-windows-gnu dist/i686-pc-windows-gnu
- name: Combine checksums
run: cat dist/**/*-SHA256SUM.txt | tee dist/SHA256SUMS.txt
run: ./scripts/build.sh
- name: Install Conventional Commit preset
run: npm install conventional-changelog-conventionalcommits
- name: Semantic Release
Expand Down
2 changes: 1 addition & 1 deletion .markdownlintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
^LICENSE
.github/**/*
meta/LICENSE-HEADER
meta/LICENSE-HEADER
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ repos:
rev: 0.6.3
hooks:
- id: fix-smartquotes
exclude: "licenses.*"
- id: fix-ligatures
- id: forbid-bidi-controls
- repo: https://github.com/zricethezav/gitleaks
Expand Down
23 changes: 1 addition & 22 deletions .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,7 @@ plugins:
- preset: conventionalcommits
- - '@semantic-release/github'
- assets:
- path: dist/aarch64-apple-darwin/gh-bofh-aarch64-apple-darwin
label: gh-bofh-aarch64-apple-darwin
- path: dist/aarch64-unknown-linux-gnu/gh-bofh-aarch64-unknown-linux-gnu
label: gh-bofh-aarch64-unknown-linux-gnu
- path: dist/aarch64-unknown-linux-musl/gh-bofh-aarch64-unknown-linux-musl
label: gh-bofh-aarch64-unknown-linux-musl
- path: dist/i686-unknown-linux-gnu/gh-bofh-i686-unknown-linux-gnu
label: gh-bofh-i686-unknown-linux-gnu
- path: dist/i686-unknown-linux-musl/gh-bofh-i686-unknown-linux-musl
label: gh-bofh-i686-unknown-linux-musl
- path: dist/x86_64-apple-darwin/gh-bofh-x86_64-apple-darwin
label: gh-bofh-x86_64-apple-darwin
- path: dist/x86_64-unknown-linux-gnu/gh-bofh-x86_64-unknown-linux-gnu
label: gh-bofh-x86_64-unknown-linux-gnu
- path: dist/x86_64-unknown-linux-musl/gh-bofh-x86_64-unknown-linux-musl
label: gh-bofh-x86_64-unknown-linux-musl
- path: dist/x86_64-pc-windows-gnu/gh-bofh-x86_64-pc-windows-gnu
label: gh-bofh-x86_64-pc-windows-gnu
- path: dist/i686-pc-windows-gnu/gh-bofh-i686-pc-windows-gnu
label: gh-bofh-i686-pc-windows-gnu
- path: dist/SHA256SUMS
label: SHA256SUMS
- dist/*
- - '@semantic-release/exec'
- verifyConditionsCmd: ~/.cargo/bin/semantic-release-cargo -v verify-conditions
prepareCmd: ~/.cargo/bin/semantic-release-cargo -v prepare ${nextRelease.version}
Expand Down
21 changes: 4 additions & 17 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@
{
"path": "detect_secrets.filters.allowlist.is_line_allowlisted"
},
{
"path": "detect_secrets.filters.common.is_baseline_file",
"filename": ".secrets.baseline"
},
{
"path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
"min_level": 2
Expand Down Expand Up @@ -113,20 +109,11 @@
{
"path": "detect_secrets.filters.regex.should_exclude_file",
"pattern": [
"Cargo.lock"
"Cargo.lock",
"licenses_report.json"
]
}
],
"results": {
"licenses_report.json": [
{
"type": "Base64 High Entropy String",
"filename": "licenses_report.json",
"hashed_secret": "03962b6830f66ba88806742debeec8332bbbca4a",
"is_verified": false,
"line_number": 12975
}
]
},
"generated_at": "2024-01-19T17:30:24Z"
"results": {},
"generated_at": "2024-03-28T17:53:38Z"
}

0 comments on commit 0aac93d

Please sign in to comment.