Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
807e92d
commit 041acbb
Showing
6 changed files
with
278 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: android | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
android-acr-aarch64: | ||
if: contains(github.ref, 'master') || contains(github.ref, 'ci-') | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: sudo apt-get --assume-yes install pax wget gperf cabextract unzip python3-wheel python3-setuptools python3-pip && pip3 install --user meson ninja | ||
- name: Compile with acr | ||
run: | | ||
sys/android-ndk-install.sh | ||
sys/android-build.sh arm64 | ||
ls -l | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: android-acr-aarch64 | ||
path: radare2*android*aarch64.tar.gz | ||
|
||
android-acr-arm: | ||
if: contains(github.ref, 'master') || contains(github.ref, 'ci-') | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: sudo apt-get --assume-yes install pax wget gperf cabextract unzip python3-wheel python3-setuptools python3-pip && pip3 install --user meson ninja | ||
- name: Compile with acr | ||
run: | | ||
sys/android-ndk-install.sh 16 arm | ||
sys/android-build.sh arm | ||
ls -l | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: android-acr-arm | ||
path: radare2*android*arm.tar.gz | ||
|
||
android-meson: | ||
if: contains(github.ref, 'master') || contains(github.ref, 'ci-') | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# name: [x86_64, arm, aarch64] | ||
name: [x86_64] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: sudo apt-get --assume-yes install pax wget cabextract unzip python3-wheel python3-setuptools python3-pip && pip3 install --user meson ninja | ||
- name: Compile with meson | ||
run: | | ||
export PATH=${HOME}/.local/bin:${PATH} | ||
CFLAGS="-static" LDFLAGS="-static" meson --buildtype release --default-library static --prefix=/tmp/android-dir -Dblob=true build --cross-file .github/meson-android-${{ matrix.name }}.ini | ||
ninja -C build && ninja -C build install | ||
- name: Create radare2-android-${{ matrix.name }}.tar.gz | ||
run: | | ||
cd /tmp | ||
rm -rf android-dir/include android-dir/lib | ||
tar --transform 's/android-dir/data\/data\/org.radareorg.radare2installer/g' -cvf radare2-android-${{ matrix.name }}.tar.gz android-dir/ | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: android-meson | ||
path: /tmp/radare2-android-${{ matrix.name }}.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: apple | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
# macOS | ||
macos-acr: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Packaging | ||
run: dist/macos/build-pkg.sh | ||
# - name: Building Radare2 | ||
# run: | | ||
# export CFLAGS="-O2" # -Werror -Wno-unused-result -Wno-unicode -Wno-unneeded-internal-declaration" | ||
# sys/install.sh && make -C dist/macos | ||
- name: Pub | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: dist/macos/*.pkg | ||
name: macos-acr | ||
# macos-acr-m1: | ||
# runs-on: macos-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v2 | ||
# - name: Packaging | ||
# run: export CC="xcrun --sdk macosx11.1 gcc -arch arm64" ; dist/macos/build-pkg.sh | ||
# - name: Pub | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# path: dist/macos/*.pkg | ||
# name: macos-acr-m1 | ||
|
||
# Mobile | ||
ios-cydia32: | ||
if: contains(github.ref, 'master') || contains(github.ref, 'ci-') | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install pkg-config/ldid2 with Homebrew | ||
run: brew install pkg-config ldid | ||
- name: Create cydia32 package | ||
run: ./sys/ios-cydia32.sh | ||
- name: List sys/cydia | ||
run: ls -lahR ./dist/cydia | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: ios-cydia32 | ||
path: ./dist/cydia/radare2/radare2-arm32_*_iphoneos-arm.deb | ||
ios-cydia: | ||
if: contains(github.ref, 'master') || contains(github.ref, 'ci-') | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install pkg-config/ldid2 with Homebrew | ||
run: brew install pkg-config ldid | ||
- name: Create cydia package | ||
run: ./sys/ios-cydia.sh | ||
- name: Create iOS SDK | ||
run: | | ||
./sys/ios-sdk.sh | ||
pushd /tmp/r2ios | ||
zip -r /tmp/r2ios-sdk.zip * | ||
popd | ||
mv /tmp/r2ios-sdk.zip . | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: ios-cydia | ||
path: | | ||
./r2ios-sdk.zip | ||
./dist/cydia/radare2*/*.deb |
Oops, something went wrong.