Commit graph

150 commits

Author SHA1 Message Date
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] <support@github.com>
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] <support@github.com>
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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-22 18:15:49 +00:00
مصطفي محمود كمال الدين
032f79993d
RISC-V: Add v5 compatibility behaviour for CS_MODE_RISCVC/RISCV_C (#2996)
Co-authored-by: Rot127 <45763064+Rot127@users.noreply.github.com>
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] <support@github.com>
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] <support@github.com>
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] <support@github.com>
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] <support@github.com>
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] <support@github.com>
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] <support@github.com>
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] <support@github.com>
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] <support@github.com>
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] <support@github.com>
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] <support@github.com>
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] <support@github.com>
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] <support@github.com>
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
Rot127
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 <anteloxrce@gmail.com>

---------

Co-authored-by: @Antelox <anteloxrce@gmail.com>
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
Rot127
21178aea90
Add a script to compare the inc file content with the latest generated ones. (#2667) 2025-04-04 13:41:02 +08:00
@Antelox
cd8dd20ccf
- Added missing files for sdist archive (#2624) 2025-03-01 22:35:59 +08:00
Rot127
1abe186849
Build Tarball before DEB/RPM package. (#2627)
Because it was run after the RPM/DEB package build it contained the 'build' directory
with all its files. Which made it way too big.
2025-02-19 11:56:51 +08:00
@Antelox
0a012190c7
Switch to ubuntu-24.04-arm runner image (#2625) 2025-02-19 11:53:18 +08:00
Rot127
d7ef910bc6
Rebased #2570 (#2614)
* Add ARC files

* Added ARC files for successful compilation

* Refactor ARC files

* Add ARC c/cs tests

* Add ARC python test/bindings

* Add ARC to CI/CD

* Avoid omitting parameter names

* Update cs files

* Fix ARC bugs

* Update ARC python bindings

* Refactor and update ARC test files

* Add detail flag to arc test

* Fix ARC test problems

* Fix ARCMapping compile error

* Replace __CHAR_BIT__ to CHAR_BIT

* Add credits and ARC info

* Update ARC to match the latest next

* Python formatting

* Remove asserts on 'Unknown condition code passed'

* Add ARC to some more documentation

* Add ARC to Targets constants

* Add ARC support to llvm-tblgen

* Replace asserts & add Expr handling

* Check DecodeGPR32RegisterClass return value

* Fix fieldFromInstruction patch

* Refactor ARC

* Reformat python files

* Fix incorrect import

* Update inc files and insn names

* Update python files

* Disable AArch64 Linux wheel build due to https://github.com/capstone-engine/capstone/issues/2615.

---------

Co-authored-by: R33v0LT <sibirtsevdl@gmail.com>
2025-01-28 22:34:24 +08:00
Andrew
5f290cad1f
Create debian and rpm package on releases (#2590) 2025-01-20 22:50:31 +08:00
Rot127
5c5f756fd4
Downgrade labeler to v4 due to https://github.com/actions/labeler/issues/710. (#2598) 2025-01-15 18:44:18 +08:00
Andrew
b102f1b89e
Update Actions (#2593)
bumped the version to the latest version of some common GitHub Actions
2025-01-06 18:13:54 +08:00
Rot127
27da950caa
Clarify between machine used vs. Capstone module affected. (#2586) 2024-12-29 21:31:43 +08:00