Skip to content

Commit c2ae9f7

Browse files
committed
chore(release): Release abcrypt-cli version 0.5.0
2 parents c24496e + 9dbfd70 commit c2ae9f7

File tree

148 files changed

+2764
-1353
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+2764
-1353
lines changed

.bumpversion-lib.toml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ updates:
1414
directory: "/"
1515
schedule:
1616
interval: "weekly"
17-
open-pull-requests-limit: 20
17+
open-pull-requests-limit: 25
1818

1919
- package-ecosystem: "npm"
2020
directory: "/"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
SPDX-FileCopyrightText: 2023 Shun Sakai
22

3-
SPDX-License-Identifier: Apache-2.0 OR MIT
3+
SPDX-License-Identifier: CC-BY-4.0

.github/workflows/CD.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ jobs:
7676
targets: ${{ matrix.target }}
7777
- name: Install cross
7878
if: ${{ matrix.use-cross }}
79-
uses: taiki-e/install-action@v2.47.7
79+
uses: taiki-e/install-action@v2.52.7
8080
with:
8181
tool: cross
8282
- name: Cache build artifacts
83-
uses: Swatinem/[email protected].7
83+
uses: Swatinem/[email protected].8
8484
with:
8585
key: ${{ matrix.target }}
8686
- name: Setup Ruby
@@ -119,7 +119,7 @@ jobs:
119119
fi
120120
121121
if [ "${{ matrix.os }}" != "windows-2022" ] ; then
122-
tar -cvf "${package}.tar" "${package}"
122+
tar -cv --format=pax -f "${package}.tar" "${package}"
123123
zstd --rm -19 -v "${package}.tar"
124124
else
125125
7z a -bb -mx=9 -m0=LZMA "${package}.7z" "${package}"
@@ -147,7 +147,7 @@ jobs:
147147
sha256sum abcrypt-* | tee sha256sums.txt
148148
b2sum abcrypt-* | tee b2sums.txt
149149
- name: Release
150-
uses: softprops/action-gh-release@v2.1.0
150+
uses: softprops/action-gh-release@v2.3.2
151151
if: startsWith(github.ref, 'refs/tags/')
152152
with:
153153
draft: true

.github/workflows/CI.yaml

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
os: windows-2022
3838
target: x86_64-pc-windows-msvc
3939
- toolchain-alias: msrv
40-
toolchain: 1.74.0
40+
toolchain: 1.85.0
4141
- toolchain-alias: stable
4242
toolchain: stable
4343
steps:
@@ -49,7 +49,7 @@ jobs:
4949
toolchain: ${{ matrix.toolchain }}
5050
targets: ${{ matrix.target }}
5151
- name: Cache build artifacts
52-
uses: Swatinem/[email protected].7
52+
uses: Swatinem/[email protected].8
5353
with:
5454
key: ${{ matrix.target }}
5555
- name: Check packages
@@ -86,7 +86,7 @@ jobs:
8686
os: windows-2022
8787
target: x86_64-pc-windows-msvc
8888
- toolchain-alias: msrv
89-
toolchain: 1.74.0
89+
toolchain: 1.85.0
9090
- toolchain-alias: stable
9191
toolchain: stable
9292
steps:
@@ -103,7 +103,7 @@ jobs:
103103
toolchain: ${{ matrix.toolchain }}
104104
targets: ${{ matrix.target }}
105105
- name: Cache build artifacts
106-
uses: Swatinem/[email protected].7
106+
uses: Swatinem/[email protected].8
107107
with:
108108
key: ${{ matrix.target }}
109109
- name: Run tests
@@ -129,7 +129,7 @@ jobs:
129129
- stable
130130
include:
131131
- toolchain-alias: msrv
132-
toolchain: 1.74.0
132+
toolchain: 1.85.0
133133
- toolchain-alias: stable
134134
toolchain: stable
135135
steps:
@@ -148,7 +148,7 @@ jobs:
148148
with:
149149
node-version: 22
150150
- name: Cache build artifacts
151-
uses: Swatinem/[email protected].7
151+
uses: Swatinem/[email protected].8
152152
- name: Check a package
153153
run: wasm-pack build -s sorairolake -t nodejs --dev crates/wasm
154154

@@ -162,7 +162,7 @@ jobs:
162162
- stable
163163
include:
164164
- toolchain-alias: msrv
165-
toolchain: 1.74.0
165+
toolchain: 1.85.0
166166
- toolchain-alias: stable
167167
toolchain: stable
168168
steps:
@@ -181,7 +181,7 @@ jobs:
181181
with:
182182
node-version: 22
183183
- name: Cache build artifacts
184-
uses: Swatinem/[email protected].7
184+
uses: Swatinem/[email protected].8
185185
- name: Run tests
186186
run: wasm-pack test --node crates/wasm
187187

@@ -208,13 +208,17 @@ jobs:
208208
- os-alias: windows
209209
os: windows-2022
210210
- rust-version-alias: msrv
211-
rust-version: 1.74.0
211+
rust-version: 1.85.0
212212
- rust-version-alias: stable
213213
rust-version: stable
214214
- python-version-alias: minimum
215215
python-version: "3.8"
216216
- python-version-alias: latest
217-
python-version: "3.x"
217+
python-version: "3.13"
218+
exclude:
219+
- os-alias: windows
220+
rust-version-alias: msrv
221+
python-version-alias: minimum
218222
steps:
219223
- name: Set Git to use LF
220224
if: matrix.os == 'windows-2022'
@@ -227,15 +231,14 @@ jobs:
227231
uses: dtolnay/rust-toolchain@v1
228232
with:
229233
toolchain: ${{ matrix.rust-version }}
230-
- name: Setup Python
231-
uses: actions/setup-python@v5
234+
- name: Setup uv
235+
uses: astral-sh/setup-[email protected]
232236
with:
233237
python-version: ${{ matrix.python-version }}
234-
cache: "pip"
235-
- name: Install dependencies
236-
run: pip install "crates/python[test]"
238+
working-directory: crates/python
239+
enable-cache: true
237240
- name: Run tests
238-
run: pytest crates/python
241+
run: uv run --directory crates/python pytest
239242

240243
rustfmt:
241244
name: Rustfmt
@@ -249,7 +252,7 @@ jobs:
249252
toolchain: stable
250253
components: rustfmt
251254
- name: Cache build artifacts
252-
uses: Swatinem/[email protected].7
255+
uses: Swatinem/[email protected].8
253256
- name: Check code formatted
254257
run: cargo fmt --all -- --check
255258

@@ -265,7 +268,7 @@ jobs:
265268
toolchain: stable
266269
components: clippy
267270
- name: Cache build artifacts
268-
uses: Swatinem/[email protected].7
271+
uses: Swatinem/[email protected].8
269272
- name: Check no lint warnings
270273
run: cargo clippy --workspace -- -D warnings
271274
- name: Check no lint warnings (no default features)
@@ -282,7 +285,7 @@ jobs:
282285
with:
283286
toolchain: stable
284287
- name: Cache build artifacts
285-
uses: Swatinem/[email protected].7
288+
uses: Swatinem/[email protected].8
286289
- name: Check no `rustdoc` lint warnings
287290
run: RUSTDOCFLAGS="-D warnings" cargo doc --workspace --exclude abcrypt-cli --no-deps --document-private-items
288291

@@ -297,7 +300,7 @@ jobs:
297300
with:
298301
toolchain: nightly
299302
- name: Cache build artifacts
300-
uses: Swatinem/[email protected].7
303+
uses: Swatinem/[email protected].8
301304
- name: Run benchmarks
302305
run: cargo bench -p abcrypt
303306

@@ -311,19 +314,18 @@ jobs:
311314
uses: dtolnay/rust-toolchain@v1
312315
with:
313316
toolchain: stable
314-
- name: Setup Python
315-
uses: actions/setup-python@v5
317+
- name: Setup uv
318+
uses: astral-sh/setup-[email protected]
316319
with:
317-
python-version: "3.x" # latest stable version of Python 3
318-
cache: "pip"
319-
- name: Install dependencies
320-
run: pip install "crates/python[dev,test]"
320+
python-version: "3.13" # latest stable version of Python 3
321+
working-directory: crates/python
322+
enable-cache: true
321323
- name: Check code formatted
322-
run: ruff format --check crates/python
324+
run: uv run --directory crates/python ruff format --check .
323325
- name: Check no lint warnings
324-
run: ruff check crates/python
326+
run: uv run --directory crates/python ruff check .
325327
- name: Type-check
326-
run: mypy crates/python
328+
run: uv run --directory crates/python mypy .
327329

328330
capi-examples:
329331
name: Examples for the C API
@@ -335,7 +337,7 @@ jobs:
335337
- stable
336338
include:
337339
- toolchain-alias: msrv
338-
toolchain: 1.74.0
340+
toolchain: 1.85.0
339341
- toolchain-alias: stable
340342
toolchain: stable
341343
steps:
@@ -351,9 +353,9 @@ jobs:
351353
sudo apt-get install libcli11-dev meson
352354
meson -v
353355
- name: Setup just
354-
uses: extractions/setup-just@v2
356+
uses: extractions/setup-just@v3
355357
- name: Cache build artifacts
356-
uses: Swatinem/[email protected].7
358+
uses: Swatinem/[email protected].8
357359
- name: Build examples for the C API
358360
run: just build-capi-examples
359361
- name: Check code formatted
@@ -374,15 +376,15 @@ jobs:
374376
with:
375377
toolchain: stable
376378
- name: Setup Deno
377-
uses: denoland/[email protected].1
379+
uses: denoland/[email protected].3
378380
with:
379381
deno-version: v1.x
380382
- name: Install wasm-pack
381383
uses: jetli/[email protected]
382384
with:
383385
version: "latest"
384386
- name: Cache build artifacts
385-
uses: Swatinem/[email protected].7
387+
uses: Swatinem/[email protected].8
386388
- name: Check code formatted
387389
run: deno fmt --check crates/wasm/examples/*.ts
388390
- name: Check no lint warnings

.github/workflows/SemverChecks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ jobs:
2020
- name: Checkout code
2121
uses: actions/checkout@v4
2222
- name: Check Semantic Versioning
23-
uses: obi1kenobi/cargo-semver-checks-action@v2.6
23+
uses: obi1kenobi/cargo-semver-checks-action@v2.7
2424
with:
2525
package: abcrypt

.github/workflows/dependabot_auto_merge.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- name: Dependabot metadata
2020
id: metadata
21-
uses: dependabot/fetch-metadata@v2.2.0
21+
uses: dependabot/fetch-metadata@v2.4.0
2222
with:
2323
github-token: ${{ secrets.GITHUB_TOKEN }}
2424
- name: Approve a PR

.github/workflows/deploy.yaml

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,23 @@ on:
1111
workflow_dispatch:
1212

1313
permissions:
14-
contents: write
14+
contents: read
15+
id-token: write
16+
pages: write
17+
18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: false
1521

1622
jobs:
17-
deploy:
18-
name: Deploy
23+
build:
24+
name: Build
1925
runs-on: ubuntu-24.04
2026
steps:
2127
- name: Checkout code
2228
uses: actions/checkout@v4
29+
- name: Setup Pages
30+
uses: actions/configure-pages@v5
2331
- name: Setup Node.js environment
2432
uses: actions/setup-node@v4
2533
with:
@@ -29,17 +37,42 @@ jobs:
2937
run: |
3038
npm ci
3139
npx antora -v
40+
- name: Setup Ruby
41+
uses: ruby/setup-ruby@v1
42+
with:
43+
ruby-version: 3.3
44+
- name: Setup Python
45+
uses: actions/setup-python@v5
46+
with:
47+
python-version: "3.13"
48+
- name: Install Asciidoctor
49+
run: |
50+
sudo apt-get update
51+
sudo apt-get install fonts-lyx libcairo2-dev libffi-dev libgdk-pixbuf2.0-dev libpango1.0-dev libxml2-dev
52+
gem install asciidoctor-epub3 asciidoctor-mathematical asciidoctor-pdf pygments.rb
53+
asciidoctor-pdf -V
54+
asciidoctor-epub3 -V
3255
- name: Setup just
33-
uses: extractions/setup-just@v2
56+
uses: extractions/setup-just@v3
3457
- name: Build a book
3558
run: just build-book
3659
- name: Minify a book
3760
uses: docker://tdewolff/minify:latest
3861
with:
3962
args: --exclude "build/site/_/**" -o build/ -r build/
40-
- name: Deploy
41-
uses: peaceiris/[email protected]
42-
if: startsWith(github.ref, 'refs/tags/')
63+
- name: Upload artifact
64+
uses: actions/upload-pages-artifact@v3
4365
with:
44-
github_token: ${{ secrets.GITHUB_TOKEN }}
45-
publish_dir: build/site
66+
path: build/site
67+
68+
deploy:
69+
name: Deploy
70+
needs: build
71+
runs-on: ubuntu-24.04
72+
environment:
73+
name: github-pages
74+
url: ${{ steps.deployment.outputs.page_url }}
75+
steps:
76+
- name: Deploy to GitHub Pages
77+
id: deployment
78+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)