Skip to content

Commit 732a370

Browse files
committed
ci: update workflow for new IDA SDK cmake layout
Drop ida-cmake clone step (now bundled in SDK). Fix IDASDK path to point to repo root instead of src/ subdirectory. Update artifact paths to src/bin/plugins/.
1 parent 3ba5c49 commit 732a370

1 file changed

Lines changed: 12 additions & 27 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,13 @@ jobs:
2020
name: Build for Linux
2121
runs-on: ubuntu-latest
2222
env:
23-
IDASDK: ${{ github.workspace }}/ida-sdk/src
23+
IDASDK: ${{ github.workspace }}/ida-sdk
2424
steps:
2525
- name: Checkout project
2626
uses: actions/checkout@v4
2727

28-
- name: Prepare IDA SDK and helpers
29-
shell: bash
30-
run: |
31-
set -euxo pipefail
32-
git clone --depth 1 https://github.com/HexRaysSA/ida-sdk ida-sdk
33-
mkdir -p "${IDASDK}"
34-
git clone --depth 1 https://github.com/allthingsida/ida-cmake "${IDASDK}/ida-cmake"
28+
- name: Prepare IDA SDK
29+
run: git clone --depth 1 https://github.com/HexRaysSA/ida-sdk ida-sdk
3530

3631
- name: Configure (Linux)
3732
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
@@ -43,24 +38,19 @@ jobs:
4338
uses: actions/upload-artifact@v4
4439
with:
4540
name: qscripts-linux
46-
path: ${{ env.IDASDK }}/bin/plugins/qscripts.so
41+
path: ${{ env.IDASDK }}/src/bin/plugins/qscripts.so
4742

4843
build-macos:
4944
name: Build for macOS
5045
runs-on: macos-latest
5146
env:
52-
IDASDK: ${{ github.workspace }}/ida-sdk/src
47+
IDASDK: ${{ github.workspace }}/ida-sdk
5348
steps:
5449
- name: Checkout project
5550
uses: actions/checkout@v4
5651

57-
- name: Prepare IDA SDK and helpers
58-
shell: bash
59-
run: |
60-
set -euxo pipefail
61-
git clone --depth 1 https://github.com/HexRaysSA/ida-sdk ida-sdk
62-
mkdir -p "${IDASDK}"
63-
git clone --depth 1 https://github.com/allthingsida/ida-cmake "${IDASDK}/ida-cmake"
52+
- name: Prepare IDA SDK
53+
run: git clone --depth 1 https://github.com/HexRaysSA/ida-sdk ida-sdk
6454

6555
- name: Configure (macOS)
6656
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
@@ -72,24 +62,19 @@ jobs:
7262
uses: actions/upload-artifact@v4
7363
with:
7464
name: qscripts-macos
75-
path: ${{ env.IDASDK }}/bin/plugins/qscripts.dylib
65+
path: ${{ env.IDASDK }}/src/bin/plugins/qscripts.dylib
7666

7767
build-windows:
7868
name: Build for Windows
7969
runs-on: windows-latest
8070
env:
81-
IDASDK: ${{ github.workspace }}/ida-sdk/src
71+
IDASDK: ${{ github.workspace }}/ida-sdk
8272
steps:
8373
- name: Checkout project
8474
uses: actions/checkout@v4
8575

86-
- name: Prepare IDA SDK and helpers
87-
shell: bash
88-
run: |
89-
set -euxo pipefail
90-
git clone --depth 1 https://github.com/HexRaysSA/ida-sdk ida-sdk
91-
mkdir -p "${IDASDK}"
92-
git clone --depth 1 https://github.com/allthingsida/ida-cmake "${IDASDK}/ida-cmake"
76+
- name: Prepare IDA SDK
77+
run: git clone --depth 1 https://github.com/HexRaysSA/ida-sdk ida-sdk
9378

9479
- name: Configure (Windows)
9580
run: cmake -S . -B build -A x64
@@ -101,7 +86,7 @@ jobs:
10186
uses: actions/upload-artifact@v4
10287
with:
10388
name: qscripts-windows
104-
path: ${{ env.IDASDK }}/bin/plugins/qscripts.dll
89+
path: ${{ env.IDASDK }}/src/bin/plugins/qscripts.dll
10590

10691
publish-release:
10792
name: Publish Release

0 commit comments

Comments
 (0)