From 370e12cc67ecca2d8708c3dbb5850c2f774d79f3 Mon Sep 17 00:00:00 2001 From: Khairul Azhar Kasmiran Date: Thu, 14 Mar 2024 18:35:36 +0800 Subject: [PATCH 1/2] Patch meson.build for wheel build --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af1d7b3..1ca67e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,10 @@ jobs: path: rizin ref: ${{ inputs.rizin_ref }} + - name: Patch meson.build for wheel build + if: matrix.os != 'windows-2019' + run: sed -i 's/^\([[:blank:]]*install:\) host_machine.*$/\1 true,/' meson.build + - name: Build rz-bindgen uses: pypa/cibuildwheel@v2.8.0 From ca262e2a40038b4856e10dbf6290bfa8c66504b9 Mon Sep 17 00:00:00 2001 From: Khairul Azhar Kasmiran Date: Thu, 14 Mar 2024 18:48:22 +0800 Subject: [PATCH 2/2] Use suffix with `sed` --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1ca67e0..da03a47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: - name: Patch meson.build for wheel build if: matrix.os != 'windows-2019' - run: sed -i 's/^\([[:blank:]]*install:\) host_machine.*$/\1 true,/' meson.build + run: sed -i.bak 's/^\([[:blank:]]*install:\) host_machine.*$/\1 true,/' meson.build - name: Build rz-bindgen uses: pypa/cibuildwheel@v2.8.0