This repository was archived by the owner on Mar 17, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (74 loc) · 2.81 KB
/
release.yml
File metadata and controls
79 lines (74 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Build release
permissions:
contents: write
on:
workflow_dispatch:
push:
tags:
- 'v*'
jobs:
build-release-binaries:
strategy:
matrix:
platform:
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
features: bundled
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
features: bundled
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
features: bundled
- os: ubuntu-latest
target: aarch64-unknown-linux-musl
features: bundled
- os: macos-latest
target: x86_64-apple-darwin
features: bundled
- os: macos-latest
target: aarch64-apple-darwin
features: bundled
- os: windows-latest
target: x86_64-pc-windows-msvc
features: bundled
rustflags: -C target-feature=+crt-static
bin_suffix: .exe
name: Build release binary (${{ matrix.platform.target }} on ${{ matrix.platform.os }})
runs-on: ${{ matrix.platform.os }}
env:
RUSTFLAGS: ${{ matrix.platform.rustflags || '' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build binary
uses: houseabsolute/actions-rust-cross@v1
with:
command: build
target: ${{ matrix.platform.target }}
args: '-p edgee-cli --bin edgee --release --features "${{ matrix.platform.features }}"'
- name: Save binary
uses: actions/upload-artifact@v4
with:
name: edgee.${{ matrix.platform.target }}${{ matrix.platform.bin_suffix || '' }}
path: target/${{ matrix.platform.target }}/release/edgee${{ matrix.platform.bin_suffix || '' }}
retention-days: 3
- run: cp target/${{ matrix.platform.target }}/release/edgee${{ matrix.platform.bin_suffix || '' }} edgee.${{ matrix.platform.target }}${{ matrix.platform.bin_suffix || '' }}
- name: Publish artifacts and release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: edgee.${{ matrix.platform.target }}${{ matrix.platform.bin_suffix || '' }}
tags: true
- name: Install Sentry CLI
uses: matbour/setup-sentry-cli@v2
with:
version: latest
token: ${{ secrets.SENTRY_AUTH_TOKEN }}
organization: ${{ vars.SENTRY_ORG }}
project: ${{ vars.SENTRY_PROJECT }}
- name: Upload Debug Information Files to Sentry
run: |
sentry-cli debug-files bundle-sources target/${{ matrix.platform.target }}/release/edgee
sentry-cli debug-files upload target/${{ matrix.platform.target }}/release/edgee.src.zip target/${{ matrix.platform.target }}/release/edgee