diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-05-24 00:13:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-24 00:13:03 +0200 |
| commit | d4dc884012e80b48a99754bf09824b5f7ae6ff2b (patch) | |
| tree | 1983663690d9652baefc5a8dae96fe70a25650ea /.github/workflows | |
| parent | 677e02be4e1255435a39d25a4b12ecbed4fff37b (diff) | |
| parent | 8a6716682e6ef59e0396a14d1d83abb6db7b2b81 (diff) | |
| download | rneovim-d4dc884012e80b48a99754bf09824b5f7ae6ff2b.tar.gz rneovim-d4dc884012e80b48a99754bf09824b5f7ae6ff2b.tar.bz2 rneovim-d4dc884012e80b48a99754bf09824b5f7ae6ff2b.zip | |
fix(deps): restore functionality of USE_EXISTING_SRC_DIR
fix(deps): restore functionality of USE_EXISTING_SRC_DIR
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 605ba2b4c0..26197cdcd3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -78,3 +78,30 @@ jobs: - name: Install run: make install + + use-existing-src: + name: Test USE_EXISTING_SRC_DIR=ON builds with no network access + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + + - name: Install build dependencies + run: ./.github/scripts/install_deps.sh + + - name: Build bundled dependencies + run: make deps + + - name: Clean bundled dependencies à la neovim/deps + run: | + rm -rf ./build + find .deps .deps/build -maxdepth 1 '!' \( -name .deps -o -name build -o -name src \) -exec rm -r '{}' + + cd .deps/build/src + rm -rf ./*-build + rm -rf ./*-stamp/*-{configure,build,install,done} + for d in *; do (cd "$d"; rm -rf ./autom4te.cache; make clean || true; make distclean || true); done + + - name: Re-build bundled dependencies with no network access + run: unshare --map-root-user --net make deps DEPS_CMAKE_FLAGS=-DUSE_EXISTING_SRC_DIR=ON + + - name: Build + run: make CMAKE_FLAGS="-D CI_BUILD=ON" |