Skip to content
Open
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
16 changes: 15 additions & 1 deletion .github/workflows/release-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,28 @@ jobs:
run: rustup target add ${{ matrix.target }}

- name: Build Binary
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
run: cargo build --release --target ${{ matrix.target }}

- name: Archive Binary
- name: Install Sentry CLI
if: startsWith(github.ref, 'refs/tags/')
run: npm install -g @sentry/cli

- name: Upload Debug Files to Sentry
if: startsWith(github.ref, 'refs/tags/')
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
run: |
npx @sentry/cli upload-dif --org ${{ secrets.SENTRY_ORG }} --project ${{ secrets.SENTRY_PROJECT }} ./target/${{ matrix.target }}/release

- name: Archive Binary (excluding debug files)
run: |
BIN_NAME="corgea${{ matrix.ext }}"
TARGET_DIR="target/${{ matrix.target }}/release"
ARCHIVE_NAME="${BIN_NAME}-${{ matrix.target }}.zip"
cd $TARGET_DIR
# Only include the binary, exclude debug files
zip -j "../../../$ARCHIVE_NAME" "$BIN_NAME"
shell: bash

Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
- uses: actions/checkout@v4
- name: Build wheels
uses: PyO3/maturin-action@v1
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
with:
target: ${{ matrix.platform.target }}
args: --release --out dist
Expand Down Expand Up @@ -64,6 +66,8 @@ jobs:
- uses: actions/checkout@v4
- name: Build wheels
uses: PyO3/maturin-action@v1
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
with:
target: ${{ matrix.platform.target }}
args: --release --out dist
Expand All @@ -86,6 +90,8 @@ jobs:
- uses: actions/checkout@v4
- name: Build wheels
uses: PyO3/maturin-action@v1
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
with:
target: ${{ matrix.platform.target }}
args: --release --out dist
Expand All @@ -101,6 +107,8 @@ jobs:
- uses: actions/checkout@v4
- name: Build sdist
uses: PyO3/maturin-action@v1
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
with:
command: sdist
args: --out dist
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
.DS_Store
.dccache
*.zip
.env
.vscode
Loading
Loading