Commit Graph

159 Commits

Author SHA1 Message Date
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
Anton Kochkov
742b5098af
Install r2pipe.py for Debian Jessie CI job (#17241)
* Install r2pipe.py for Debian Jessie CI job
* Build Python 3.6 from source
2020-07-08 19:06:33 +08:00
Zi Fan
4fa2cffb43
Fix debug tests on Debian Jessie ##test (#17240) 2020-07-08 03:15:45 -05:00
Riccardo Schirone
9b43e2d70f
CentOS forward decl RBin (#17224)
* Try to fix double declaration issue in centos
* On CentOS we just check unit tests
2020-07-06 19:43:48 +08:00
Anton Kochkov
f19078aa3e
Update Debian Jessie CI job 2020-07-06 14:01:12 +08:00
Riccardo Schirone
4c9bf99134
Run fuzzed-tests in github actions ##tests (#17075)
* Run fuzzed-tests in github actions
2020-07-03 11:40:56 +08:00
Anton Kochkov
4b35fd9f19
Update CentOS 6 Action name 2020-07-01 12:48:32 +08:00
Anton Kochkov
17d7a9bebd
Migrate to GitHub CodeQL (#17183) 2020-07-01 09:34:20 +08:00
Anton Kochkov
114a5a5943
Check some OS 3 times a week (#17182) 2020-06-30 17:47:46 +02:00
Khairul Azhar Kasmiran
896ba91e1e
#!pipe: Fix stray command output on Windows and add r2pipe.py test (#17156) 2020-06-30 17:41:39 +08:00
Anton Kochkov
d6cf4f0898
Add Debian OLD (Debian 8 Jessie) (#17098) ##build
Add Debian 8 (Jessie) Docker build to ensure radare2 works
on the older Debian-based systems too.
2020-06-20 12:17:00 +08:00
Riccardo Schirone
aeddbc85aa
Use stale label instead of wontfix (#17085) 2020-06-16 15:48:33 +08:00
Riccardo Schirone
66ac059336
First version of stale file to automatically close old issues (#16924) 2020-06-16 12:18:23 +08:00
Riccardo Schirone
a14f5c0777
Update tree-sitter to 0.16.8 (#16991)
* Fix CentOS6 CI by specifying PKG_CONFIG_PATH
* Do not define var inside for-loop
2020-06-03 15:01:47 +02:00
Riccardo Schirone
7985537330
Fix pfo command without arguments (#16961)
* Fix pfo command without arguments
* Fix radare2-ci-tree-sitter tests
2020-05-28 16:29:44 +03:00
karliss
688c411afe
Limit PR build timeout. (#16952)
Typical runs take 5-15 minutes. Default 6h timeout is too much.
2020-05-27 11:51:54 +08:00
Khairul Azhar Kasmiran
055ee0474a
Add pxe test + convert prc_256.py to pure r2 (#16838) 2020-05-18 15:52:18 +02:00
Anton Kochkov
61014e5119
Add docker publish 2020-05-11 18:09:31 +08:00
Riccardo Schirone
a29f0ccce5
Add CI job for CentOS 6 build (#16712)
* Fix re-definition of RAnalBlockCb and RAnalAddrCb

* Small compilation fixes for gcc-4

* Check PTRACE_GETREGSET before using it

* Add GH workflow to run on centos:6 for prerelease branches

* Fix configure.acr
2020-04-29 19:02:02 +08:00
Riccardo Schirone
db0aa2d796
Restore newshell tests in master branch (#16691) 2020-04-23 13:53:03 +08:00
Riccardo Schirone
06ab29b93c
Compile new shell parser by default (#16660)
* Move radare2-shell-parser/tree-sitter into shlr
* compile new shell parser by default, available with cfg.newshell variable
* Add README for radare2-shell-parser
* Improve CI
* Add gitattributes file
2020-04-21 13:44:30 +02:00
Riccardo Schirone
29494cafcf Add static build GH action
* Run CI also on PR that has the 'static' string in branch name
2020-04-20 14:25:28 +02:00
Riccardo Schirone
c00fabddc5
Enforce newshell build from now on (#16639) 2020-04-19 21:00:06 +02:00
Riccardo Schirone
08210f3d0e
Improve newshell.yaml and use better names for GH builds (#16588)
* Try to run newshell tests on newshell- PRs
GH actions pull_request.branches only filter the base branch.
* Make it clearer which builds run tests and which do not
2020-04-14 17:46:01 +08:00
Anton Kochkov
99c88738b7
Better Coverity Scan GHA job name 2020-04-10 17:10:12 +08:00
Riccardo Schirone
ad17ab6d81
Run newshell tests when PR is newshell-* (#16481)
Split the workflow in a separate file
2020-04-09 11:50:41 +08:00
Riccardo Schirone
6304c2db95
Allow to run travis jobs if special branch names are used (#16476) 2020-04-08 14:03:26 +02:00
Anton Kochkov
e38e31e52f
Update GitHub autolabeler (#16475) 2020-04-08 12:38:40 +08:00
Riccardo Schirone
88ad1ccd4a
Add GitHub actions for push to master as well (#16454)
Instead of using a full matrix, just add the builds we care about
2020-04-07 12:40:15 +02:00
Riccardo Schirone
6136666e9c
Create more GitHub Actions jobs for meson and gcc/clang ##build (#16442)
* Create more GitHub Actions jobs for meson and gcc/clang
* Add workflow for GitHub Actions when we commit in master
2020-04-07 11:31:05 +08:00
Florian Märkl
91c58506e5
Enable R2R in C for all CI except Windows (#16354) ##test 2020-04-01 23:16:02 +02:00
pancake
12a925c685 Fix warnings and solve the Gitlab CI 2020-03-31 17:06:40 +02:00
davidpolverari
823ab26095
Fix coverity-scan GitHub Action for forked repos (#16261)
Makes the coverity scan neither download of the Coverity Build Tool nor
execute any of the following steps for forked repositories, avoiding
sending GitHub alerts to those repo owners.
2020-03-20 12:25:07 +08:00
Maijin
2e9607dc54
Add .github/workflows auto-labeler infrastructure (#16154)
Add .github/workflows auto-labeler infrastructure
2020-03-09 12:00:22 +08:00
Khairul Azhar Kasmiran
a2e3a142e1
Use absolute URLs in pull request template (#16036) 2020-02-23 19:45:01 +02:00
Anton Kochkov
878519d552
Fixes for GitHub Actions (#16001) 2020-02-20 21:16:50 +08:00
Itay Cohen
e4d3f7d9c8
Add GitHub template for new pull requests (#15907)
Add GitHub template for new pull requests
2020-01-30 10:22:39 +02:00
Maijin
03d4488588 Add r2r auto-label for tests (#15902)
Add r2r auto-label for tests
2020-01-27 07:44:14 +01:00
Anton Kochkov
d98c43450f
Enable V testsuite on GitHub CI (#15796)
* Enable V testsuite on GitHub CI
2020-01-20 21:03:36 +08:00
Florian Märkl
ae61aa8e37
Imports Tests from radare2-regressions (#15546) 2019-12-08 15:31:14 +01:00
Anton Kochkov
fec6330108
Coverity Scan GitHub Action (#15539) 2019-12-03 01:44:54 -06:00
GustavoLCR
fa594f6e74
Fix labeler environment 2019-11-28 14:46:03 -03:00
GustavoLCR
511e837341 Switch labeler to periodic-labeler (#15517)
With https://github.com/actions/labeler/issues/12
being an issue, the action's labeler is useless for PRs that come from a fork.
This one runs on a cron timer instead and doesn't suffer from the same issue.
2019-11-28 17:55:58 +01:00
GustavoLCR
9c08b9e4c0 Add pull request labeler (#15503) 2019-11-26 00:34:47 -06:00
Anton Kochkov
dce959d2af
Inital GitHub Actions (#15467)
* Inital GitHub Actions
* Disable Windows for now
* Disable tests for now
2019-11-21 22:54:08 -06:00
Anton Kochkov
1eb3fe25c9
Fix regressions URL (#15027) 2019-09-13 16:49:23 +08:00