Skip to content

Commit 2a90106

Browse files
committed
build config: more triggers, read-only perms, readability
Signed-off-by: Alex T <alext.mkrs@gmail.com>
1 parent 72ff509 commit 2a90106

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/build.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
name: Build
2-
on: [push]
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
313
jobs:
414
Build:
515
strategy:
@@ -12,14 +22,16 @@ jobs:
1222
runs_on: ubuntu-24.04-arm
1323
runs-on: ${{ matrix.runs_on }}
1424
steps:
15-
- uses: actions/checkout@v5
16-
- name: Install depdencies.
25+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26+
27+
- name: Install dependencies
1728
run: |
1829
sudo apt-get update
1930
sudo apt-get install -y cmake ninja-build build-essential python3-dev libnode-dev swig libjson-c-dev git libgtest-dev
31+
2032
- name: Build
2133
run: |
2234
mkdir build
2335
cd build
2436
cmake -G Ninja -DBUILDSWIGNODE=on ../
25-
ninja
37+
ninja

0 commit comments

Comments
 (0)