Skip to content

Commit 0989593

Browse files
committed
ci: build images only on master
1 parent 6d8af51 commit 0989593

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎.github/workflows/build-ci-images.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ on:
55
- cron: '0 3 * * 0'
66
workflow_dispatch:
77
push:
8+
branches:
9+
- master
810
paths:
911
- '.github/workflows/build-ci-images.yml'
1012
- 'docker/Dockerfile.ci'
1113
- 'scripts/build/apt_requirements.txt'
1214

1315
jobs:
1416
build:
17+
if: github.ref == 'refs/heads/master'
1518
name: Ubuntu ${{ matrix.os }} CI image
1619
runs-on: ubuntu-latest
1720
permissions:

‎.github/workflows/main.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ jobs:
8282
with:
8383
submodules: recursive
8484

85+
- name: Install dependencies
86+
run: sh -x scripts/build/install_depends.sh
87+
8588
- name: Build
8689
run: sh -x scripts/build/do_build.sh
8790

‎.github/workflows/unittests.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ jobs:
102102
with:
103103
submodules: recursive
104104

105+
- name: Install dependencies
106+
run: sh -x scripts/build/install_depends.sh
107+
105108
- name: Cache the compiler cache
106109
uses: actions/cache@v5
107110
if: endsWith(matrix.compiler, '-qemu-cross')

0 commit comments

Comments
 (0)