From 951bd2ef5dccd96142a206f449fa13df0f55cfc4 Mon Sep 17 00:00:00 2001 From: hamistao Date: Tue, 10 Dec 2024 20:12:12 -0300 Subject: [PATCH] WIP Signed-off-by: hamistao --- .github/workflows/tests.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 091b9971..d0d4bdcf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -286,7 +286,21 @@ jobs: src_track="$(echo "${dst_track}" | cut -d/ -f1)/stable" EXTRA_ARGS="${EXTRA_ARGS:-3} ${src_track} ${{ matrix.track }}" fi - sudo --preserve-env=GITHUB_ACTIONS,GITHUB_STEP_SUMMARY,TEST_IMG ./bin/local-run "tests/${TEST_SCRIPT}" ${{ matrix.track }} ${EXTRA_ARGS:-} + + git clone https://github.com/hamistao/lxd + cd lxd + git checkout disk_size_fixes + sudo apt update + sudo apt install acl attr autoconf automake dnsmasq-base git libacl1-dev libcap-dev liblxc1 liblxc-dev libsqlite3-dev libtool libudev-dev liblz4-dev libuv1-dev make pkg-config rsync squashfs-tools tar tcl xz-utils ebtables + command -v snap >/dev/null || sudo apt-get install snapd + sudo snap install --classic go + make deps + export CGO_CFLAGS="-I/home/runner/go/deps/dqlite/include/" + export CGO_LDFLAGS="-L/home/runner/go/deps/dqlite/.libs/" + export LD_LIBRARY_PATH="/home/runner/go/deps/dqlite/.libs/" + export CGO_LDFLAGS_ALLOW="(-Wl,-wrap,pthread_create)|(-Wl,-z,now)" + make + sudo LXD_SIDELOAD_PATH=/home/runner/go/bin/lxd --preserve-env=GITHUB_ACTIONS,GITHUB_STEP_SUMMARY,TEST_IMG ./bin/local-run "tests/${TEST_SCRIPT}" ${{ matrix.track }} ${EXTRA_ARGS:-} # always update cache as we have our own logic of # cache invalidation and updates in addition to a date check