Skip to content

Commit 0df251a

Browse files
committed
experiment - builddir bind
1 parent f9f0976 commit 0df251a

2 files changed

Lines changed: 19 additions & 13 deletions

File tree

.github/workflows/build-debian.infer.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,19 @@ jobs:
3232
tag: debian13-infer-clang-20
3333
nogalera: true
3434

35-
uses: ./.github/workflows/bbw_build_container_template.yml
36-
with:
37-
dockerfile: debian.Dockerfile infer.fragment.Dockerfile
38-
image: ${{ matrix.image }}
39-
platforms: ${{ matrix.platforms }}
40-
tag: ${{ matrix.tag }}
41-
branch: ${{ matrix.branch }}
42-
nogalera: ${{ matrix.nogalera }}
43-
noqpress: true
44-
runner: 'ubuntu-24.04'
45-
secrets: inherit
35+
steps:
36+
- name: empty builddir
37+
run: |
38+
mkdir $GITHUB_WORKSPACE/builddir
39+
40+
- uses: ./.github/workflows/bbw_build_container_template.yml
41+
with:
42+
dockerfile: debian.Dockerfile infer.fragment.Dockerfile
43+
image: ${{ matrix.image }}
44+
platforms: ${{ matrix.platforms }}
45+
tag: ${{ matrix.tag }}
46+
branch: ${{ matrix.branch }}
47+
nogalera: ${{ matrix.nogalera }}
48+
noqpress: true
49+
runner: 'ubuntu-24.04'
50+
secrets: inherit

ci_build_images/infer.fragment.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
ARG INFER_GIT_REF=7aeddba89149a566222dc2ab351eb1a4e6256a3a
77

88
# hadolint ignore=DL3003
9-
RUN apt-get update \
9+
RUN --mount=type=bind,source=/builddir,target=/build,rw \
10+
apt-get update \
1011
&& apt-get install -y --no-install-recommends opam libsqlite3-dev \
1112
&& git init src \
1213
&& cd src \
1314
&& git remote add origin https://github.com/facebook/infer.git \
1415
&& git fetch --depth=1 origin $INFER_GIT_REF \
1516
&& git checkout FETCH_HEAD \
16-
&& INTERACTIVE=no ./build-infer.sh clang \
17+
&& TMPDIR=/build INTERACTIVE=no ./build-infer.sh clang \
1718
&& make install \
1819
&& cd / \
1920
&& rm -rf src

0 commit comments

Comments
 (0)