Skip to content

fix: Add keepalive. #28

fix: Add keepalive.

fix: Add keepalive. #28

Workflow file for this run

---
name: ci
on:
pull_request:
branches: [master]
# Cancel old PR builds when pushing new commits.
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
wireguard-vpn:
strategy:
matrix:
node: [2]
#node: [2, 3, 4, 5, 6, 7, 8, 9]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup wireguard
run: |
sudo apt-get -y --no-install-recommends install wireguard
sudo cp .github/buildfarm/wg0-${{ matrix.node }}.conf /etc/wireguard/wg0.conf
sudo systemctl enable wg-quick@wg0.service
sudo systemctl start wg-quick@wg0.service || (sudo systemctl status wg-quick@wg0.service && false)
- name: Wait for VPN to be up
- run: |
sudo ifconfig wg0
sudo wg show
while ! ping -c1 10.100.0.1; do sleep 1; done
sudo wg show
- name: Start worker
- run: docker run --rm -i --network host -v "$PWD/.github/buildfarm/worker-${{ matrix.node }}.yml:/app/build_buildfarm/examples/config.minimal.yml" toxchat/buildfarm-worker