Skip to content
Draft
Changes from 1 commit
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
Prev Previous commit
Next Next commit
ci: fix agnostic packages built on linux-x64
  • Loading branch information
Flash0ver committed Feb 19, 2026
commit bfc3dc4ba6152b5b0a3d6d3f14f5b636cdee6590
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@
- run: bun run check:deps

lint-dotnet:
name: .NET Lint
needs: [changes]
if: needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
- run: dotnet format src/dotnet/Sentry.Cli.slnx --verify-no-changes

test-unit:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
name: Unit Tests
needs: [changes]
if: needs.changes.outputs.code == 'true'
Expand Down Expand Up @@ -209,67 +209,67 @@
path: dist-bin/sentry-*

build-nuget:
name: Pack NuGet (${{ matrix.name }})
needs: [changes, lint-dotnet, build-binary]
if: needs.changes.outputs.code == 'true'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: linux-x64
os: ubuntu-latest
pack-target: linux-x64
pack-agnostic: true
- name: linux-arm64
os: ubuntu-24.04-arm
pack-target: linux-arm64
pack-agnostic: false
- name: macos-arm64
os: macos-latest
pack-target: darwin-arm64
pack-agnostic: false
- name: macos-x64
os: macos-latest
pack-target: darwin-x64
pack-agnostic: false
- name: windows-x64
os: windows-latest
pack-target: windows-x64
pack-agnostic: false
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- uses: actions/cache@v4
id: cache
with:
path: node_modules
key: node-modules-${{ matrix.os }}-${{ hashFiles('bun.lock', 'patches/**') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
shell: bash
run: bun install --frozen-lockfile
- uses: actions/setup-dotnet@v4
- name: Download binary
uses: actions/download-artifact@v4
with:
name: sentry-${{ matrix.pack-target }}
path: dist-bin
- name: Make binary executable
if: runner.os != 'Windows'
run: chmod +x dist-bin/sentry-*
- name: Pack NuGet packages
run: bun run script/pack.ts --target ${{ matrix.pack-target }}
- name: Pack agnostic NuGet packages
if: matrix.pack-agnostic == 'true'
if: matrix.pack-agnostic
run: bun run script/pack.ts --no-clean --agnostic
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: nuget-${{ matrix.name }}
path: dist-pkg/*.nupkg

test-e2e:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
name: E2E Tests
needs: [build-binary]
runs-on: ubuntu-latest
Expand All @@ -296,35 +296,35 @@
run: bun run test:e2e

test-dotnet:
name: .NET Tests (${{ matrix.target }})
needs: [changes, lint-dotnet, build-binary]
if: needs.changes.outputs.code == 'true'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- target: darwin-arm64
os: macos-latest
- target: linux-x64
os: ubuntu-latest
- target: windows-x64
os: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
- name: Download binary
uses: actions/download-artifact@v4
with:
name: sentry-${{ matrix.target }}
path: dist-bin
- name: Make binary executable
if: runner.os != 'Windows'
run: chmod +x dist-bin/sentry-${{ matrix.target }}
- name: .NET Tests
run: dotnet test --project src/dotnet/Sentry.Cli.Tests/Sentry.Cli.Tests.csproj

build-npm:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
name: Build npm Package (Node ${{ matrix.node }})
needs: [lint, test-unit]
runs-on: ubuntu-latest
Expand Down
Loading