Skip to content
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
6 changes: 6 additions & 0 deletions .github/workflows/release-mt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ jobs:

- name: Build mt-napi (zigbuild)
if: ${{ matrix.zig }}
# musl-таргет за замовчуванням fully-static (crt-static) — не підтримує cdylib
# ("cannot produce cdylib... does not support these crate types"). napi-аддон
# (на відміну від CLI-бінарника вище, якому crt-static якраз потрібен) —
# вимикаємо crt-static лише для цього кроку, як і документує сам napi-rs для musl.
env:
RUSTFLAGS: -C target-feature=-crt-static
run: cargo zigbuild --release --target ${{ matrix.target }} -p mt-napi

- name: Build mt-napi (native)
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/tag-mt-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write # commit-back bump версії + push тега
actions: write # workflow_dispatch release-mt.yml нижче — push тега через GITHUB_TOKEN САМ не тригерить push-подію (anti-recursion guard GH Actions)
steps:
- uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -99,3 +100,12 @@ jobs:
tag="mt-v${{ steps.ver.outputs.version }}"
git tag "$tag"
git push origin "$tag"

# Push тега токеном GITHUB_TOKEN НЕ породжує нову подію `push: tags:` (anti-recursion
# guard GH Actions — навмисне обмеження, щоб дії токена не викликали ланцюжок workflow-ів).
# release-mt.yml тому сам по собі не запуститься на цей тег — тригеримо явно через API.
- name: Trigger release-mt.yml for the new tag
if: steps.ver.outputs.skip == 'false'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh workflow run release-mt.yml --repo "${{ github.repository }}" --ref "mt-v${{ steps.ver.outputs.version }}"
Loading