Skip to content

Add MachO support

Add MachO support #59

Workflow file for this run

name: Unit test
on:
push:
branches: [ '*' ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- uses: actions/cache@v3
id: cache
with:
path: |
/opt/hostedtoolcache/z3
/opt/hostedtoolcache/ghidra
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Setup Ghidra
uses: er28-0652/[email protected]
if: steps.cache.outputs.cache-hit != 'true'
with:
version: '11.1.2'
- name: Download Z3
uses: pavpanchekha/[email protected]
if: steps.cache.outputs.cache-hit != 'true'
with:
version: '4.8.15'
architecture: 'x64'
distribution: 'glibc-2.31'
- name: Setup Environment variables if use cache
if: steps.cache.outputs.cache-hit == 'true'
run: |
echo "CPATH=/opt/hostedtoolcache/z3/4.8.15/x64/z3-4.8.15-x64-glibc-2.31/include" >> $GITHUB_ENV
echo "GHIDRA_INSTALL_DIR=/opt/hostedtoolcache/ghidra/11.1.2/x64" >> $GITHUB_ENV
- name: Setup Z3
run: |
cp $CPATH/../bin/com.microsoft.z3.jar $GITHUB_WORKSPACE/lib/com.microsoft.z3.jar
sudo cp $CPATH/../bin/*.so /lib
- name: Unit test
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
with:
gradle-version: 7.4
arguments: test