From 00517f09e11027dfd2676abb9304d1545345c148 Mon Sep 17 00:00:00 2001 From: rikodot <36451944+rikodot@users.noreply.github.com> Date: Mon, 12 Aug 2024 23:39:27 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8741c55..afb3a4b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,11 +29,18 @@ jobs: name: ubuntu } version: - - v3.3.3996 - - v3.4.4271-stable - - v3.5.4526-stable - - v4.0.4958-stable + #- v3.3.3996 + # patch-file: ../.github/workflows/3.5_0001-Support-building-plugins-without-an-install.patch + #- v3.4.4271-stable + # patch-file: ../.github/workflows/3.5_0001-Support-building-plugins-without-an-install.patch + #- v3.5.4526-stable + # patch-file: ../.github/workflows/3.5_0001-Support-building-plugins-without-an-install.patch + #- v4.0.4958-stable + # patch-file: ../.github/workflows/4.0_0001-Support-building-plugins-without-an-install.patch + - v4.1.5747-stable + patch-file: ../.github/workflows/4.1_0001-Support-building-plugins-without-an-install.patch - dev + patch-file: ../.github/workflows/4.1_0001-Support-building-plugins-without-an-install.patch steps: - uses: actions/checkout@v3 with: @@ -45,14 +52,13 @@ jobs: git clone --recurse-submodules /~https://github.com/Vector35/binaryninja-api binaryninjaapi cd binaryninjaapi git fetch --tags - git checkout --force ${{matrix.version}} + git checkout --force ${{matrix.version.name}} + git submodule update --init --recursive - name: Patch api to allow building headlessly shell: bash run: | cd binaryninjaapi - git apply --verbose ../.github/workflows/4.1_0001-Support-building-plugins-without-an-install.patch \ - || git apply --verbose ../.github/workflows/4.0_0001-Support-building-plugins-without-an-install.patch \ - || git apply --verbose ../.github/workflows/3.5_0001-Support-building-plugins-without-an-install.patch + git apply --verbose ${{matrix.version.patch-file}} - name: Configure CMake run: cmake -B ${{github.workspace}}/build -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: Build @@ -61,17 +67,17 @@ jobs: if: runner.os == 'Windows' uses: actions/upload-artifact@v3 with: - name: ${{matrix.config.name}}-${{matrix.version}} + name: ${{matrix.config.name}}-${{matrix.version.name}} path: ${{github.workspace}}/build/*sigscan* - name: Upload artifact for macOS if: runner.os == 'macOS' uses: actions/upload-artifact@v3 with: - name: ${{matrix.config.name}}-${{matrix.version}} + name: ${{matrix.config.name}}-${{matrix.version.name}} path: ${{github.workspace}}/build/out/bin/*sigscan* - name: Upload artifact for Linux if: runner.os == 'Linux' uses: actions/upload-artifact@v3 with: - name: ${{matrix.config.name}}-${{matrix.version}} + name: ${{matrix.config.name}}-${{matrix.version.name}} path: ${{github.workspace}}/build/out/bin/*sigscan*