Skip to content

Support custom rz-pm-db URL #153

Support custom rz-pm-db URL

Support custom rz-pm-db URL #153

Workflow file for this run

name: Go
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
name:
- macos
- ubuntu
- windows
include:
- name: macos
os: macos-latest
prefix: /usr/local
sudo: sudo env "PATH=$PATH"
- name: ubuntu
os: ubuntu-22.04
prefix: /usr
sudo: sudo env "PATH=$PATH"
- name: windows
os: windows-latest
prefix: D:\
sudo: ''
meson_options: -Dportable=true -Db_vscrt=static_from_buildtype
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install meson ninja
- uses: seanmiddleditch/gha-setup-vsdevenv@master
if: matrix.os == 'windows-latest'
- name: Install Rizin
run: |
git clone https://github.com/rizinorg/rizin
cd rizin
git checkout v0.7.0
meson --buildtype=release --prefix=${{ matrix.prefix }} ${{ matrix.meson_options }} build
meson compile ${{ matrix.os == 'windows-latest' && '-j1' || '' }} -C build
${{ matrix.sudo }} meson install -C build
cd ..
- name: Add rizin dir to PATH
if: matrix.os == 'windows-latest'
run: |
echo "D:/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Set up Golang
uses: actions/setup-go@v5
with:
go-version: 1.22
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Run unit tests
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic
- name: Build the Go binary
run: go build
- name: Make sure jsdec is present in the database
run: ./rz-pm list | grep -q 'Converts asm to pseudo-C code'
- name: Install jsdec
run: ./rz-pm install jsdec
- name: Check jsdec
run: ls $(rizin -H RZ_USER_PLUGINS) | grep core_pdd