ci: enable ipv6

This commit is contained in:
Zxilly 2024-11-27 13:28:11 +08:00
parent 4075a71368
commit c9f0943f72
No known key found for this signature in database
GPG Key ID: 47AB1DEC841BC6A2

View File

@ -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' }}