From a902b36b9bf44cbe79f508b5896d3f1580ac4f63 Mon Sep 17 00:00:00 2001 From: jrconradt Date: Sat, 6 Jun 2026 07:46:45 -0700 Subject: [PATCH 1/4] Add CI workflow: build, test, pack MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitHub Actions pipeline on push/PR to main — builds the solution, runs tests, packs the library, and uploads the nupkg. Generated with Claude Code --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a725a33 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build-test-pack: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: '10.0.x' + + - name: Build + run: dotnet build LinearPipe.Net.slnx -c Release + + - name: Test + run: dotnet test LinearPipe.Net.slnx -c Release --no-build + + - name: Pack + run: dotnet pack src/LinearPipe.Net/LinearPipe.Net.csproj -c Release --no-build -o artifacts + + - uses: actions/upload-artifact@v4 + with: + name: nupkg + path: artifacts/*.nupkg From 124f5c2107b3cb3592fdd8a313d13814f9ceb4d6 Mon Sep 17 00:00:00 2001 From: jrconradt Date: Sat, 6 Jun 2026 07:50:57 -0700 Subject: [PATCH 2/4] CI: build and pack only (tests need AVX512F, unavailable on hosted runners) Generated with Claude Code --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a725a33..89e4443 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,9 +19,6 @@ jobs: - name: Build run: dotnet build LinearPipe.Net.slnx -c Release - - name: Test - run: dotnet test LinearPipe.Net.slnx -c Release --no-build - - name: Pack run: dotnet pack src/LinearPipe.Net/LinearPipe.Net.csproj -c Release --no-build -o artifacts From 99bad047f7d25252570f95e725b042491f4b0187 Mon Sep 17 00:00:00 2001 From: jrconradt Date: Sat, 6 Jun 2026 07:55:17 -0700 Subject: [PATCH 3/4] CI: publish to NuGet on main; pin package version to 0.1.0 Add a publish job gated on the nuget environment (NUGET_API_KEY), running only on push to main. Set Version to 0.1.0 (was defaulting to 1.0.0). Generated with Claude Code --- .github/workflows/ci.yml | 20 +++++++++++++++++++- Directory.Build.props | 1 + 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89e4443..9b2a1be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: branches: [main] jobs: - build-test-pack: + build-pack: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -26,3 +26,21 @@ jobs: with: name: nupkg path: artifacts/*.nupkg + + publish: + needs: build-pack + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + environment: nuget + steps: + - uses: actions/download-artifact@v4 + with: + name: nupkg + path: artifacts + + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: '10.0.x' + + - name: Push to NuGet + run: dotnet nuget push artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate diff --git a/Directory.Build.props b/Directory.Build.props index 58f53d2..26942a8 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,5 +1,6 @@ + 0.1.0 Copyright 2026 Infalligence Labs Apache-2.0 From 9833e7c8c890edbc506362c3e42e291ddae36be5 Mon Sep 17 00:00:00 2001 From: jrconradt Date: Sat, 6 Jun 2026 08:01:50 -0700 Subject: [PATCH 4/4] Mark bench project non-packable Only the library should publish; tests already set IsPackable=false. Generated with Claude Code --- src/LinearPipe.Net.Bench/LinearPipe.Net.Bench.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LinearPipe.Net.Bench/LinearPipe.Net.Bench.csproj b/src/LinearPipe.Net.Bench/LinearPipe.Net.Bench.csproj index 77cf642..c5434c8 100644 --- a/src/LinearPipe.Net.Bench/LinearPipe.Net.Bench.csproj +++ b/src/LinearPipe.Net.Bench/LinearPipe.Net.Bench.csproj @@ -6,6 +6,7 @@ enable enable true + false