Skip to content

Commit

Permalink
fix workflow;
Browse files Browse the repository at this point in the history
  • Loading branch information
mycrl committed Sep 13, 2024
1 parent 8124f0c commit 675fbde
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
-
uses: actions/checkout@v4
-
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand Down Expand Up @@ -70,23 +70,23 @@ jobs:
-
name: Upload artifact (Linux)
if: runner.os == 'Linux' && matrix.arch == 'x86_64'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: linux-x86_64
path: |
./target/release/turn-server-linux-x86_64
-
name: Upload artifact (Linux)
if: runner.os == 'Linux' && matrix.arch == 'aarch64'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: linux-x86_64
path: |
./target/aarch64-unknown-linux-gnu/release/turn-server-linux-aarch64
-
name: Upload artifact (Windows)
if: runner.os == 'Windows' && matrix.arch == 'x86_64'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: windows-x86_64
path: |
Expand All @@ -100,7 +100,7 @@ jobs:
uses: actions/checkout@v3
-
name: Download All Artifacts
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
with:
path: artifacts
-
Expand Down
21 changes: 14 additions & 7 deletions tests/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
use base64::prelude::*;
use bytes::BytesMut;
use once_cell::sync::Lazy;
use stun::attribute::{
ChannelNumber, Data, ErrKind, ErrorCode, Lifetime, MappedAddress, Realm, ReqeestedTransport,
ResponseOrigin, Transport, UserName, XorMappedAddress, XorPeerAddress, XorRelayedAddress,
use stun::{
attribute::{
ChannelNumber, Data, ErrKind, ErrorCode, Lifetime, MappedAddress, Realm,
ReqeestedTransport, ResponseOrigin, Transport, UserName, XorMappedAddress, XorPeerAddress,
XorRelayedAddress,
},
Decoder, Kind, MessageReader, MessageWriter, Method, Payload,
};

use rand::seq::SliceRandom;
use stun::{Decoder, Kind, MessageReader, MessageWriter, Method, Payload};
use tokio::{net::UdpSocket, runtime::Runtime};
use turn_server::{
config::{self, *},
startup,
};

use std::net::{IpAddr, Ipv4Addr, SocketAddr};
use std::sync::Arc;
use std::{collections::HashMap, thread::sleep, time::Duration};
use std::{
collections::HashMap,
net::{IpAddr, Ipv4Addr, SocketAddr},
sync::Arc,
thread::sleep,
time::Duration,
};

static RUNTIME: Lazy<Runtime> = Lazy::new(|| Runtime::new().unwrap());

Expand Down

0 comments on commit 675fbde

Please sign in to comment.