Skip to content

build: migrate to napi-rs v3 #164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 29 additions & 17 deletions .config/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,25 +110,37 @@ commit_parsers = [
{ field = "github.pr_labels", pattern = "no-changelog", skip = true },
{ field = "github.pr_labels", pattern = "invalid", skip = true },
# The order of parsers matters. Put rules for PR labels first to prioritize PR labels.
# Next we categorize by conventional commit group (`group: msg`).
{ field = "group", pattern = "add", group = "<!-- 1 --> 🚀 Added" },
{ field = "group", pattern = "feat", group = "<!-- 1 --> 🚀 Added" },
{ field = "group", pattern = "fix", group = "<!-- 4 --> 🛠️ Fixed" },
{ field = "group", pattern = "perf", group = "<!-- 4 --> 🛠️ Fixed" },
{ field = "group", pattern = "build", group = "<!-- 6 --> 📦 Dependency updates" },
{ field = "group", pattern = "test", group = "<!-- 7 -->🚦 Tests" },
{ field = "group", pattern = "docs", group = "<!-- 8 --> 📝 Documentation" },
{ field = "group", pattern = "chore", group = "<!-- 9 --> 🗨️ Changed" },
{ field = "group", pattern = "style", group = "<!-- 9 --> 🗨️ Changed" },
{ field = "breaking", pattern = true, group = "<!-- 10 --> 💥 Breaking Changes" },
{ field = "group", pattern = "remove", group = "<!-- 3 --> 🗑️ Removed" },
{ field = "group", pattern = "deprecate", group = "<!-- 2 --> 🚫 Deprecated" },
{ field = "group", pattern = "delete", group = "<!-- 3 --> 🗑️ Removed" },
{ field = "group", pattern = "security", group = "<!-- 5 --> 🔐 Security" },
{ field = "group", pattern = "refactor", group = "<!-- 9 --> 🗨️ Changed" },
# Next we have filters for unconventional commit messages
{ message = "^[a|A]dd", group = "<!-- 1 --> 🚀 Added" },
{ message = "^[s|S]upport", group = "<!-- 1 --> 🚀 Added" },
{ message = "^.*: support", group = "<!-- 1 --> 🚀 Added" },
{ message = "^.*: add", group = "<!-- 1 --> 🚀 Added" },
{ message = "^.*: deprecated", group = "<!-- 2 --> 🚫 Deprecated" },
{ message = "[d|D]eprecate", group = "<!-- 2 --> 🚫 Deprecated" },
{ message = "[t|T]ests", group = "<!-- 7 -->🚦 Tests"},
{ message = "[r|R]emove", group = "<!-- 3 --> 🗑️ Removed" },
{ message = "^.*: remove", group = "<!-- 3 --> 🗑️ Removed" },
{ message = "^.*: delete", group = "<!-- 3 --> 🗑️ Removed" },
{ message = "^.*: [s|S]upport", group = "<!-- 1 --> 🚀 Added" },
{ message = "^.*: [a|A]dd", group = "<!-- 1 --> 🚀 Added" },
{ message = "^.*: [d|D]eprecated", group = "<!-- 2 --> 🚫 Deprecated" },
{ message = "^.*: [r|R]emove", group = "<!-- 3 --> 🗑️ Removed" },
{ message = "^.*: [d|D]elete", group = "<!-- 3 --> 🗑️ Removed" },
{ message = "^[f|F]ix", group = "<!-- 4 --> 🛠️ Fixed" },
{ message = "^.*: fix", group = "<!-- 4 --> 🛠️ Fixed" },
{ message = "^.*: secure", group = "<!-- 5 --> 🔐 Security" },
{ message = "[s|S]ecure", group = "<!-- 5 --> 🔐 Security" },
{ message = "[s|S]ecurity", group = "<!-- 5 --> 🔐 Security" },
{ message = "^.*: security", group = "<!-- 5 --> 🔐 Security" },
{ message = "doc", group = "<!-- 8 --> 📝 Documentation" },
{ message = "docs", group = "<!-- 8 --> 📝 Documentation" },
{ message = "documentation", group = "<!-- 8 --> 📝 Documentation" },
{ message = "^.*: [f|F]ix", group = "<!-- 4 --> 🛠️ Fixed" },
{ message = "^.*: [s|S]ecure", group = "<!-- 5 --> 🔐 Security" },
{ message = "^.*: [s|S]ecurity", group = "<!-- 5 --> 🔐 Security" },
{ message = "[d|D]oc", group = "<!-- 8 --> 📝 Documentation" },
{ message = "[d|D]ocs", group = "<!-- 8 --> 📝 Documentation" },
{ message = "[d|D]ocumentation", group = "<!-- 8 --> 📝 Documentation" },
# anything left after not being caught by filters above gets put in the "Changed" section
{ message = "[r|R]efactor", group = "<!-- 9 --> 🗨️ Changed" },
{ field = "github.pr_labels", pattern = ".*", group = "<!-- 9 --> 🗨️ Changed" },
{ message = "^.*", group = "<!-- 9 --> 🗨️ Changed" },
Expand Down
18 changes: 18 additions & 0 deletions .config/committed.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
style = "conventional"
subject_capitalized = false
allowed_types = [
"fix",
"feat",
"build",
"chore",
"docs",
"style",
"refactor",
"remove",
"deprecate",
"security",
"add",
"perf",
"test",
]
subject_length = 0 # unlimited
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@
*.code-workspace text eol=lf
*.clang-tidy text eol=lf
*.clang-format text eol=lf
justfile text eol=lf
34 changes: 18 additions & 16 deletions .github/workflows/binary-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,63 +39,63 @@ jobs:
include:
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
vendered: true
vendored: true
cross: true
- target: aarch64-unknown-linux-musl
os: ubuntu-latest
vendered: true
vendored: true
cross: true
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
vendered: false
vendored: false
cross: false
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
vendered: true
vendored: true
cross: true
- target: arm-unknown-linux-gnueabi
os: ubuntu-latest
vendered: true
vendored: true
cross: true
- target: arm-unknown-linux-gnueabihf
os: ubuntu-latest
vendered: true
vendored: true
cross: true
- target: armv7-unknown-linux-gnueabihf
os: ubuntu-latest
vendered: true
vendored: true
cross: true
- target: powerpc-unknown-linux-gnu
os: ubuntu-latest
vendered: true
vendored: true
cross: true
- target: powerpc64-unknown-linux-gnu
os: ubuntu-latest
vendered: true
vendored: true
cross: true
- target: powerpc64le-unknown-linux-gnu
os: ubuntu-latest
vendered: true
vendored: true
cross: true
- target: s390x-unknown-linux-gnu
os: ubuntu-latest
vendered: true
vendored: true
cross: true
- target: aarch64-apple-darwin
os: macos-latest
vendered: true
vendored: true
cross: false
- target: x86_64-apple-darwin
os: macos-latest
vendered: true
vendored: true
cross: false
- target: x86_64-pc-windows-msvc
os: windows-latest
vendered: false
vendored: false
cross: false
- target: aarch64-pc-windows-msvc
os: windows-latest
vendered: false
vendored: false
cross: false
runs-on: ${{ matrix.os }}
permissions:
Expand All @@ -112,6 +112,8 @@ jobs:
- name: Install cross (cargo cross compiler)
if: matrix.cross
uses: taiki-e/install-action@v2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
tool: cross

Expand All @@ -123,7 +125,7 @@ jobs:
--bin cpp-linter
--release
--target ${{ matrix.target }}
${{ matrix.vendered && '--features openssl-vendored' || '' }}
${{ matrix.vendored && '--features openssl-vendored' || '' }}

- name: Prepare artifacts
run: mv target/${{ matrix.target }}/release/cpp-linter${{ runner.os == 'Windows' && '.exe' || '' }} ./cpp-linter-${{ matrix.target }}${{ runner.os == 'Windows' && '.exe' || '' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/bump-n-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
- run: yarn global add @napi-rs/cli
- uses: cargo-bins/cargo-binstall@main
- run: cargo binstall -y git-cliff
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Bump ${{ inputs.component }} version
env:
GITHUB_TOKEN: ${{ secrets.BUMP_N_RELEASE }}
Expand Down
Loading
Loading