Skip to content

Commit d794e43

Browse files
committed
fix: Download binaries for new versioning system
1 parent 8513095 commit d794e43

11 files changed

Lines changed: 1076 additions & 560 deletions

File tree

.github/workflows/external-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ jobs:
9090
shell: bash
9191
run: make test-lua
9292

93+
- name: Run version resolution tests
94+
shell: bash
95+
run: make test-version
96+
9397
- name: Run bun tests
9498
shell: bash
9599
if: ${{ matrix.os == 'macos-latest' }}

.github/workflows/release.yaml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Prebuild
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, fix/download-version]
66
tags:
77
- "v*"
88
pull_request:
@@ -75,7 +75,7 @@ jobs:
7575
run: rustup target add ${{ matrix.target }}
7676

7777
- name: Install Zig
78-
uses: goto-bus-stop/setup-zig@v2
78+
uses: mlugg/setup-zig@v2
7979
with:
8080
version: 0.15.2
8181

@@ -206,7 +206,7 @@ jobs:
206206
run: rustup target add ${{ matrix.target }}
207207

208208
- name: Install Zig
209-
uses: goto-bus-stop/setup-zig@v2
209+
uses: mlugg/setup-zig@v2
210210
with:
211211
version: 0.15.2
212212

@@ -319,7 +319,7 @@ jobs:
319319
run: rustup target add ${{ matrix.target }}
320320

321321
- name: Install Zig
322-
uses: goto-bus-stop/setup-zig@v2
322+
uses: mlugg/setup-zig@v2
323323
with:
324324
version: 0.15.2
325325

@@ -367,6 +367,9 @@ jobs:
367367
steps:
368368
- uses: actions/checkout@v5
369369

370+
- name: Install Lua
371+
uses: leafo/gh-actions-lua@v12
372+
370373
- name: Download artifacts
371374
uses: actions/download-artifact@v4
372375
with:
@@ -432,7 +435,7 @@ jobs:
432435
433436
- name: Determine version
434437
id: version
435-
run: ./scripts/determine-version.sh
438+
run: lua scripts/determine-version.lua
436439

437440
- name: Upload Release Assets
438441
uses: softprops/action-gh-release@v2
@@ -466,11 +469,15 @@ jobs:
466469
needs: [build-nvim, build-c, build-mcp]
467470
runs-on: ubuntu-latest
468471
if: >-
469-
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/node' || startsWith(github.ref, 'refs/tags/v')))
470-
|| (github.event_name == 'pull_request' && (github.head_ref == 'main' || github.head_ref == 'node'))
472+
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/fix/download-version' || startsWith(github.ref, 'refs/tags/v')))
473+
|| (github.event_name == 'pull_request' && github.head_ref == 'main')
474+
471475
steps:
472476
- uses: actions/checkout@v5
473477

478+
- name: Install Lua
479+
uses: leafo/gh-actions-lua@v12
480+
474481
- name: Install Rust
475482
uses: dtolnay/rust-toolchain@stable
476483

@@ -479,7 +486,7 @@ jobs:
479486

480487
- name: Determine version
481488
id: version
482-
run: ./scripts/determine-version.sh
489+
run: lua scripts/determine-version.lua
483490

484491
- name: Publish crates
485492
env:
@@ -491,13 +498,16 @@ jobs:
491498
needs: [build-c]
492499
runs-on: ubuntu-latest
493500
if: >-
494-
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/node' || startsWith(github.ref, 'refs/tags/v')))
495-
|| (github.event_name == 'pull_request' && (github.head_ref == 'main' || github.head_ref == 'node'))
501+
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/fix/download-version' || startsWith(github.ref, 'refs/tags/v')))
502+
|| (github.event_name == 'pull_request' && github.head_ref == 'main')
496503
permissions:
497504
contents: read
498505
steps:
499506
- uses: actions/checkout@v5
500507

508+
- name: Install Lua
509+
uses: leafo/gh-actions-lua@v12
510+
501511
- name: Setup Node.js
502512
uses: actions/setup-node@v4
503513
with:
@@ -506,7 +516,7 @@ jobs:
506516

507517
- name: Determine version
508518
id: version
509-
run: ./scripts/determine-version.sh
519+
run: lua scripts/determine-version.lua
510520

511521
- name: Download npm package artifacts
512522
uses: actions/download-artifact@v4
@@ -559,5 +569,5 @@ jobs:
559569
560570
cd packages/fff-node
561571
npm install
562-
npx tsc
572+
npm run build
563573
npm publish --tag "$TAG" --access public || echo "Failed to publish @ff-labs/fff-node (may already exist)"

0 commit comments

Comments
 (0)