Skip to content

Commit

Permalink
Merge branch 'dev' into rizin_as_subproject_rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
amibranch authored Oct 19, 2024
2 parents 2b6699a + 1a8b3c6 commit c33173e
Showing 1 changed file with 51 additions and 8 deletions.
59 changes: 51 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -661,19 +661,64 @@ jobs:

build-osx-pkg:
name: Build OSX package
runs-on: macos-12
runs-on: macos-14
if: contains(github.head_ref, 'dist') || contains(github.head_ref, 'osx') || contains(github.head_ref, 'mac') || ((contains(github.ref, 'release-') || github.ref == 'refs/heads/stable') && github.event_name == 'push') || github.event_name == 'schedule'
needs: [ build-and-test ]
steps:
- uses: actions/checkout@v4
- name: Install pkg-config with Homebrew
run: brew install pkg-config
with:
fetch-depth: 2
- name: Install meson and ninja
run: pip3 install meson ninja PyYAML
run: pip3 install --break-system-packages --user meson ninja PyYAML
- name: Checkout rzpipe
uses: actions/checkout@v4
with:
repository: rizinorg/rz-pipe
path: test/rz-pipe
- name: Install test dependencies
run: pip3 install --break-system-packages --user "file://$GITHUB_WORKSPACE/test/rz-pipe#egg=rzpipe&subdirectory=python" requests
- name: Build with Meson
run: |
export PATH=$(python3 -m site --user-base)/bin:${PATH}
export CFLAGS=-Wno-deprecated-non-prototype
meson setup --prefix=${HOME} -Dbuildtype=release --werror build && ninja -C build
- name: Install with meson
run: |
export PATH=$(python3 -m site --user-base)/bin:${PATH}
ninja -C build install
- name: Disable user authentication for debugging
run: sudo security authorizationdb write system.privilege.taskport allow
- name: Run unit tests
run: |
export PATH=$(python3 -m site --user-base)/bin:${PATH}
meson test -C build --suite unit
- name: Checkout our Testsuite Binaries
uses: actions/checkout@v4
with:
repository: rizinorg/rizin-testbins
path: test/bins
- name: Checkout fuzz targets # TODO: this can be removed as soon as the fuzztargets repo is public
uses: actions/checkout@v4
with:
repository: rizinorg/rizin-fuzztargets
path: test/fuzz/targets
- name: Run integration tests and rz-test
run: |
export PATH=$(python3 -m site --user-base)/bin:${PATH}
meson test -C build --suite integration
cd test
rz-test -j `sysctl -n hw.activecpu` -L -o results.json
- name: Run fuzz tests
run: |
cd test
rz-test -LF bins/fuzzed @fuzz
# some fuzzed bins are mem hungry and are killed by the runner.
# running them one threaded allows to be check them
rz-test -j1 -LF bins/fuzzed-memhungry @fuzz
- name: Install ImageMagick
run: brew install imagemagick
- name: Create OSX package
run: |
export PATH=$(python3 -m site --user-base)/bin:${PATH}
./dist/osx/build_osx_package.sh
mv rizin-*.pkg rizin.pkg
- name: Upload .pkg file
Expand Down Expand Up @@ -885,12 +930,10 @@ jobs:
strategy:
matrix:
system:
- macos-12
- macos-14
runs-on: ${{ matrix.system }}
needs: [ build-osx-pkg ]
steps:
- name: Install pkg-config with Homebrew
run: brew install pkg-config
- uses: actions/download-artifact@v4
with:
name: rizin.pkg
Expand Down

0 comments on commit c33173e

Please sign in to comment.