From c9f0943f726909b86def4cfadbd034052ccc39e4 Mon Sep 17 00:00:00 2001 From: Zxilly Date: Wed, 27 Nov 2024 13:28:11 +0800 Subject: [PATCH] ci: enable ipv6 --- .github/workflows/ci.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 460d07b..ea3c647 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -99,22 +99,19 @@ jobs: run: | sudo pip install -r scripts/requirements.txt - - name: Configure ipv6 - run: | - sudo sysctl -w net.ipv6.conf.all.use_tempaddr=0 - sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0 - sudo sysctl -w net.ipv6.conf.default.disable_ipv6=0 - - for interface in $(ip -br link show | awk '{print $1}'); do - sudo sysctl -w net.ipv6.conf.${interface}.disable_ipv6=0 - done - - name: Enable ipv6 uses: fscarmen/warp-on-actions@v1.3 with: stack: dual mode: client + - name: Configure ipv6 + run: | + echo "net.ipv6.conf.all.disable_ipv6=0" | sudo tee -a /etc/sysctl.conf + echo "net.ipv6.conf.default.disable_ipv6=0" | sudo tee -a /etc/sysctl.conf + echo "net.ipv6.conf.lo.disable_ipv6=0" | sudo tee -a /etc/sysctl.conf + sudo sysctl -p + - name: Run unit tests run: | cmake -S . -B build -DUA2F_BUILD_TESTS=OFF -DUA2F_ENABLE_UCI=OFF -DUA2F_ENABLE_ASAN=ON ${{ matrix.cache == 'false' && '-DUA2F_NO_CACHE=ON' || '-DUA2F_NO_CACHE=OFF' }}