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
4 changes: 4 additions & 0 deletions .github/workflows/external-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ jobs:
shell: bash
run: make test-lua

- name: Run version resolution tests
shell: bash
run: make test-version

- name: Run bun tests
shell: bash
if: ${{ matrix.os == 'macos-latest' }}
Expand Down
34 changes: 22 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Prebuild

on:
push:
branches: [main]
branches: [main, fix/download-version]
tags:
- "v*"
pull_request:
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
run: rustup target add ${{ matrix.target }}

- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
uses: mlugg/setup-zig@v2
with:
version: 0.15.2

Expand Down Expand Up @@ -206,7 +206,7 @@ jobs:
run: rustup target add ${{ matrix.target }}

- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
uses: mlugg/setup-zig@v2
with:
version: 0.15.2

Expand Down Expand Up @@ -319,7 +319,7 @@ jobs:
run: rustup target add ${{ matrix.target }}

- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
uses: mlugg/setup-zig@v2
with:
version: 0.15.2

Expand Down Expand Up @@ -367,6 +367,9 @@ jobs:
steps:
- uses: actions/checkout@v5

- name: Install Lua
uses: leafo/gh-actions-lua@v12

- name: Download artifacts
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -432,7 +435,7 @@ jobs:

- name: Determine version
id: version
run: ./scripts/determine-version.sh
run: lua scripts/determine-version.lua

- name: Upload Release Assets
uses: softprops/action-gh-release@v2
Expand Down Expand Up @@ -466,11 +469,15 @@ jobs:
needs: [build-nvim, build-c, build-mcp]
runs-on: ubuntu-latest
if: >-
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/node' || startsWith(github.ref, 'refs/tags/v')))
|| (github.event_name == 'pull_request' && (github.head_ref == 'main' || github.head_ref == 'node'))
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/fix/download-version' || startsWith(github.ref, 'refs/tags/v')))
|| (github.event_name == 'pull_request' && github.head_ref == 'main')

steps:
- uses: actions/checkout@v5

- name: Install Lua
uses: leafo/gh-actions-lua@v12

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

Expand All @@ -479,7 +486,7 @@ jobs:

- name: Determine version
id: version
run: ./scripts/determine-version.sh
run: lua scripts/determine-version.lua

- name: Publish crates
env:
Expand All @@ -491,13 +498,16 @@ jobs:
needs: [build-c]
runs-on: ubuntu-latest
if: >-
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/node' || startsWith(github.ref, 'refs/tags/v')))
|| (github.event_name == 'pull_request' && (github.head_ref == 'main' || github.head_ref == 'node'))
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/fix/download-version' || startsWith(github.ref, 'refs/tags/v')))
|| (github.event_name == 'pull_request' && github.head_ref == 'main')
permissions:
contents: read
steps:
- uses: actions/checkout@v5

- name: Install Lua
uses: leafo/gh-actions-lua@v12

- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -506,7 +516,7 @@ jobs:

- name: Determine version
id: version
run: ./scripts/determine-version.sh
run: lua scripts/determine-version.lua

- name: Download npm package artifacts
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -559,5 +569,5 @@ jobs:

cd packages/fff-node
npm install
npx tsc
npm run build
npm publish --tag "$TAG" --access public || echo "Failed to publish @ff-labs/fff-node (may already exist)"
Loading
Loading