mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-27 02:24:30 +01:00
2eeed55c18
This PR adds supports for the WireGuard userspace implementation using Bind interface from wireguard-go. The newly introduced ICEBind struct implements Bind with UDPMux-based structs from pion/ice to handle hole punching using ICE. The core implementation was taken from StdBind of wireguard-go. The result is a single WireGuard port that is used for host and server reflexive candidates. Relay candidates are still handled separately and will be integrated in the following PRs. ICEBind checks the incoming packets for being STUN or WireGuard ones and routes them to UDPMux (to handle hole punching) or to WireGuard respectively.
61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
name: Test installation Darwin
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
paths:
|
|
- "release_files/install.sh"
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
install-cli-only:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Rename brew package
|
|
if: ${{ matrix.check_bin_install }}
|
|
run: mv /opt/homebrew/bin/brew /opt/homebrew/bin/brew.bak
|
|
|
|
- name: Run install script
|
|
run: |
|
|
sh ./release_files/install.sh
|
|
env:
|
|
SKIP_UI_APP: true
|
|
|
|
- name: Run tests
|
|
run: |
|
|
if ! command -v netbird &> /dev/null; then
|
|
echo "Error: netbird is not installed"
|
|
exit 1
|
|
fi
|
|
install-all:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Rename brew package
|
|
if: ${{ matrix.check_bin_install }}
|
|
run: mv /opt/homebrew/bin/brew /opt/homebrew/bin/brew.bak
|
|
|
|
- name: Run install script
|
|
run: |
|
|
sh ./release_files/install.sh
|
|
|
|
- name: Run tests
|
|
run: |
|
|
if ! command -v netbird &> /dev/null; then
|
|
echo "Error: netbird is not installed"
|
|
exit 1
|
|
fi
|
|
|
|
if [[ $(mdfind "kMDItemContentType == 'com.apple.application-bundle' && kMDItemFSName == '*NetBird UI.app'") ]]; then
|
|
echo "Error: NetBird UI is not installed"
|
|
exit 1
|
|
fi
|