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