Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rikodot authored Aug 12, 2024
1 parent c36f887 commit 00517f0
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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*

0 comments on commit 00517f0

Please sign in to comment.