Skip to content

Commit 73c7ef3

Browse files
author
Dennis P
committed
Track Cargo.lock for reproducible Docker builds
1 parent 4ef16de commit 73c7ef3

10 files changed

Lines changed: 2986 additions & 9 deletions

File tree

.github/workflows/release-sdk-flutter.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
working-directory: sdks/flutter/dart
3030
run: dart pub get
3131

32+
- name: Set up pub.dev credentials
33+
run: |
34+
mkdir -p ~/.config/dart
35+
echo '${{ secrets.PUB_CREDENTIALS }}' > ~/.config/dart/pub-credentials.json
36+
3237
- name: Validate pub.dev score (dry run)
3338
working-directory: sdks/flutter/dart
3439
run: dart pub publish --dry-run

.github/workflows/release-sdk-nodejs.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ jobs:
3333
artifact: checkgate.linux-x64-musl.node
3434
cross: true
3535

36-
# Linux arm64 (musl — Alpine) — cross-compile via napi-rs cross toolchain
36+
# Linux arm64 (musl — Alpine) — zig linker required, no musl aarch64 gcc in napi-cross
3737
- os: ubuntu-latest
3838
target: aarch64-unknown-linux-musl
3939
artifact: checkgate.linux-arm64-musl.node
40-
cross: true
40+
zig: true
4141

4242
# macOS x64 — cross-compile natively from arm64 runner
4343
- os: macos-latest
@@ -75,10 +75,22 @@ jobs:
7575
working-directory: sdks/nodejs
7676
run: npm install -g @napi-rs/cli
7777

78+
- name: Install Zig (musl aarch64 only)
79+
if: matrix.zig == true
80+
uses: goto-bus-stop/setup-zig@v2
81+
with:
82+
version: 0.13.0
83+
84+
- name: Install cargo-zigbuild (musl aarch64 only)
85+
if: matrix.zig == true
86+
run: cargo install cargo-zigbuild
87+
7888
- name: Build native binary
7989
working-directory: sdks/nodejs
8090
run: |
81-
if [ "${{ matrix.cross }}" = "true" ]; then
91+
if [ "${{ matrix.zig }}" = "true" ]; then
92+
napi build --platform --release --target ${{ matrix.target }} --zig
93+
elif [ "${{ matrix.cross }}" = "true" ]; then
8294
napi build --platform --release --target ${{ matrix.target }} --use-napi-cross
8395
else
8496
napi build --platform --release --target ${{ matrix.target }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Rust
22
target/
3-
Cargo.lock
43

54
# Node / pnpm
65
dashboard/node_modules/

0 commit comments

Comments
 (0)