diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2022-04-18 14:21:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-18 14:21:02 -0400 |
commit | 3f97fe0355dd809939fb5a73fe1e76b86306908f (patch) | |
tree | ab5100a5f3c18a943dcb3f18042f7e61d1b39e05 /.github | |
parent | 42f88e1b9c490ae9f8e21e67c543474dbae2c88b (diff) |
Disable automake dependency tracking in our various one-time builds. (#12701)
* Disable automake dependency tracking in our various one-time builds.
* Also disable dependency tracking code in package builds.
Diffstat (limited to '.github')
-rwxr-xr-x | .github/scripts/build-artifacts.sh | 1 | ||||
-rwxr-xr-x | .github/scripts/build-dist.sh | 1 | ||||
-rwxr-xr-x | .github/scripts/run_install_with_dist_file.sh | 2 | ||||
-rw-r--r-- | .github/workflows/build.yml | 8 | ||||
-rw-r--r-- | .github/workflows/checks.yml | 4 | ||||
-rw-r--r-- | .github/workflows/tests.yml | 2 |
6 files changed, 10 insertions, 8 deletions
diff --git a/.github/scripts/build-artifacts.sh b/.github/scripts/build-artifacts.sh index e635765bd0..569c79a5a1 100755 --- a/.github/scripts/build-artifacts.sh +++ b/.github/scripts/build-artifacts.sh @@ -33,6 +33,7 @@ build_dist() { --with-zlib \ --with-math \ --with-user=netdata \ + --disable-dependency-tracking \ CFLAGS=-O2 make dist mv "${BASENAME}.tar.gz" artifacts/ diff --git a/.github/scripts/build-dist.sh b/.github/scripts/build-dist.sh index f7e27324cb..027b621478 100755 --- a/.github/scripts/build-dist.sh +++ b/.github/scripts/build-dist.sh @@ -32,6 +32,7 @@ build_dist() { --with-zlib \ --with-math \ --with-user=netdata \ + --disable-dependency-tracking \ CFLAGS=-O2 make dist mv "${BASENAME}.tar.gz" artifacts/ diff --git a/.github/scripts/run_install_with_dist_file.sh b/.github/scripts/run_install_with_dist_file.sh index 83559f267d..d59e8b1344 100755 --- a/.github/scripts/run_install_with_dist_file.sh +++ b/.github/scripts/run_install_with_dist_file.sh @@ -33,7 +33,7 @@ docker run \ -v "${PWD}:/netdata" \ -w /netdata \ "ubuntu:latest" \ - /bin/bash -c "./install-required-packages.sh --dont-wait --non-interactive netdata && apt install wget && ./netdata-installer.sh --dont-wait --require-cloud --disable-telemetry --install /tmp && echo \"Validating netdata instance is running\" && wget -O - 'http://127.0.0.1:19999/api/v1/info' | grep version" + /bin/bash -c "./install-required-packages.sh --dont-wait --non-interactive netdata && apt install wget && ./netdata-installer.sh --dont-wait --require-cloud --disable-telemetry --install /tmp --one-time-build && echo \"Validating netdata instance is running\" && wget -O - 'http://127.0.0.1:19999/api/v1/info' | grep version" popd || exit 1 echo "All Done!" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6deae336cb..90c59d5112 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -321,23 +321,23 @@ jobs: id: build-basic run: | docker run --security-opt seccomp=unconfined -w /netdata sha256:${{ steps.load.outputs.image }} \ - /bin/sh -c 'autoreconf -ivf && ./configure && make -j2' + /bin/sh -c 'autoreconf -ivf && ./configure --disable-dependency-tracking && make -j2' - name: netdata-installer on ${{ matrix.distro }}, disable cloud id: build-no-cloud run: | docker run --security-opt seccomp=unconfined -w /netdata sha256:${{ steps.load.outputs.image }} \ - /bin/sh -c './netdata-installer.sh --dont-wait --dont-start-it --disable-cloud' + /bin/sh -c './netdata-installer.sh --dont-wait --dont-start-it --disable-cloud --one-time-build' - name: netdata-installer on ${{ matrix.distro }}, require cloud id: build-cloud run: | docker run --security-opt seccomp=unconfined -w /netdata sha256:${{ steps.load.outputs.image }} \ - /bin/sh -c './netdata-installer.sh --dont-wait --dont-start-it --require-cloud' + /bin/sh -c './netdata-installer.sh --dont-wait --dont-start-it --require-cloud --one-time-build' - name: netdata-installer on ${{ matrix.distro }}, require cloud, no JSON-C id: build-no-jsonc if: matrix.jsonc_removal != '' run: | docker run --security-opt seccomp=unconfined -w /netdata sha256:${{ steps.load.outputs.image }} \ - /bin/sh -c '/rmjsonc.sh && ./netdata-installer.sh --dont-wait --dont-start-it --require-cloud' + /bin/sh -c '/rmjsonc.sh && ./netdata-installer.sh --dont-wait --dont-start-it --require-cloud --one-time-build' - name: Failure Notification uses: rtCamp/action-slack-notify@v2 env: diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 5f9a9c8c68..b161bd549e 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -27,7 +27,7 @@ jobs: apk del openssl openssl-dev; apk add libressl libressl-dev; autoreconf -ivf; - ./configure; + ./configure --disable-dependency-trackiong; make;' clang-checks: name: Clang @@ -51,7 +51,7 @@ jobs: - name: Prepare environment run: ./packaging/installer/install-required-packages.sh --dont-wait --non-interactive netdata - name: Build netdata - run: ./netdata-installer.sh --dont-start-it --disable-telemetry --dont-wait --install /tmp/install + run: ./netdata-installer.sh --dont-start-it --disable-telemetry --dont-wait --install /tmp/install --one-time-build - name: Check that repo is clean run: | git status --porcelain=v1 > /tmp/porcelain diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7e53c4979b..6272a6d68d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -57,7 +57,7 @@ jobs: - name: Configure run: | autoreconf -ivf - ./configure --disable-ml + ./configure --disable-ml --disable-dependency-tracking # XXX: Work-around for bug with libbson-1.0 in Ubuntu 18.04 # See: https://bugs.launchpad.net/ubuntu/+source/libmongoc/+bug/1790771 # https://jira.mongodb.org/browse/CDRIVER-2818 |