Skip to content

Commit fb4da2a

Browse files
committed
Extract age-plugin-argon2 to a standalone crate
Inline workspace dependency refs, bump to v0.2.0, add license files, deny.toml, CI workflow, and release workflow.
1 parent 27c4785 commit fb4da2a

File tree

10 files changed

+1922
-3
lines changed

10 files changed

+1922
-3
lines changed

.github/workflows/ci.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
fmt:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: dtolnay/rust-toolchain@stable
17+
with:
18+
components: rustfmt
19+
- run: cargo fmt --check
20+
21+
clippy:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: dtolnay/rust-toolchain@stable
26+
with:
27+
components: clippy
28+
- uses: Swatinem/rust-cache@v2
29+
- run: cargo clippy -- -D warnings
30+
31+
test:
32+
strategy:
33+
matrix:
34+
os: [ubuntu-latest, macos-latest, windows-latest]
35+
runs-on: ${{ matrix.os }}
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: dtolnay/rust-toolchain@stable
39+
- uses: Swatinem/rust-cache@v2
40+
- run: cargo test
41+
42+
deny:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: EmbarkStudios/cargo-deny-action@v2
47+
48+
ci-pass:
49+
if: always()
50+
needs: [fmt, clippy, test, deny]
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Decide whether all jobs passed
54+
uses: re-actors/alls-green@release/v1
55+
with:
56+
jobs: ${{ toJSON(needs) }}

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags: ["v*"]
6+
7+
permissions:
8+
contents: write
9+
10+
env:
11+
CARGO_TERM_COLOR: always
12+
13+
jobs:
14+
publish:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: dtolnay/rust-toolchain@stable
19+
- uses: Swatinem/rust-cache@v2
20+
21+
- name: Dry-run publish
22+
run: cargo publish --dry-run
23+
24+
- name: Publish to crates.io
25+
run: cargo publish
26+
env:
27+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
28+
29+
- name: Create GitHub release
30+
run: gh release create "${{ github.ref_name }}" --generate-notes
31+
env:
32+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

COPYRIGHT

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Copyright (c) 2024-2026 Thesis, Inc
2+
3+
All code in this repository is dual-licensed under the MIT and Apache 2.0
4+
licenses. See LICENSE-MIT and LICENSE-APACHE for the full texts.

0 commit comments

Comments
 (0)