Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
6f4dc99
ci: Support v1 version branch
jpnurmi Oct 14, 2026
8dc1bfb
ci: Drop v1 push filters
jpnurmi Oct 14, 2026
212b6a6
ci(codeql): Analyze v1 pushes
jpnurmi Oct 14, 2026
a6ee584
feat(build): shared library version (#2103)
jpnurmi Oct 14, 2026
040c15f
ci: release archive version (#2105)
jpnurmi Oct 14, 2026
67e0b6d
feat!: make native the default backend (#2186)
jpnurmi Oct 14, 2026
6dcddc8
ci: Publish v1 benchmarks separately
jpnurmi Oct 15, 2026
1e8a9bc
Merge remote-tracking branch 'origin/master' into v1
jpnurmi Oct 15, 2026
3d26077
ref: stabilize screenshot APIs (#2204)
jpnurmi Oct 15, 2026
e7c6058
ref(transport)!: rename and document custom transport factory (#2131)
jpnurmi Oct 15, 2026
a0e2564
perf: add support for batched scope updates (#2107)
jpnurmi Oct 15, 2026
1f7b255
feat(scope): Split global scope and expose isolation scope (#2160)
jpnurmi Oct 15, 2026
5ae31e0
feat(native): Provide crash metadata to `on_crash` (#2174)
jpnurmi Oct 15, 2026
bcbca11
fix: provide `debug_meta.images` to `on_crash` (#2184)
jpnurmi Oct 15, 2026
cc54b28
Merge remote-tracking branch 'origin/master' into v1
jpnurmi Oct 15, 2026
e550d2f
fix(native): honor symbolication option for captured Windows frames
jpnurmi Oct 16, 2026
0f5e3a2
perf(native): Add IPC foundations (#2155)
jpnurmi Oct 16, 2026
4ce28e7
perf(native): Sync scope over IPC (#2157)
jpnurmi Oct 16, 2026
4cef180
Merge remote-tracking branch 'origin/master' into v1
jpnurmi Oct 17, 2026
e5f9615
feat(internal): stdout transport (#2213)
jpnurmi Oct 19, 2026
eaca2f9
fix(native): reduce daemon stack usage (#2211)
jpnurmi Oct 19, 2026
839f510
fix(unwinder): Reduce maps buffer stack usage (#2212)
jpnurmi Oct 19, 2026
ce33b9b
Merge remote-tracking branch 'origin/master' into v1
jpnurmi Oct 19, 2026
65c9d1a
fix(native): Preserve existing alternate signal stacks (#2219)
jpnurmi Oct 20, 2026
567e0e9
Merge remote-tracking branch 'origin/master' into v1
jpnurmi Oct 20, 2026
725ed34
feat(native): add basic crash handling to the daemon (#2220)
jpnurmi Oct 20, 2026
27790f3
fix(native): group proc maps modules by load (#2228)
jpnurmi Oct 20, 2026
50a32b6
ref: Share `process_vm_readv` shim between Linux readers (#2227)
jpnurmi Oct 20, 2026
7aff784
chore!: remove deprecated APIs (#2230)
jpnurmi Oct 21, 2026
0eef20c
ci: mitigate Android emulator setup failures (#2231)
jpnurmi Oct 22, 2026
c450877
fix(native): use localtime_r in the daemon file logger
jpnurmi Oct 22, 2026
712b8c2
test: stabilize flaky transaction timestamp checks (#2233)
jpnurmi Oct 23, 2026
a6afbb1
test: make unit tests work out of the box with CTest (#2234)
jpnurmi Oct 23, 2026
0fdaebc
feat: add `sentry_scope_set_trace` (#2236)
jpnurmi Oct 26, 2026
d9c645c
feat: add `sentry_continue_trace` (#2237)
jpnurmi Oct 26, 2026
3e1a9c8
feat: add `sentry_iter_trace_propagation_headers` (#2240)
jpnurmi Oct 26, 2026
e42bdcb
test: add e2e test for trace propagation (#2243)
jpnurmi Oct 26, 2026
5c72012
chore: promote `http_retry` to stable (#2246)
jpnurmi Oct 26, 2026
4bac98a
perf(scope): avoid unnecessary empty value clones (#2251)
jpnurmi Oct 27, 2026
34b5f37
feat: report host OS context under Wine, Proton and Linux containers …
tustanivsky Oct 27, 2026
c42fe2b
Merge remote-tracking branch 'origin/master' into v1
jpnurmi Oct 29, 2026
5d930d5
feat(native): support ELF modules at non-zero file offsets (#2265)
jpnurmi Oct 29, 2026
fe65354
feat(unwinder): Unwind remote threads with libunwindstack (#2267)
jpnurmi Oct 29, 2026
f815b40
feat(native): support preloading the crash handler (#2268)
jpnurmi Oct 29, 2026
a4a98f3
fix(native): Consume the preload state when a signal falls through
jpnurmi Oct 29, 2026
bfdd59a
fix(native): Skip stack reads for threads without registers
jpnurmi Oct 29, 2026
f15b5e6
feat(native): Support the chain-at-start handler strategy on Android …
jpnurmi Oct 29, 2026
76ed3a8
feat(linux): RISC-V support (#2232)
jpnurmi Oct 29, 2026
79c6494
feat: Add pkg-config support (#1411)
nmandelblit Oct 29, 2026
341a1c2
test: Skip the pkg-config test on Android
jpnurmi Oct 30, 2026
602bdfa
feat(tus): resumable uploads (#2058)
jpnurmi Nov 3, 2026
9c97815
feat(tus): gzip upload chunks with transport compression (#2222)
jpnurmi Nov 3, 2026
ad4bbc5
fix(curl): Stop file uploads at the request body length
jpnurmi Nov 3, 2026
2de9083
Merge remote-tracking branch 'origin/master' into v1
jpnurmi Nov 3, 2026
c6f5f1c
Merge remote-tracking branch 'origin/master' into v1
jpnurmi Nov 4, 2026
dc31789
fix: const-correctness of read-only APIs (#2277)
jpnurmi Nov 5, 2026
2bf9e4a
feat(native): bump default async upload timeout to 10s (#2278)
jpnurmi Nov 5, 2026
eb2b95b
feat(native): Add Android support for out-of-process crash handling (…
jpnurmi Nov 6, 2026
0bc51ba
fix(android): Flush staged session replays after the crash send
jpnurmi Nov 6, 2026
c2e11f8
fix(android): Close handed-off crash IPC fds on allocation failure
jpnurmi Nov 6, 2026
4c61799
ci(ndk): check release AARs (#2282)
jpnurmi Nov 6, 2026
3bd87aa
fix(native): Capture complete memory in full minidumps (#2281)
jpnurmi Nov 6, 2026
4910d53
fix(native): Skip absent pages in Linux full dumps
jpnurmi Nov 6, 2026
5a52b62
test(native): Keep the sparse allocation sparse under valgrind
jpnurmi Nov 6, 2026
4aa858b
fix(scope): Initialize the global scope's observers lock
jpnurmi Nov 9, 2026
e006854
fix(scope): Reset the global scope on close
jpnurmi Nov 9, 2026
10047a4
fix(native): Bound crash IPC writes and recover stalled streams (#2285)
jpnurmi Nov 9, 2026
35c1b20
ci(release): Read Craft targets from the merge target
jpnurmi Nov 9, 2026
8f12caf
build: Handle prerelease SDK versions
jpnurmi Nov 9, 2026
306d9f3
release: 1.0.0-beta.1
getsentry-bot Nov 9, 2026
846d49c
Merge commit '306d9f398fd75b04bebb3ca29652d6fcb19ee480' into v1
sentry-release-bot[bot] Nov 9, 2026
713b435
chore: fix up changelog
jpnurmi Nov 10, 2026
a6072b1
test(native): Check SO_SNDTIMEO instead of timing a stalled send
jpnurmi Nov 10, 2026
3bf43dc
test(android): Publish sentry-bom for the e2e fixture
jpnurmi Nov 10, 2026
fb4dcbc
fix(android): Don't wait for the crash service at startup
jpnurmi Nov 10, 2026
b1b9336
Merge remote-tracking branch 'origin/master' into v1
jpnurmi Nov 10, 2026
986c8ce
fix(native): Mark unused crash IPC parameter on non-Linux platforms
jpnurmi Nov 10, 2026
345030c
fix: compilation warnings and enable error on warnings (#2283)
jpnurmi Nov 10, 2026
1b108ba
ci: annotate build errors (#2289)
jpnurmi Nov 10, 2026
4b7c901
chore: Update CHANGELOG.md (#2298)
sentry-s-classifier-app[bot] Nov 10, 2026
3b5d26c
Merge remote-tracking branch 'origin/master' into v1
jpnurmi Nov 11, 2026
5b6e830
fix(android): Treat an empty proxy as a direct connection
jpnurmi Nov 11, 2026
5c6761b
ci(e2e): Pin sentry-java to 8.64.0
jpnurmi Nov 11, 2026
46c48b2
test: Loosen timing bounds for slow CI runners
jpnurmi Nov 12, 2026
3e52a82
fix(tus): Keep daemon attachments on retryable upload errors
jpnurmi Nov 12, 2026
cf7ff9f
test: Widen the killed-daemon stall bound under kcov
jpnurmi Nov 12, 2026
0aba639
fix(native): Stop on a failed scope container insert in crash IPC
jpnurmi Nov 12, 2026
13ed88d
fix: Take os-release references before moving them into the OS context
jpnurmi Nov 12, 2026
6bb931a
fix(tus): Retry a failed final attachment-ref update
jpnurmi Nov 12, 2026
0fe2edf
fix(native): Free the crash envelope path on startup failures
jpnurmi Nov 12, 2026
5034fbf
build: Honor SENTRY_ENABLE_INSTALL for the crash daemon targets
jpnurmi Nov 12, 2026
5480ea3
test(tus): Complete the mock upload at the requested length
jpnurmi Nov 12, 2026
48d2573
test: Widen the clean-exit stall bound on slow runners
jpnurmi Nov 12, 2026
0105025
test(tus): Give the invalid-offset upload time to finish
jpnurmi Nov 12, 2026
84c5c01
test: Shrink the awaiting-ready IPC payload to 2 MiB
jpnurmi Nov 12, 2026
ee96db6
test: Leave serialization out of the awaiting-ready send bound
jpnurmi Nov 13, 2026
45c6c0f
test: Give the shutdown-during-crash daemon the product timeouts
jpnurmi Nov 13, 2026
b58f9c1
test(tus): Give the native retry crash time on slow runners
jpnurmi Nov 13, 2026
49e155f
build(ndk): Disable version notices in outproc lint
jpnurmi Nov 13, 2026
38d795a
fix(native): Keep custom attachment types in crash envelopes
jpnurmi Nov 13, 2026
961c136
fix(native): Stop on a failed device context insert on Windows
jpnurmi Nov 13, 2026
70f0f36
fix(native): Free the IPC message buffer when the stream closes
jpnurmi Nov 13, 2026
a6d9430
fix(native): Serialize Android daemon service calls with shutdown
jpnurmi Nov 13, 2026
6d492f4
test(tus): Give the resume-after-shutdown upload time on slow runners
jpnurmi Nov 13, 2026
5698cdc
Merge remote-tracking branch 'origin/master' into v1
jpnurmi Nov 13, 2026
34b5290
test(cache): Fail cache_keep sends without DNS
jpnurmi Nov 13, 2026
0fedc73
fix(session): Release the scope lock before writing the session
jpnurmi Nov 13, 2026
6358442
fix(scope): Reset the global scope when scope init fails
jpnurmi Nov 13, 2026
2a804a1
fix(scope): Apply `before_breadcrumb` to local scopes
jpnurmi Nov 14, 2026
e804660
test(tus): Run the crash tests with the crash environment
jpnurmi Nov 14, 2026
dff46d7
ci(warden): Drop the analysis turn cap
jpnurmi Nov 14, 2026
fda7335
fix(native): Compute 32-bit ELF segment ends in 64 bits
jpnurmi Nov 14, 2026
d95b2a4
ci: Use setup-java v6.2.0 in check-aar
jpnurmi Nov 14, 2026
0377bd3
test(scope): Check that the global os context is frozen
jpnurmi Nov 14, 2026
43d0ef7
Revert "test(scope): Check that the global os context is frozen"
jpnurmi Nov 14, 2026
e18d138
test: Scale the native stall step timeout under sanitizers
jpnurmi Nov 14, 2026
83a140c
fix(scope): Look up the event user after inserting it
jpnurmi Nov 14, 2026
b28656d
fix(native): Send the Android crash via transport without a run path
jpnurmi Nov 14, 2026
736d5d8
Merge remote-tracking branch 'origin/master' into v1
jpnurmi Nov 16, 2026
e610081
test(scope): Check the read result in before_breadcrumb_read_scope
jpnurmi Nov 16, 2026
1b397e5
test(tracing): Compare baggage values with the event's trace header
jpnurmi Nov 16, 2026
9bf0126
ci: limit repeated identical build errors
jpnurmi Nov 16, 2026
636030b
ci: Fail the test run when the build error limit is reached
jpnurmi Nov 17, 2026
0a23860
test: Scale the native stall updates timeout under sanitizers
jpnurmi Nov 17, 2026
b959df7
fix(native): retain crash envelopes on OOM in the crash daemon (#2320)
jpnurmi Nov 18, 2026
e622a9f
test(scope): Free the scope_write_exclusive worker threads
jpnurmi Nov 18, 2026
25cb9e5
test(e2e): Shorten the interrupted TUS crash upload shutdown timeout
jpnurmi Nov 18, 2026
7dac878
fix(native): omit crash metadata in minidump-only mode (#2324)
jpnurmi Nov 19, 2026
57024e6
test(build): Check the libsentry install name versions on macOS
jpnurmi Nov 19, 2026
87c2032
test(native): Wait for the daemon to read SHUTDOWN during a crash
jpnurmi Nov 19, 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
11 changes: 9 additions & 2 deletions .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,23 @@ changelogPolicy: auto
targets:
- name: github
includeNames: /^(sentry-native).*\.zip$/
excludeNames: /^sentry-native\.zip$/
- name: registry
sdks:
github:getsentry/sentry-native:
maven:io.sentry:sentry-native-ndk:
- name: gcs
includeNames: /^(sentry-native\.zip)$/
includeNames: /^sentry-native-\d+\.\d+\.\d+.*\.zip$/
bucket: sentry-sdk-assets
paths:
- path: /sentry-native/{{version}}/
metadata:
cacheControl: public, max-age=2592000
- name: gcs
id: latest
includeNames: /^sentry-native\.zip$/
bucket: sentry-sdk-assets
paths:
- path: /sentry-native/latest/
metadata:
cacheControl: public, max-age=600
Expand All @@ -32,4 +38,5 @@ targets:
batchType: android
bundleIdPrefix: sentry-native-ndk-
requireNames:
- /^sentry-native.zip$/
- /^sentry-native-\d+\.\d+\.\d+.*\.zip$/
- /^sentry-native\.zip$/
59 changes: 59 additions & 0 deletions .github/problem-matchers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"problemMatcher": [
{
"owner": "cmake",
"pattern": [
{
"regexp": "^CMake Error at (.+):(\\d+) \\(.+\\):$",
"file": 1,
"line": 2
},
{
"regexp": "^\\s+(.+)$",
"message": 1
}
]
},
{
"owner": "gcc",
"pattern": [
{
"regexp": "^(?:C/C\\+\\+: )?(.+?):(\\d+):(?:(\\d+):)? (?:fatal )?error: (.*)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
]
},
{
"owner": "msvc",
"pattern": [
{
"regexp": "^\\s*(.+?)\\((\\d+)(?:,(\\d+))?\\)\\s*: (?:fatal )?error(?! C2220)(?: (\\w+))?\\s*: (.*?)(?: \\[[^\\]]+\\.vcxproj\\])?$",
"file": 1,
"line": 2,
"column": 3,
"code": 4,
"message": 5
}
]
},
{
"owner": "msvc-wx",
"pattern": [
{
"regexp": "^\\s*.+?\\(\\d+(?:,\\d+)?\\)\\s*: error C2220: "
},
{
"regexp": "^\\s*(.+?)\\((\\d+)(?:,(\\d+))?\\)\\s*: warning (\\w+)\\s*: (.*?)(?: \\[[^\\]]+\\.vcxproj\\])?$",
"file": 1,
"line": 2,
"column": 3,
"code": 4,
"message": 5
}
]
Comment thread
jpnurmi marked this conversation as resolved.
Resolved
}
]
}
6 changes: 5 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- v1
paths-ignore:
- "*.md"
pull_request:
Expand Down Expand Up @@ -35,6 +36,9 @@ jobs:
with:
submodules: recursive

- name: Annotate build errors
run: echo "::add-matcher::.github/problem-matchers.json"

- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
Expand All @@ -59,5 +63,5 @@ jobs:
tool: customSmallerIsBetter
output-file-path: benchmark.json
github-token: ${{ secrets.GITHUB_TOKEN }}
benchmark-data-dir-path: ./
benchmark-data-dir-path: ${{ github.ref_name == 'v1' && 'v1/' || './' }}
auto-push: true
95 changes: 78 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,18 @@ jobs:
CC: gcc-9
CXX: g++-9
TEST_X86: 1
- name: Linux Arm32 (gcc-arm-linux-gnueabihf + qemu-user)
- name: Linux Arm32 (cross-GCC + QEMU)
os: ubuntu-24.04-arm
CC: arm-linux-gnueabihf-gcc
CXX: arm-linux-gnueabihf-g++
TEST_ARM32: 1
TEST_QEMU: 1
- name: Linux RISC-V (cross-GCC + QEMU)
os: ubuntu-24.04-arm
CC: riscv64-linux-gnu-gcc
CXX: riscv64-linux-gnu-g++
TEST_RISCV: 1
TEST_QEMU: 1
- name: Linux (GCC 9.5.0)
os: ubuntu-24.04
CC: gcc-9
Expand All @@ -95,6 +101,7 @@ jobs:
os: ubuntu-24.04
CC: gcc-14
CXX: g++-14
ERROR_ON_WARNINGS: off # analyzer false positives
RUN_ANALYZER: gcc
- name: Linux (GCC 15 + runtime curl)
os: ubuntu-26.04
Expand All @@ -119,31 +126,26 @@ jobs:
os: ubuntu-24.04
CC: clang-20
CXX: clang++-20
ERROR_ON_WARNINGS: 1
RUN_ANALYZER: asan,llvm-cov
- name: Linux Arm64 (clang 20 + asan + llvm-cov)
os: ubuntu-24.04-arm
CC: clang-20
CXX: clang++-20
ERROR_ON_WARNINGS: 1
RUN_ANALYZER: asan,llvm-cov
- name: Linux (clang 20 + tsan)
os: ubuntu-24.04
CC: clang-20
CXX: clang++-20
ERROR_ON_WARNINGS: 1
RUN_ANALYZER: tsan
- name: Linux Arm64 (clang 20 + tsan)
os: ubuntu-24.04-arm
CC: clang-20
CXX: clang++-20
ERROR_ON_WARNINGS: 1
RUN_ANALYZER: tsan
- name: Linux (clang 20 + kcov)
os: ubuntu-24.04
CC: clang-20
CXX: clang++-20
ERROR_ON_WARNINGS: 1
RUN_ANALYZER: kcov
- name: Linux (GCC 13.3.0 + valgrind)
CC: gcc-13
Expand All @@ -166,28 +168,23 @@ jobs:
CMAKE_DEFINES: -DSENTRY_LIBUNWIND_SYSTEM=ON
- name: macOS 15 (xcode llvm)
os: macos-15
ERROR_ON_WARNINGS: 1
SYSTEM_VERSION_COMPAT: 0
TEST_SYSTEM_PROXY: 1
- name: macOS 26 (xcode llvm)
os: macos-26
ERROR_ON_WARNINGS: 1
SYSTEM_VERSION_COMPAT: 0
- name: macOS 15 (xcode llvm + universal)
os: macos-15
ERROR_ON_WARNINGS: 1
SYSTEM_VERSION_COMPAT: 0
CMAKE_DEFINES: -DCMAKE_OSX_ARCHITECTURES=arm64;x86_64
- name: macOS 15 (clang 18 + asan + llvm-cov)
os: macos-15-large
CC: clang
CXX: clang++
ERROR_ON_WARNINGS: 1
SYSTEM_VERSION_COMPAT: 0
RUN_ANALYZER: asan,llvm-cov
- name: macOS 26 (arm64e + PAC test)
os: macos-26
ERROR_ON_WARNINGS: 1
SYSTEM_VERSION_COMPAT: 0
CMAKE_DEFINES: -DCMAKE_OSX_ARCHITECTURES=arm64e
- name: Windows (old VS, 32-bit)
Expand Down Expand Up @@ -260,11 +257,12 @@ jobs:
TEST_MINGW: ${{ matrix.TEST_MINGW }}
TEST_WINE: ${{ matrix.TEST_WINE }}
TEST_ARM32: ${{ matrix.TEST_ARM32 }}
TEST_RISCV: ${{ matrix.TEST_RISCV }}
TEST_QEMU: ${{ matrix.TEST_QEMU }}
TEST_SYSTEM_PROXY: ${{ matrix.TEST_SYSTEM_PROXY }}
USE_SCCACHE: ${{ matrix.USE_SCCACHE }}
SCCACHE_GHA_ENABLED: ${{ matrix.USE_SCCACHE && 'true' || '' }}
ERROR_ON_WARNINGS: ${{ matrix.ERROR_ON_WARNINGS }}
ERROR_ON_WARNINGS: ${{ matrix.ERROR_ON_WARNINGS || 1 }}
RUN_ANALYZER: ${{ matrix.RUN_ANALYZER }}
ANDROID_API: ${{ matrix.ANDROID_API }}
ANDROID_NDK: ${{ matrix.ANDROID_NDK }}
Expand All @@ -275,12 +273,16 @@ jobs:
SYSTEM_PYTHON: ${{ matrix.SYSTEM_PYTHON }}
UTF8_TEST_CWD: ${{ matrix.UTF8_TEST_CWD }}
SENTRY_TEST_OOM_LIMIT: "4095" # ~4GB, to speed up OOM tests
SENTRY_TEST_BUILD_ERROR_LIMIT: "10" # give up when the same build error repeats

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
submodules: recursive

- name: Annotate build errors
run: echo "::add-matcher::.github/problem-matchers.json"

- name: Debug runner architecture
if: ${{ runner.os == 'macOS' }}
run: |
Expand All @@ -297,7 +299,7 @@ jobs:
[ -n "$CC" ] && [ -n "$CXX" ] || { echo "Ubuntu runner configurations require toolchain selection via CC and CXX" >&2; exit 1; }

- name: Installing Linux Dependencies
if: ${{ runner.os == 'Linux' && !env['TEST_X86'] && !env['TEST_ARM32'] && !env['ANDROID_API'] && !matrix.container }}
if: ${{ runner.os == 'Linux' && !env['TEST_X86'] && !env['TEST_ARM32'] && !env['TEST_RISCV'] && !env['ANDROID_API'] && !matrix.container }}
run: |
sudo apt update
# Install common dependencies
Expand Down Expand Up @@ -368,11 +370,29 @@ jobs:
libstdc++6:armhf

- name: Installing qemu-user
if: ${{ runner.os == 'Linux' && env['TEST_QEMU'] && !matrix.container }}
if: ${{ runner.os == 'Linux' && env['TEST_ARM32'] && !matrix.container }}
run: |
sudo apt update
sudo apt install -y qemu-user-static binfmt-support

- name: Installing Linux RISC-V Dependencies
if: ${{ runner.os == 'Linux' && env['TEST_RISCV'] && !matrix.container }}
run: |
sudo dpkg --add-architecture riscv64
sudo apt-get update
sudo apt-get install -y \
cmake \
gcc-riscv64-linux-gnu g++-riscv64-linux-gnu \
zlib1g-dev:riscv64 libssl-dev:riscv64 \
libcurl4-openssl-dev:riscv64 liblzma-dev:riscv64 \
libstdc++6:riscv64
echo "PKG_CONFIG_LIBDIR=/usr/lib/riscv64-linux-gnu/pkgconfig:/usr/share/pkgconfig" >> "$GITHUB_ENV"

- uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
if: ${{ runner.os == 'Linux' && env['TEST_RISCV'] && !matrix.container }}
with:
platforms: riscv64

- name: Installing Alpine Linux Dependencies
if: ${{ contains(matrix.container, 'alpine') }}
run: |
Expand Down Expand Up @@ -502,20 +522,29 @@ jobs:

- name: Test (Android)
if: ${{ env['ANDROID_API'] }}
id: android-test
continue-on-error: ${{ env.ANDROID_BOOTED != 'true' }}
uses: reactivecircus/android-emulator-runner@a421e43855164a8197daf9d8d40fe71c6996bb0d # v2.38.0
with:
with: &android-options
api-level: ${{ env.ANDROID_API }}
ndk: ${{ env.ANDROID_NDK }}
arch: ${{ env.ANDROID_ARCH }}
target: google_apis
target: default
emulator-boot-timeout: 1200
script: |
echo "ANDROID_BOOTED=true" >> "$GITHUB_ENV"
# Sync emulator clock with host to avoid timestamp assertion failures
adb shell cmd alarm set-time $(date +%s000) || adb shell su root date $(date -u +%m%d%H%M%Y.%S)
scripts/setup-android-sanitizer.sh "$RUN_ANALYZER"
pip install --upgrade --requirement tests/requirements.txt
pytest --capture=no --verbose tests
(cd ndk && ./gradlew :sentry-native-ndk:connectedDebugAndroidTest --stacktrace)
(cd ndk && ./gradlew :sentry-native-ndk-outproc:connectedDebugAndroidTest --stacktrace)

- name: Retry emulator (Android)
if: ${{ steps.android-test.outcome == 'failure' && env.ANDROID_BOOTED != 'true' }}
Comment thread
jpnurmi marked this conversation as resolved.
Resolved
uses: reactivecircus/android-emulator-runner@a421e43855164a8197daf9d8d40fe71c6996bb0d # v2.38.0
with: *android-options

- name: Test
if: ${{ !env['ANDROID_API'] }}
Expand Down Expand Up @@ -586,8 +615,11 @@ jobs:

- name: Create source archive
run: |
version=$(sed -nE 's/^#[[:space:]]*define[[:space:]]+SENTRY_SDK_VERSION[[:space:]]+"([^"]+)".*/\1/p' include/sentry.h)
test -n "$version"
rm -rf build .c* .e* .git* scripts Makefile external/breakpad/src/tools external/breakpad/src/processor
zip -r sentry-native.zip .
zip -r "sentry-native-$version.zip" .
cp "sentry-native-$version.zip" sentry-native.zip

- name: Build NDK artifacts
working-directory: ndk
Expand All @@ -599,6 +631,35 @@ jobs:
name: ${{ github.sha }}
if-no-files-found: error
path: |
sentry-native-*.zip
sentry-native.zip
ndk/lib/build/distributions/*.zip
ndk/native/build/distributions/*.zip
ndk/lib/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/*
ndk/native/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/*

check-aar:
name: Check NDK AARs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
submodules: recursive

- name: Setup Java Version
uses: actions/setup-java@77dd5b2ce225ea11469928ac317850245a74ae78 # v6.2.0
with:
distribution: "temurin"
java-version: "17"

- name: Setup Gradle
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # pin@v6.4.1

- name: Build NDK AARs
working-directory: ndk
run: ./gradlew :sentry-native-ndk:assembleRelease :sentry-native-ndk-outproc:assembleRelease

- name: Check NDK AARs
run: |
python3 scripts/check-aar.py ndk/lib/build/outputs/aar/sentry-native-ndk-release.aar
python3 scripts/check-aar.py ndk/native/build/outputs/aar/sentry-native-ndk-outproc-release.aar
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: 'CodeQL'

on:
push:
branches: [master]
branches: [master, v1]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
branches: [master, v1]
schedule:
- cron: '17 23 * * 3'

Expand Down
Loading
Loading