Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
1757a9a
Comment
liammclennan-ro Nov 25, 2026
285289d
Update github workflows.
liammclennan-ro Nov 25, 2026
01aaa06
Review feedback. Assisted-by: claude/fable5-2
liammclennan-ro Nov 25, 2026
f49a4c7
README
liammclennan-ro Nov 25, 2026
2621ce5
Move Github release creation to a powershell script. Assisted-by: cla…
liammclennan-ro Nov 25, 2026
dd07cbc
Merge pull request #516 from liammclennan-ro/build-and-publish-automa…
KodrAus Nov 25, 2026
953098c
Only publish docker images for merges to main or manual builds of dev…
liammclennan-ro Nov 26, 2026
f5eba83
Readme update.
liammclennan-ro Nov 26, 2026
8df9ceb
Merge pull request #517 from liammclennan-ro/docker-image-publish
liammclennan Nov 26, 2026
c409b0e
Fix bug due to log(0) being undefined. Assisted-by: claude/fable5-2
liammclennan-ro Nov 27, 2026
8471278
Try to make test more readable, but without reproducing the implement…
liammclennan-ro Nov 27, 2026
74bba4b
Merge pull request #518 from liammclennan-ro/fix-histogram-bug
liammclennan Nov 27, 2026
f0cf7bd
Fix MCP server race. Assisted-by: claude/fable5-2
liammclennan-ro Nov 27, 2026
f62161a
Merge pull request #519 from liammclennan-ro/fix-mcp-test-race
KodrAus Nov 27, 2026
9f2b6e2
Update the command list in README.md, tidy up
nblumhardt Nov 30, 2026
a830ac9
Merge pull request #520 from nblumhardt-ro/update-command-docs-2026.2
KodrAus Nov 30, 2026
e02eac9
target docker pushes to seqcli rather than seqcli-ci
KodrAus Nov 30, 2026
ff3e5ac
Merge pull request #521 from KodrAus/ci/target-image
nblumhardt Dec 1, 2026
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
46 changes: 27 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# If this file is renamed, the incrementing run attempt number will be reset. If the workflow's
# `name` changes, the `workflow_run` trigger in publish.yml must be updated.
# Builds, tests and packages (on Windows and Linux) the project on merges or PRs to 'dev' or 'main'.
# Saves artifacts (from Windows job) on merges to main, or when the workflow is manually triggered with 'Publish a GitHub release and packages'.
# The Linux job runs the tests against a Seq Docker container.

name: CI

Expand All @@ -11,7 +12,7 @@ on:
workflow_dispatch:
inputs:
publish:
description: 'Publish a GitHub release'
description: 'Publish a GitHub release and packages'
type: boolean
required: true
default: true
Expand All @@ -26,35 +27,36 @@ jobs:
name: Build (Windows)
runs-on: windows-latest

# A manual run with the `publish` input unchecked does nothing.
if: github.event_name != 'workflow_dispatch' || inputs.publish

permissions:
# Required for creating GitHub releases.
contents: write
contents: read

steps:
- uses: actions/checkout@v6
- name: Setup
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Build and Publish
- name: Build and Package
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: pwsh
run: |
./build/Build.Windows.ps1
- name: Upload packages
# Consumed by the publish-nuget job in publish.yml
if: github.event_name != 'pull_request'
# Consumed by the publish-nuget and publish-github jobs in publish.yml
if: env.CI_PUBLISH == 'true'
uses: actions/upload-artifact@v7
with:
name: packages
path: artifacts/*.nupkg
if-no-files-found: error
retention-days: 1
- name: Upload archives
# Consumed by the publish-npm job in publish.yml
if: github.event_name != 'pull_request'
# Consumed by the publish-npm and publish-github jobs in publish.yml
if: env.CI_PUBLISH == 'true'
uses: actions/upload-artifact@v7
with:
name: archives
Expand All @@ -63,29 +65,35 @@ jobs:
artifacts/seqcli-*-*.tar.gz
if-no-files-found: error
retention-days: 1
- name: Upload docs
# Consumed by the publish-github job in publish.yml
if: env.CI_PUBLISH == 'true'
uses: actions/upload-artifact@v7
with:
name: docs
path: artifacts/seqcli-*.md
if-no-files-found: error
retention-days: 1

build-linux:
name: Build (Linux)
runs-on: ubuntu-24.04

# A manual run with the `publish` input unchecked does nothing.
if: github.event_name != 'workflow_dispatch' || inputs.publish

permissions:
contents: write
contents: read

steps:
- uses: actions/checkout@v6
- name: Setup
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Configure Docker
run: |
docker run --privileged --rm linuxkit/binfmt:bebbae0c1100ebf7bf2ad4dfb9dfd719cf0ef132
sudo service docker restart
- name: Build and Publish
- name: Build and Package
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
SEQ_DOCKER_TAG: 2026.1
shell: pwsh
run: |
Expand Down
116 changes: 104 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Publishes the packages built by a successful CI run to NuGet.org and npm
# Publishes the packages built by a successful CI run: creates a draft GitHub release, pushes the
# packages to NuGet.org and npm and the Docker images to Docker Hub, then publishes the release once
# all three registries have succeeded.

name: Publish

Expand All @@ -16,14 +18,54 @@ env:
CI_TARGET_BRANCH: ${{ github.event.workflow_run.head_branch }}

jobs:
publish-nuget:
name: Publish (NuGet)
draft-release:
name: Draft GitHub release
runs-on: ubuntu-24.04

if: >-
github.event.workflow_run.conclusion == 'success' &&
(github.event.workflow_run.event == 'push' || github.event.workflow_run.event == 'workflow_dispatch') &&
github.event.workflow_run.head_repository.full_name == github.repository
github.event.workflow_run.head_repository.full_name == github.repository &&
(github.event.workflow_run.event == 'workflow_dispatch' ||
(github.event.workflow_run.event == 'push' && github.event.workflow_run.head_branch == 'main'))

permissions:
# Required to download artifacts from the triggering CI run.
actions: read
# Required to create the release.
contents: write

outputs:
tag: ${{ steps.draft.outputs.tag }}

steps:
# Build.Common.ps1 and baseversion, at the commit CI built, to reproduce its version.
- uses: actions/checkout@v6
with:
ref: ${{ github.event.workflow_run.head_sha }}
persist-credentials: false
- name: Download release assets
# Every artifact of the CI run: `packages`, `archives` and `docs`.
uses: actions/download-artifact@v8
with:
path: release-assets
merge-multiple: true
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}
- name: Create draft release
# Writes the release tag to the step's `tag` output.
id: draft
env:
GH_TOKEN: ${{ github.token }}
HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
shell: pwsh
run: |
./build/Build.Release.ps1 -AssetDir ./release-assets -Target $env:HEAD_SHA

publish-nuget:
name: Publish (NuGet)
runs-on: ubuntu-24.04

needs: draft-release

permissions:
# Required to download artifacts from the triggering CI run.
Expand Down Expand Up @@ -57,18 +99,15 @@ jobs:
$packages = @(Get-ChildItem ./packages/*.nupkg)
if ($packages.Count -eq 0) { throw "No packages found in ./packages" }
foreach ($nupkg in $packages) {
dotnet nuget push "$nupkg" --api-key "$env:NUGET_API_KEY" --source https://api.nuget.org/v3/index.json
dotnet nuget push "$nupkg" --api-key "$env:NUGET_API_KEY" --source https://api.nuget.org/v3/index.json --skip-duplicate
if ($LASTEXITCODE -ne 0) { throw "Publishing failed" }
}

publish-npm:
name: Publish (npm)
runs-on: ubuntu-24.04

if: >-
github.event.workflow_run.conclusion == 'success' &&
(github.event.workflow_run.event == 'push' || github.event.workflow_run.event == 'workflow_dispatch') &&
github.event.workflow_run.head_repository.full_name == github.repository
needs: draft-release

permissions:
# Required to download artifacts from the triggering CI run.
Expand All @@ -78,8 +117,8 @@ jobs:
id-token: write

steps:
# Build.Npm.ps1 and the package templates under ./npm, at the commit CI built. The checks
# above guarantee this is a commit pushed to this repository, not pull request code.
# Build.Npm.ps1 and the package templates under ./npm, at the commit CI built. The checks on
# the draft-release job guarantee this is a commit pushed to this repository, not pull request code.
- uses: actions/checkout@v6
with:
ref: ${{ github.event.workflow_run.head_sha }}
Expand All @@ -104,3 +143,56 @@ jobs:
shell: pwsh
run: |
./build/Build.Npm.ps1 -ArchiveDir ./npm-archives

publish-docker:
name: Publish (Docker)
runs-on: ubuntu-24.04

needs: draft-release

permissions:
contents: read

steps:
# Build.Docker.ps1, the Dockerfiles and the source, at the commit CI built and tested. The checks
# on the draft-release job guarantee this is a commit pushed to this repository, not pull request code.
- uses: actions/checkout@v6
with:
ref: ${{ github.event.workflow_run.head_sha }}
persist-credentials: false
- name: Setup
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Configure Docker
# Enables building the arm64 image on the x64 runner.
run: |
docker run --privileged --rm linuxkit/binfmt:bebbae0c1100ebf7bf2ad4dfb9dfd719cf0ef132
sudo service docker restart
- name: Build and Publish
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
shell: pwsh
run: |
./build/Build.Docker.ps1

publish-github:
name: Publish GitHub release
runs-on: ubuntu-24.04

# Only publish the release once the packages are on NuGet.org, npm and Docker Hub.
needs: [ draft-release, publish-nuget, publish-npm, publish-docker ]

permissions:
# Required to publish the release and create its tag.
contents: write

steps:
- name: Publish release
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ needs.draft-release.outputs.tag }}
run: |
gh release edit "$TAG" --draft=false --repo "$GITHUB_REPOSITORY"
Loading
Loading