159 Commits
Author SHA1 Message Date
dependabot[bot] 2827085524 Bump softprops/action-gh-release from 2 to 3 (#3095)
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2 to 3.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v2...v3)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-30 12:31:09 +00:00
dependabot[bot] a7ae66e86e Bump actions/upload-artifact from 4 to 7 (#3096)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-30 12:29:35 +00:00
Rot127 9791930a89 Build and upload cross compiled tar.gz packages (#2862) 2026-09-24 21:02:12 +00:00
Rot127 59eec7ec25 Add Codecov workflow (#3076)
* Setting leniency to 0% (for now).
2026-09-15 16:26:30 +00:00
dependabot[bot] 2b7d607539 Bump pypa/cibuildwheel from 4.2.0 to 4.2.1 (#3070)
Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/pypa/cibuildwheel/releases)
- [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md)
- [Commits](https://github.com/pypa/cibuildwheel/compare/v4.2.0...v4.2.1)

---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
  dependency-version: 4.2.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-08 14:48:08 +00:00
Rot127 465eb451b8 Add AI guidelines and requirements. (#3064) 2026-09-06 19:58:09 +00:00
Rot127 251c5bb4bc Add Valgrind cmake tests. (#3030) 2026-08-13 10:29:27 +00:00
Rot127 86ea37f761 Add MSAN build option to CMakeLists.txt (#3029) 2026-08-13 09:58:48 +00:00
dependabot[bot] 542e35bd5c Bump pypa/cibuildwheel from 4.1.1 to 4.2.0 (#3026)
Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 4.1.1 to 4.2.0.
- [Release notes](https://github.com/pypa/cibuildwheel/releases)
- [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md)
- [Commits](https://github.com/pypa/cibuildwheel/compare/v4.1.1...v4.2.0)

---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-12 07:59:14 +00:00
dependabot[bot] 6fb5a17176 Bump pypa/cibuildwheel from 4.1.0 to 4.1.1 (#3006)
Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/pypa/cibuildwheel/releases)
- [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md)
- [Commits](https://github.com/pypa/cibuildwheel/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
  dependency-version: 4.1.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-28 14:02:44 +00:00
dependabot[bot] ee175f7db7 Bump actions/setup-python from 6 to 7 (#2999)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6 to 7.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-23 15:12:50 +00:00
dependabot[bot] 9f73e92b91 Bump actions/labeler from 6 to 7 (#3000)
Bumps [actions/labeler](https://github.com/actions/labeler) from 6 to 7.
- [Release notes](https://github.com/actions/labeler/releases)
- [Commits](https://github.com/actions/labeler/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/labeler
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-22 18:15:49 +00:00
مصطفي محمود كمال الدينandRot127 032f79993d RISC-V: Add v5 compatibility behaviour for CS_MODE_RISCVC/RISCV_C (#2996)
Co-authored-by: Rot127 <[email protected]>
2026-07-18 16:58:01 +00:00
dependabot[bot] ca197a0f89 Bump actions/checkout from 4 to 7 (#2994)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-14 14:26:38 +00:00
Rot127 6f41db9228 Don't build cstool arch specific details printing, if not requested. (#2888)
* Don't build cstool arch specific details printing, if not requested.

* Add workflow for cstool builds with a single arch.

* Print only options in cstool help for enabled archs.
2026-07-10 09:53:08 +00:00
dependabot[bot] 0055d669ed Bump actions/checkout from 6 to 7 (#2974)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-26 13:19:30 +00:00
dependabot[bot] a7c7577359 Bump actions/download-artifact from 4 to 8 (#2955)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 8.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v8)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-18 19:35:31 +00:00
dependabot[bot] 8778e2898d Bump pypa/cibuildwheel from 4.0.0 to 4.1.0 (#2965)
Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/pypa/cibuildwheel/releases)
- [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md)
- [Commits](https://github.com/pypa/cibuildwheel/compare/v4.0.0...v4.1.0)

---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-16 16:59:46 +00:00
dependabot[bot] d035490683 Bump pypa/cibuildwheel from 3.4.1 to 4.0.0 (#2961)
Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 3.4.1 to 4.0.0.
- [Release notes](https://github.com/pypa/cibuildwheel/releases)
- [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md)
- [Commits](https://github.com/pypa/cibuildwheel/compare/v3.4.1...v4.0.0)

---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-11 16:06:01 +00:00
dependabot[bot] 41d31f7dce Bump docker/setup-qemu-action from 3 to 4 (#2956)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 3 to 4.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-11 15:08:16 +00:00
dependabot[bot] 365dc64277 Bump actions/upload-artifact from 4 to 7 (#2957)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-11 15:07:06 +00:00
Rot127 a77504666b Without -any the labeler doesn't seem happy (#2951) 2026-06-01 11:37:32 +00:00
Rot127 3df4aef90c Fix labeler (#2950) 2026-06-01 11:03:36 +00:00
dependabot[bot] 3df6ff015f Bump actions/labeler from 4 to 6 (#2945)
Bumps [actions/labeler](https://github.com/actions/labeler) from 4 to 6.
- [Release notes](https://github.com/actions/labeler/releases)
- [Commits](https://github.com/actions/labeler/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/labeler
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-30 12:31:53 +00:00
dependabot[bot] 1f0039784c Bump actions/setup-python from 5 to 6 (#2946)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-30 12:31:34 +00:00
dependabot[bot] 847c118506 Bump softprops/action-gh-release from 2 to 3 (#2949)
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2 to 3.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v2...v3)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-30 12:31:08 +00:00
dependabot[bot] 09eadb1e7f Bump actions/checkout from 4 to 6 (#2948)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-30 12:29:30 +00:00
dependabot[bot] c28011987d Bump pypa/cibuildwheel from 3.1.3 to 3.4.1 (#2944)
Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 3.1.3 to 3.4.1.
- [Release notes](https://github.com/pypa/cibuildwheel/releases)
- [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md)
- [Commits](https://github.com/pypa/cibuildwheel/compare/v3.1.3...v3.4.1)

---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
  dependency-version: 3.4.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-30 12:27:49 +00:00
Rot127 b4344065ff Move dependabot.yml to correct dir (#2942) 2026-05-29 17:53:56 +00:00
Rot127 8bfd6ab277 Replace cmake setup with manual steps to reduce dependencies. (#2916) 2026-05-11 18:49:54 +00:00
Rot127 7b1002db6b Add dependabot.yml (#2884) 2026-03-30 12:16:52 +00:00
billow 08e655c2b7 update clang-format to 20 (#2883) 2026-03-24 11:40:59 +00:00
Rot127 3533a9c8d0 Fix 32bit build (#2796)
* Enable i686 Python libraries again.

* Add Mips32, ARM, i686 cross build files and as target to CI

* Replace strndup with own implementation for Windows.

* Fix asm text test errors on 32bit machines

* Replace all add_cs_detail() functions with the arch specific ones.

* Add note about 32 bit builds in release guide.
2026-02-15 16:14:39 +00:00
Rot127 5ba9e80812 Package build workflow fix (#2849)
* Ensure NSIS is installed before building package with CPack.

* Always build packages and upload their artifacts.
2026-02-01 11:55:41 +00:00
Rot127 8a68088fa6 Add missing apt-get update before installing dependencies. (#2832) 2025-12-17 15:50:07 +00:00
Rot127 8872be6087 Add better support for cross builds. (#2803)
* Add several cross compilation toolchain files.

* Make cstest compile sucessfully on targets without libyaml.

* Add cross compilation tests to CI.

* Add test for issue #2339

* Document cross compilation improvements.
2025-11-12 11:11:51 +00:00
Rot127 5fa9f58617 Bump to latest MacOS runner. (#2812)
The macos-13 runner is closing down.
https://github.blog/changelog/2025-09-19-github-actions-macos-13-runner-image-is-closing-down/
2025-11-06 14:46:09 +00:00
Rot127 155a483672 Fix cstest_py and add negative tests. (#2807)
* Fix faulty _check().

* Add negative test case for cstest_py

* Enable full leak report and fix leaks.

* Add negative tests to cmake and CI.

* Fix typos
2025-10-29 10:18:21 +00:00
Rot127 0b61957dd7 Refactor the Capstone assertions. (#2792)
It changes now to the following behavior:

- Debug && !defined(CAPSTONE_ASSERTION_WARNINGS)
  - `assert(expr)` code is included, warning is not printed if hit.
- Debug && defined(CAPSTONE_ASSERTION_WARNINGS)
  - `assert(expr)` code is included, warning is printed if hit.
- Release && !defined(CAPSTONE_ASSERTION_WARNINGS)
  - `assert(expr)` code is not included, warning is not printed if hit.
- Release && defined(CAPSTONE_ASSERTION_WARNINGS)
  - `assert(expr)` code is not included, warning is printed if hit.

This also fixes the inconsistent (buggy) behavior from before.
The variants of CS_ASSERT_RET(_VAL) did not return if
the assertions were disabled (release build).
So the semantics were different.
2025-10-13 11:09:21 +00:00
Ivan 6bffa38b8c DIET MSVC C1001 Fix (#2782)
* DIET MSVC C1001 Fix

* added workflow for testing MSVC C1001 fix

* dispating workflow

* added cmake preset for diet build

* Fixed variable in CITest

* Added more cmake presers for CITest

* fixed compilation on AArch64 with DIET

* Revert "dispating workflow"

This reverts commit fd12444c5a.
2025-09-02 15:17:57 +00:00
Rot127 40f54ce821 Add workflow to check for C code formatting and format all code with clang-format-17 (#2744)
* Add workflow to check for C formatting

Rename run-clang-tidy.sh for consistency with clang-format script

Don't align trailing comments.

It leads to unreproducable formatting.

Reformat some comments leading in-compilable up code after clang-format

Format generated compatibility header.

Add clang-format script

Be more verbose with clean-up scripts and fail early.

Pass clang-format via command line

Install clang-format for the HeaderPatcher

* Format code with clang-format-17
2025-08-27 08:50:50 +00:00
Rot127 01fc2ebebc Add Python prominently to the workflow name to prevent confusion. (#2774)
Contributors not familar with Capstones bindings can become confused too easily if the tests
fail with cstest_py but not with cstest.
2025-08-16 11:45:06 +00:00
Rot127and@Antelox b69d944fbe Only publish if tag is present and workflow is triggered by release. (#2766)
* Only publish if tag is present and workflow is triggered by release.

This should prevent that any tagged commit is published as wheel.

* Trigger publishing of wheels only on release/publish.

Co-authored-by: @Antelox <[email protected]>

---------

Co-authored-by: @Antelox <[email protected]>
2025-08-14 13:27:18 +00:00
@Antelox 5f60762b50 Python binding: (#2769)
- Bump cibuildwheel to 3.1.3
- Support free-threaded CPython build for python 3.14
- Remove 3.6 and 3.7 from cibw_skip since they are skipped by default by the newer cibuildwheel
2025-08-14 13:26:37 +00:00
@Antelox 55812df816 Python binding: Windows ARM64 build (#2760)
* Python binding:
- Use windows-11-arm github runner

* Python binding:
- Bump cibuildwheel to 3.0.1
2025-07-29 12:00:09 +00:00
@Antelox 99f018ac97 Python binding: (#2742)
- Enabled ABI wheel building
- Refactored the GitHub workflow to the ABI3 wheel building and testing
- Bumped cibuildwheel to 2.23.3
2025-06-24 12:48:46 +00:00
Rot127 95a4ca3ee6 Update source list before installing valgrind. (#2730) 2025-06-16 11:36:35 +00:00
Rot127 6909724e39 Make assertion hit warnings optional in release builds. (#2729)
* Make assertion hit warnings optional in release builds.

* Fix build error

* Add line and file information to assert error messages.

* Clarify CAPSTONE_ASSERTION_WARNINGS.

* Add release build tests to the CI

* Clarify Capstone hit an assert.
2025-06-16 11:28:18 +00:00
Mimi ebe3ef2ace Add workflow for building on Windows (#2675)
* Add workflow for building on Windows

* Fix build
2025-04-09 18:36:47 +08:00
Rot127 72f7d3055a Revert "Add a script to compare the inc file content with the latest generate…" (#2678)
This reverts commit 21178aea90.
2025-04-07 10:45:50 +08:00