Skip to content

Commit

Permalink
chore: ensure windows support for noise via ci (cloudflare#292)
Browse files Browse the repository at this point in the history
The device stuff still won't work on windows, but this will at least ensure the windows library compiles.
  • Loading branch information
Noah-Kennedy committed Jul 12, 2022
1 parent 1c23fc7 commit 05ba8df
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/on-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,24 @@ jobs:
- rustfmt
- tests
- integration-tests
- test-windows
steps:
- run: exit 0

test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Check Windows
run: cargo check -p boringtun

- name: Test Windows
run: cargo test -p boringtun

check_features:
strategy:
matrix:
Expand Down
6 changes: 1 addition & 5 deletions boringtun/src/noise/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,7 @@ impl Tunn {
self.inner.read().time_since_last_handshake()
}

pub(crate) fn handle_verified_packet<'a>(
&self,
packet: Packet,
dst: &'a mut [u8],
) -> TunnResult<'a> {
pub fn handle_verified_packet<'a>(&self, packet: Packet, dst: &'a mut [u8]) -> TunnResult<'a> {
self.inner.write().handle_verified_packet(packet, dst)
}

Expand Down

0 comments on commit 05ba8df

Please sign in to comment.