Commit Graph

304 Commits

Author SHA1 Message Date
pancake
f0c654d394
Try this commit for TinyCC (#19837) 2022-03-18 15:03:25 +01:00
pancake
245babbf9e
Lots of cleanups to reduce the regressions in TCC ##refactor
* Cleanup crypto.aes and anal.arm_cs to make the latest tcc happy
* Dont pick latest tcc. as its broken (-30 commits for now)
* Dont pass multi-dimensional arrays as argument
* Don't assume TCC supports threads, because it doesnt
* Many intrinsics are missing still for tcc on darwin-arm64
* lz4 code crashes when compiled with latest tcc and needs a full rewrit
* Add more null checks here and there
* Remove unused code in the tcc parser
2022-03-17 18:40:58 +01:00
pancake
02f9dd1839 Add w64-static builds in the CI ##windows 2022-03-16 00:48:50 +01:00
pancake
c01f6cd44d Run 'apt update' before 'apt install' in the CI to fix some 404 2022-03-03 10:54:21 +01:00
Pau Rodriguez-Estivill
c0e102f89d Add git history before generate release notes 2022-03-02 11:33:45 +01:00
Sergi Àlvarez i Capilla
aa6a1d7436 Run fewer asan tests on every commit 2022-03-01 17:04:32 +01:00
Pau Rodriguez-Estivill
0c3f1927c6 Avoid running check release when not needed 2022-03-01 15:10:02 +01:00
pancake
3afed46fff Freebsd improvement 2022-03-01 15:10:02 +01:00
Pau Rodriguez-Estivill
774b19a2bc Join build and release workflows 2022-03-01 15:10:02 +01:00
Pau Rodriguez-Estivill
7767100782 Clear build workflow 2022-03-01 15:10:02 +01:00
pancake
b636941cef Release 5.6.4 2022-02-28 12:30:02 +01:00
pancake
ddc7458b4b Reorder master-specific CI workflows to the bottom 2022-02-21 21:00:55 +01:00
Pau Rodriguez-Estivill
108dc76ae8 Setup artifacts retention time to 30 days 2022-02-18 12:45:11 +01:00
Pau Rodriguez-Estivill
041acbb2ca Split CI workflows 2022-02-18 12:45:11 +01:00
Pau Rodriguez-Estivill
807e92de29 Rename CI artifacts to job names 2022-02-18 12:45:11 +01:00
Pau Rodriguez-Estivill
14d071dea3 Move download artifacts as script 2022-02-18 12:45:11 +01:00
pancake
a7386c4b83 After release version bump 2022-02-18 01:51:10 +01:00
pancake
77cdfd2fac
Run some tests in freebsd (#19723) 2022-02-16 16:55:24 +01:00
Sergi Àlvarez i Capilla
ea85949d18 Improve github's template for the PRs 2022-02-14 00:03:50 +01:00
PauRE
73cc634ba7
Partial #19687: Add release github actions workflow ##ci
* Add release github actions workflow
2022-02-13 02:04:17 +01:00
Sergi Àlvarez i Capilla
d09742370f Reduce the amount of CI pipelines to run outside master 2022-02-11 23:17:53 +01:00
pancake
d969767317
Publish FreeBSD artifacts and purge the srcdir ##ci 2022-02-11 21:04:55 +01:00
pancake
97095b2483
Add freebsd in github ci ##build 2022-02-11 19:22:04 +01:00
pancake
48829c64b8 Update to the latest capstone 2022-02-01 10:37:01 +01:00
Apkunpacker
6ce1c685ec
Use tinycc repo from gihub mirror
* because the official one is down
2022-02-01 09:49:27 +01:00
pancake
3e92c06758
Add 16GB pagefile for the windows ci ##build (#19652) 2022-02-01 08:44:19 +01:00
pancake
50bf4d5918
Simplify meson logic and use ole's PR to fix Windows ##build
* Kudos to @oleavr for reproducing, spotting and fixing the bug!
* Context https://github.com/mesonbuild/meson/pull/9918
2022-01-31 23:54:00 +01:00
pancake
d58e62e74c Fixes for w2019 (#19644) 2022-01-31 01:47:04 +01:00
Sergi Àlvarez i Capilla
715c4e0ff1 Fix warning 2022-01-28 16:24:41 +01:00
pancake
54b1fcd23c
Add CI job to verify builds with system-wide capstone ##build 2022-01-26 09:49:36 +01:00
Sergi Àlvarez i Capilla
57ec318c34 Fix path for cydia32 builds 2022-01-20 20:02:01 +01:00
pancake
5281f27aa5
Bring back the 32bit builds for Cydia ##build 2022-01-14 19:41:26 +01:00
Sergi Àlvarez i Capilla
1eaee48370 Initial implementation of the 'aafs' command ##analysis
* Find function entrypoints and creates a single basic block function
* Useful for fast initial analysis instead of aaa (30min vs 5s)
* Handy to get xrefs context in function boundaries
2021-12-23 18:58:38 +01:00
pancake
3aef52cae0 Fix issues in r2pm -i acr and the new compiler checks 2021-12-17 10:26:41 +01:00
pancake
aa7af78946 r21d sdk minimum abi compat is 16 2021-12-17 00:18:44 +01:00
pancake
d24bf5b654 More build fixes, googlefuzz integration, add r_asm_cpus() api via the wip 'al' command 2021-12-17 00:15:38 +01:00
pancake
ea2c017c3a
Use api9 for android-arm builds to bring back Kitkat support ##build 2021-12-16 18:24:35 +01:00
Sergi Àlvarez i Capilla
1499a9337f Fix last covs related to the py marshall code 2021-12-09 18:00:58 +01:00
Sergi Àlvarez i Capilla
58e59dbb0b Build for android with acr, meson doesnt seems to work 2021-12-09 12:43:40 +01:00
pancake
e6f2cd0b2a
Remove trailing spaces (#19460)
$ git grep ' $' | grep -v ^test/ | cut -d : -f 1 | sort -u > /tmp/trailing
$ for a in `cat /tmp/trailing` ; do sed -i -e 's/ *$//' $a ; done
2021-12-02 17:39:59 +01:00
pancake
4327d8322f
Bring back the mingw32 builds ##windows
* Massage conflicting function signatures spotted by mingw
* Fix the spp visibility issue
* Enable 32 and 64bit mingw builds in the CI
2021-11-28 22:10:51 +01:00
pancake
8b227868b8
Fix the windows CI workflows
* Use ninja -j2 in the CI, seems like there are less resources for windows
* Add windows configure+make+run CI workflow
* Use more join_paths()
2021-11-14 21:09:42 +01:00
pancake
a5d51af309
Don't use a broken version of ninja in the CI, just pick the last one 2021-11-14 00:14:35 +01:00
pancake
07a4b25adc Dont sync capstone all the time 2021-11-05 10:08:23 +01:00
Sergi Àlvarez i Capilla
6e43c6606f Add offline build CI job 2021-11-05 10:08:23 +01:00
pancake
9b1d09abdb Move windows CI jobs into a separate file 2021-11-03 00:27:37 +01:00
pancake
8cb61df4cb
Dont user latest meson because its broken :D ##build 2021-10-29 12:37:11 +02:00
pancake
4ac2eb65e0 Disable m1 builds for now as long as they look problematic to gh 2021-10-04 18:01:58 +02:00
pancake
a49e6ec403
Fix the w32 builds 2021-09-20 06:38:02 +02:00
pancake
4c4f26095b
Fix #19055 - w32/w64 windows artifacts filenames ##ci 2021-09-16 18:15:30 +02:00
pancake
100582388f Bring back the /MT for w32 in the CI 2021-09-15 00:35:42 +02:00
pancake
3160ee8441 Improve the Windows CI once again 2021-09-13 19:28:08 +02:00
pancake
581b5f1fd9
Add job to build r2 for the m1 macs ##build 2021-09-10 15:54:31 +02:00
pancake
d6f1160464
Use /MT on windows builds (requires meson flag) ##build (#19017) 2021-08-25 17:26:40 +02:00
pancake
99ec892a70 Aim to fix the iPhone SDK publication 2021-07-17 12:59:56 +02:00
pancake
e96ad23b60
More version ci stuff for ios and android (#18908) 2021-07-17 00:28:06 +02:00
pancake
988f70b1ea
Version the artifacts ##ci 2021-07-16 22:33:39 +02:00
pancake
b8a2dc7c33
Windows CI zip stuff with version (#18898) 2021-07-15 17:17:04 +02:00
pancake
190d809466 Use dynamic api resolution on windows builds for better portability ##windows
* Single implementation in r_util, used across io and debug
2021-06-21 23:09:14 +02:00
pancake
2e417ee938
Initial support for capstone-less compilations ##build 2021-06-21 17:48:00 +02:00
pancake
d3824bf0ce
Build and publish the ZIP with the WASI bins ##build (#18855) 2021-06-21 13:51:31 +02:00
pancake
7c14bac05b
Add initial support for building r2 on WASI ##build 2021-06-20 17:14:43 +02:00
Sergi Àlvarez i Capilla
79ab4435f2 Switch to ubuntu18, seems like gha is shipping them again 2021-06-05 11:35:31 +02:00
pancake
23ad9b50ee
Fix #12335 - ignore system-installed r2 includes ##build 2021-05-28 00:45:48 +02:00
pancake
c3953d64d6
Use gperf on anal/d and improve build and checks ##anal
* Add --without-gperf configure flag
* Update sdb to support gperf.foreach and faster ls.sort()
* Support cc and types sdb gperfs
* add r_str_newvf
* Honor HAVE_GPERF in more places
* Add CI job to build and test cmds with gperf
2021-05-20 00:22:20 +02:00
pancake
374037a4d2 Fix warnings 2021-05-18 19:34:23 +02:00
pancake
e92d170a3b
Add support for acr/musl-gcc static builds ##build 2021-05-14 21:34:21 +02:00
pancake
efeba1d15b
Fix --with-rpath and add CI tests (#18668) ##build 2021-05-09 19:57:11 +02:00
pancake
f4e64ac07e Rollback to ubuntu18 to get coverity bins to work again 2021-04-30 12:17:04 +02:00
pancake
d3738096a8 Use sysctl vsyscall=emulate to run coverity binaries 2021-04-29 18:10:40 +02:00
pancake
7546f34e57
Update sdb and use of SdbGperf in asm.d ##asm 2021-04-25 02:31:46 +02:00
pancake
2434c3ca74
Switch to Capstone5 as default ##asm (#18127)
* Add riscv for capstone5 in the meson
* Report capstone version in the asm plugins
* Many changes in the ppc analysis, seems like it's improved, (emulation quality and xrefs)
* Update all tests and report issues in capstone4 to upstream
* Fix-x86-16 test marked as broken as it needs better fix
2021-04-24 22:04:51 +02:00
pancake
e53ed0ab04 Use proper ascii quotes 2021-04-24 21:58:09 +02:00
pancake
0bba1059f8 Don’t treat warnings as errors in the macOS CI 2021-04-24 21:58:09 +02:00
pancake
cbc949c039 Remove tree-sitter and the r2-shell-parser ##shell
* Will be reimplemented soon with a new parser
* Simplifies and speedup the build
2021-04-24 21:58:09 +02:00
pancake
88c76bc0f1
Use debian stable to build the debian package instead of Ubuntu (#18595)
* GHA references https://github.com/actions/virtual-environments/issues/3111
2021-04-19 14:14:33 +02:00
pancake
639045efc5 Dont run debugger tests in ASAN mode and fix crash in snap.c 2021-03-15 12:26:09 +01:00
pancake
c11cd5c69b
Add R2R_SKIP_ASM env var handling in r2r ##test (#18462) 2021-03-15 01:31:08 +01:00
pancake
ee3afa01c9 Fix debian32 in CI ##build 2021-02-27 01:01:22 +01:00
pancake
1997994405 Remove unnecessary ci step 2021-02-22 13:19:38 +01:00
pancake
8be28cc949 Fix linux-static pub action ##ci 2021-02-14 02:41:34 +01:00
pancake
77cf15c2c3 Fixes to make the r2blob shine again ##build 2021-02-14 02:41:34 +01:00
pancake
ef8e3cb512 Make macos-ci green for now 2021-02-14 00:50:40 +01:00
pancake
9398ce4eb7 Add -Wno-unneeded-internal-declaration 2021-02-13 05:18:09 +01:00
pancake
054b5fa46a
Add 32bit Debian packaging and bonus CI fixes ##build 2021-02-13 05:09:30 +01:00
pancake
48d8fbdd96 Fix missing quote 2021-02-11 22:56:37 +01:00
pancake
ea6774b751 Enforce -std=gnu89 with -Werror instead of hacky regexes in tests 2021-02-11 18:19:06 +01:00
pancake
0ceafe426b Dist for macOS 2021-02-11 16:01:48 +01:00
pancake
3a262b31ea asan-fuzz skip archos tests 2021-02-03 23:55:00 +01:00
pancake
d2730a441c Relax asan ci 2021-02-01 02:47:43 +01:00
pancake
8cf1adfb27
Fix and comment the broken debugger tests after last gha update (#18317)
* Add R2R_SKIP_ARCHOS env var handling in r2r to fix TCC suite
2021-01-31 23:00:38 +01:00
pancake
f80c847376
Introduce w32 and w64 in the CI ##build 2021-01-31 00:40:40 +01:00
pancake
569f1f2fb0
Add Windows ZIP in the CI (#18310) ##build 2021-01-30 00:20:16 +01:00
pancake
27da0d4db9
Upload android-arm64 artifact and disable memleak checks in meson-asan testruns ##ci 2021-01-25 15:29:22 +01:00
pancake
36d63b46f6
Fixes for the android-ndk-installer script and the android-arm64 CI job (#18287)
Co-authored-by: pancake <pancake@nopcode.org>
2021-01-25 12:30:57 +01:00
pancake
85edbad0aa
Add WIP android-arm64 ACR build and other CI improvements ##ci
* Fix macos test
* Add cabextract for pdb tests
* Add android-ndk-installer script
* Using NDK r21d
2021-01-25 11:34:08 +01:00
pancake
778b5e041e Fix tcc in the CI, their latest GIT contains non-executable configure script 2021-01-24 19:45:05 +01:00
pancake
c3f7d0e1d1
Add CI test to ensure symlink reinstalls work (#18252) ##build 2021-01-22 00:52:12 +01:00
pancake
0dbc4ee537 Add missing files and remaining patches from import 2021-01-19 05:37:17 +01:00
Anton Kochkov
1a7a2d5bc4 Add Meson for static build 2021-01-19 05:37:17 +01:00
pancake
b433916b25 Fix android and ios artifact names 2021-01-18 11:15:04 +01:00
pancake
05399c5a45 macos-test doesnt needs meson 2021-01-13 10:37:39 +01:00
pancake
8f0016cc4c Dont detect leaks in the asan job and install r2pipe in brew ##ci 2021-01-13 10:29:33 +01:00
Liumeo
b0877cecb4
Fix macos r2pipe 2021-01-12 22:26:05 -05:00
pancake
76cd69ad66 Proper artifact naming and use more r_str_get to avoid some null derefs 2021-01-13 02:08:06 +01:00
pancake
5910d1891f Fix a couple of warnings for -Werror 2021-01-13 01:35:54 +01:00
pancake
af66a574ba Fix TCC CI and improve the rest of jobs ##ci 2021-01-13 01:28:10 +01:00
pancake
5a1fab355f Enable Android and Windows CI, also fix r2pipe test (python vs python3) 2021-01-12 15:02:37 +01:00
pancake
da89020969 Cflags in the yaml was not a good idea 2021-01-12 14:18:29 +01:00
pancake
1184610971
Fix the CI badge and fully rewrite all the workflows to make sense ##build
* Windows, Linux, Static, macOS, Android, iOS builds published for every commit
* Kept coverage, coverity, fuzzing tests, lgtm and -Werror jobs
* Kill the continuos, the over-engineered matrix and other empty or unnecessary tasks (250 vs 900LOC)
* Jobs TODO: fatmac, termux and rpm (centos) packages
2021-01-12 13:41:21 +01:00
pancake
658c6a0918
Create dist/ to hold all the distribution build files ##build (#18131) 2020-12-31 18:57:05 +01:00
pancake
4e0f0807d9
Forbid space builds with acr/make and add job to test them with meson/ninja ##build 2020-12-29 15:08:52 +01:00
Anton Kochkov
8290e502bb
Remove forgotten CI debug lines (#18018) 2020-12-11 10:22:42 +01:00
pancake
6693e33fb4
Bring back tcc support ##build (#17295)
* Fix TinyCC build ##build
* Jemalloc - fix TinyCC build ##build

Co-authored-by: pancake <pancake@nopcode.org>
Co-authored-by: Anton Kochkov <xvilka@gmail.com>
2020-12-11 09:42:12 +01:00
pancake
3bff6182ac
Simplify github issue/pr templates (#18009) 2020-12-08 23:51:17 +01:00
Anton Kochkov
8b3526b677 More verbose TCC tests 2020-12-04 16:30:53 +08:00
Anton Kochkov
58ac34cea5 Fix TCC CI job test dependencies 2020-11-27 12:37:11 +08:00
GustavoLCR
94b2d83004
Add option to log r2r test results and publish it in the CI (#17964) ##test 2020-11-24 03:43:41 +01:00
Anton Kochkov
06e74e1f1b Fix MacOS Meson GitHub Action 2020-11-19 12:21:32 +08:00
Anton Kochkov
e1623e189a Use Meson 0.55.3 2020-11-04 10:07:51 +08:00
Anton Kochkov
7bfe9d2960 Add MacOS Meson build job 2020-11-04 10:07:51 +08:00
Khairul Azhar Kasmiran
9c66a31a97
Add 6 minutes to cmd_aae timeout and skip aaa for swift_read fuzz test (#17805)
* Add 6 minutes to the cmd_aae test
* Skip aaa when doing swift_read fuzz test on asan
* Bump linux-meson-gcc-newshell-tests timeout to 60 minutes
2020-10-27 18:19:01 +08:00
Riccardo Schirone
81e487429f
Use -Wno-cpp to avoid errors on #warning (#17785) 2020-10-14 16:57:07 +08:00
Riccardo Schirone
741d22ed61
Use -Werror when building in CI (#17781) 2020-10-13 12:42:57 +02:00
pancake
aa7de006e6 Fix TinyCC build ##build 2020-09-27 13:33:26 +08:00
Khairul Azhar Kasmiran
6511ec9cd9
Test =h on Linux (#17697) 2020-09-23 20:09:21 +08:00
Riccardo Schirone
478ba6eb25
Do not let ASAN crash on large allocations (#17683) 2020-09-21 23:00:10 +08:00
karliss
9823c753eb
Match PR coverage number with master. (#17662)
Fuzzing isn't done for pull requests which causes difference in coverage
report.
2020-09-17 12:27:30 +03:00
karliss
8e07354cdd
Move coverage testing to meson-gcc-newshell-tests (#17643)
Previosly used meson-gcc-tests which isn't run on pull requests.
2020-09-16 15:30:00 +08:00
Khairul Azhar Kasmiran
fe5b80d615
Fix asan r2pipe test by updating libasan and using LD_PRELOAD (#17594)
* Set LD_PRELOAD for unit tests
* Declare failed debug tests as broken if no assertion or Sanitizer in output
* Check for ASAN=1 in cmd_pipe test
* Set asan: true in the GitHubCI matrix
* Fix ttyname-related runtime error
* Upgrade asan build to Ubuntu 20.04
* Quick fix for reg/arena.c runtime error
2020-09-11 18:47:27 +08:00
Riccardo Schirone
391f8b77eb
Increase timeout for macos-clang-tests job (#17627) 2020-09-10 09:21:49 +02:00
Riccardo Schirone
0d6a2bcf91
CI is starting to reach the timeout on master. (#17622) 2020-09-09 18:11:36 +02:00
Riccardo Schirone
709fcab0e6 Do not disable build-static tests, just ignore the result 2020-09-09 15:39:33 +02:00
Riccardo Schirone
56510ad82f Make sure create-release CI step is run only on release- branch ##build 2020-09-09 15:39:33 +02:00
Riccardo Schirone
3e3efcc005 Test compilation with various capstone versions ##build
Do not use #include <capstone/..>

This ensures compatibility with both capstone v3 and capstone as
installed on most distributions, where the pkg-config file of capstone
already adds -I/usr/include/capstone (with that dir directly containing
the headers).
2020-09-09 15:39:33 +02:00
Riccardo Schirone
8de4315fa3 Add ASAN tests to github CI ##build 2020-09-09 15:39:33 +02:00
Riccardo Schirone
b8e90511c6 Publish docker images after build configurations are green ##build
Ensure that broken commits do not get pushed to docker registry.
2020-09-09 15:39:33 +02:00
Riccardo Schirone
adc3586425
Create new GitHub workflow for continuous build ##build (#17603)
Make "continuous" build a pre-release, to avoid hiding the real releases.
2020-09-08 10:13:47 +02:00
Riccardo Schirone
be39c822cf Add sdb header path to compile windows ##build 2020-09-02 10:07:02 +02:00
Riccardo Schirone
ffb58abd03 Allow to test windows build with "*windows*" PRs ##build 2020-09-02 10:07:02 +02:00
Riccardo Schirone
6aca12465f Do not run tests for build-static ##build
Something does not work well with static (it hasn't at least from the
moment build-static started running full tests). To avoid all kind of
brokeness all around, let's switch back to no-tests. We will enable them
together with the proper fixes for the static build.
2020-09-01 21:54:23 +08:00
Riccardo Schirone
f2e2f7383a
Enable CI checks on PRs against release-* branches as well (#17536) 2020-08-27 11:12:43 -05:00
Riccardo Schirone
dfde84d333
Merge all things in one workflow file, reducing duplication of CI code (#17355) 2020-08-27 12:14:58 +08:00
GustavoLCR
489538e02b
Add DbgEng based debug backend for Windows ##debug (#17491)
* Rename `windbg` plugin to `winkd` ##debug
* Add DbgEng based debug backend for Windows ##debug
2020-08-24 19:01:10 +08:00
Khairul Azhar Kasmiran
4bc96b847a
Fix MS-DOS fuzz tests (#17496) 2020-08-20 12:17:13 +08:00
pancake
8b33d764a7
Fix #3929 - Enable LTO in sys/static.sh ##build (#17141)
* Fix #3929 - Enable LTO in sys/static.sh
* Update Ubuntu to 20.04 for static build
* Use `gcc-ar` when needed
* Do not use "c" option for ${AR}
* Use `$$AR` instead of `$AR`
* Aim to fix  `-dynamiclib` issue outside darwin
* Run tests for static LTO build

Co-authored-by: pancake <pancake@nopcode.org>
Co-authored-by: Anton Kochkov <xvilka@gmail.com>
2020-08-13 13:55:39 +08:00
Anton Kochkov
f338c2b2bb
Test also Debian Wheezy (#17352) 2020-07-25 01:39:37 +08:00
Riccardo Schirone
ab7a4b8045
Install ldid2 as well, to sign packages for cydia ##build (#17341) 2020-07-23 14:24:26 +02:00
Riccardo Schirone
69abbec753
Hardcode the version of meson/ninja to use to ensure consistency (#17260) 2020-07-13 14:56:42 +02:00
Riccardo Schirone
e3b67f124c
Release pipeline with GitHub Actions (#17192)
* Make sure meson can build with `system` = `android`.
* Add support for binr/blob in meson build
* Create release GitHub Actions workflow
* Add publish-docker-image job
* Also create Ubuntu packages and ship static windows zip
2020-07-09 12:07:45 +08:00