Skip to content

Commit

Permalink
cancel build or package
Browse files Browse the repository at this point in the history
  • Loading branch information
Jzow committed Aug 19, 2023
1 parent 3c9a674 commit 0120910
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,21 @@ env:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [stable, nightly]

steps:
- uses: actions/checkout@master

- name: Install ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true

- name: Set up Rust
uses: actions/checkout@v3
with:
Expand All @@ -23,14 +35,11 @@ jobs:
- name: Check out code
uses: actions/checkout@v2

- name: Build and fmt and test
- name: check and fmt and test
run: |
cargo build --verbose --target x86_64-unknown-linux-gnu
cargo fmt --verbose --target x86_64-unknown-linux-gnu
cargo test --verbose --target x86_64-unknown-linux-gnu
cargo check
cargo fmt --all -- --check
cargo test
- name: Build for Unix
if: runner.os == 'Linux'
run: |
cargo build --verbose --target x86_64-unknown-linux-gnu
cargo test --verbose --target x86_64-unknown-linux-gnu
- name: Docs
run: cargo doc --no-deps
2 changes: 1 addition & 1 deletion summer-boot/src/tcp/parsed.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#[cfg(unix)]
use async_std::os::unix::net::UnixListener;
use super::UnixListener;
use super::{ListenInfo, Listener, TcpListener};
use crate::Server;

Expand Down
2 changes: 1 addition & 1 deletion summer-boot/src/tcp/to_listener_impls.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#[cfg(unix)]
use async_std::os::unix::net::UnixListener;
use UnixListener;
use super::{ConcurrentListener, FailoverListener, ParsedListener, TcpListener, ToListener};
use async_std::io;
use http_types::url::Url;
Expand Down

0 comments on commit 0120910

Please sign in to comment.