Skip to content
Draft
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
3 changes: 3 additions & 0 deletions .github/ci-path-filters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ shared:
- 'crates/adaptive/src/**'
- 'crates/core/Cargo.toml'
- 'crates/core/src/**'
- 'integrations/coding-agents/**'
- 'justfile'
- 'rust-toolchain.toml'

Expand All @@ -24,6 +25,7 @@ docs:
- 'crates/node/*.js'
- 'crates/**/*.md'
- 'docs/**'
- 'integrations/coding-agents/**'
- 'python/nemo_flow/**'
- 'scripts/build-docs.sh'
- 'scripts/docs/**'
Expand All @@ -34,6 +36,7 @@ rust:
- 'crates/**/Cargo.toml'
- 'crates/**/*.rs'
- 'crates/ffi/cbindgen.toml'
- 'integrations/coding-agents/**'

go:
- 'crates/ffi/Cargo.toml'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ jobs:
CARGO_REGISTRY_TOKEN: ${{ steps.crates-io-auth.outputs.token }}
run: |
set -euo pipefail
for package in nemo-flow nemo-flow-adaptive nemo-flow-ffi; do
for package in nemo-flow nemo-flow-adaptive nemo-flow-ffi nemo-flow-sidecar; do
cargo publish --package "$package" --no-verify --allow-dirty
done
Expand Down
73 changes: 73 additions & 0 deletions .github/workflows/ci_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,76 @@ jobs:
flags: rust-${{ matrix.platform }}
name: rust-${{ matrix.platform }}
verbose: true

Package:
name: Package (${{ matrix.platform }})
needs: [Test]
if: ${{ !cancelled() && needs.Test.result == 'success' }}
runs-on: ${{ matrix.runner }}
timeout-minutes: 60
permissions:
contents: read
strategy:
fail-fast: false
matrix:
include:
- platform: linux-amd64
runner: ubuntu-latest
- platform: linux-arm64
runner: ubuntu-24.04-arm
- platform: macos-arm64
runner: macos-15
- platform: windows-amd64
runner: windows-2022
- platform: windows-arm64
runner: windows-11-arm

steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Load CI tool versions
id: ci-config
uses: ./.github/actions/load-ci-tool-versions

- uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
with:
cache: false
toolchain: ${{ steps.ci-config.outputs.rust_version }}

- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
shared-key: nemo-flow-rust-${{ runner.os }}-${{ runner.arch }}-${{ steps.ci-config.outputs.rust_version }}
workspaces: . -> target
cache-all-crates: true
cache-bin: false
save-if: false

- name: Build sidecar release binary
working-directory: ${{ env.NEMO_FLOW_CI_WORKSPACE }}
run: |
set -e
cargo build --release -p nemo-flow-sidecar

- name: Stage sidecar binary artifact
working-directory: ${{ env.NEMO_FLOW_CI_WORKSPACE }}
run: |
set -euo pipefail
binary="nemo-flow-sidecar"
if [ "${{ runner.os }}" = "Windows" ]; then
binary="${binary}.exe"
fi
source="${NEMO_FLOW_CI_WORKSPACE}/target/release/${binary}"
if [ ! -f "$source" ]; then
echo "Error: expected sidecar binary at ${source}" >&2
exit 1
fi
mkdir -p "${NEMO_FLOW_CI_WORKSPACE_TMP}/sidecar"
cp "$source" "${NEMO_FLOW_CI_WORKSPACE_TMP}/sidecar/${binary}"

- name: Upload sidecar binary artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: sidecar-${{ matrix.platform }}
path: ${{ env.NEMO_FLOW_CI_WORKSPACE_TMP }}/sidecar/*
if-no-files-found: error
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ publish:artifactory:cargo:
chmod 600 "${cargo_home}/credentials.toml"
for crate in nemo-flow nemo-flow-adaptive nemo-flow-ffi; do
for crate in nemo-flow nemo-flow-adaptive nemo-flow-ffi nemo-flow-sidecar; do
cargo publish --package "$crate" --registry artifactory --allow-dirty
done
Expand Down
Loading
Loading