11name : Run Examples
22
3- # --- ORIGINAL TRIGGERS (RESTORE FOR FINAL UPSTREAM PR) ---
4- # on:
5- # pull_request:
6- # push:
7- # branches:
8- # - main
9- # - "release/**"
10- # workflow_dispatch:
11-
12- # -----------------------------------------------------------------------------
13- # --- FORK TESTING TRIGGERS (REMOVE THIS BLOCK BEFORE FINAL UPSTREAM PR) ---
14- # -----------------------------------------------------------------------------
153on :
164 pull_request :
17- branches :
18- - main
19- types :
20- - opened
21- - reopened
22- - synchronize
5+ branches : [main]
6+ types : [opened, reopened, synchronize]
237 push :
24- branches :
25- - " **"
8+ branches : ["**"]
269 workflow_dispatch :
2710
2811defaults :
@@ -39,19 +22,13 @@ concurrency:
3922jobs :
4023 run-examples :
4124 name : Build and run SDK examples (Linux + Solo)
42-
43- # --- ORIGINAL RUNNER (RESTORE FOR FINAL UPSTREAM PR) ---
44- # runs-on: hiero-client-sdk-linux-large
45-
46- # -------------------------------------------------------------------------
47- # --- FORK TESTING RUNNER (REMOVE BEFORE FINAL UPSTREAM PR) ---
48- # -------------------------------------------------------------------------
4925 runs-on : ubuntu-latest
5026 timeout-minutes : 60
5127
5228 steps :
5329 - name : Harden runner (audit outbound calls)
54- uses : step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0
30+ if : github.repository_owner == 'hiero-ledger'
31+ uses : step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176
5532 with :
5633 egress-policy : audit
5734
@@ -65,23 +42,25 @@ jobs:
6542 with :
6643 node-version : 22
6744
68- - name : Install build dependencies
45+ - name : Install build dependencies (including CMake + Ninja)
6946 run : |
7047 sudo apt-get update
71- sudo apt-get install -y pkg-config libc6-dbg libgtest-dev build-essential
48+ sudo apt-get install -y \
49+ pkg-config \
50+ libc6-dbg \
51+ libgtest-dev \
52+ build-essential \
53+ cmake \
54+ ninja-build
7255
7356 - name : Ensure binary cache path exists
7457 run : mkdir -p "${{ github.workspace }}/b/vcpkg_cache"
7558
76- - name : Install CMake and Ninja
77- uses : step-security/get-cmake@81a83056b6dd1f2bcf67bc6f26b7b08e1cbb86bc # v4.2.3
78- with :
79- useCloudCache : true
80-
8159 - name : Setup VCPkg
82- uses : step-security/run-vcpkg@48490398616947b0df92dc1b24aab5339a66f9f0 # v11.5.2
83- with :
84- binaryCachePath : ${{ github.workspace }}/b/vcpkg_cache
60+ run : |
61+ rm -rf vcpkg
62+ git clone https://github.com/microsoft/vcpkg.git
63+ ./vcpkg/bootstrap-vcpkg.sh -disableMetrics
8564
8665 - name : Convert VCPkg to full clone
8766 working-directory : vcpkg
0 commit comments