Skip to content

Commit

Permalink
Merge pull request #3 from GenrikhFetischev/gh_workflows
Browse files Browse the repository at this point in the history
added workflows: clippy check and release publish
  • Loading branch information
GenrikhFetischev authored Feb 23, 2024
2 parents b431be6 + b92ddc9 commit 5c0deaa
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 14 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on: push
name: Clippy check
jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: 'recursive'
fetch-depth: 1
- run: rustup component add clippy
- run: |
sudo apt-get --assume-yes install libclang-dev
sudo apt-get --assume-yes install openssl
sudo apt-get --assume-yes install libssl-dev
sudo apt-get --assume-yes install build-essential
sudo apt-get --assume-yes install libuv1-dev
sudo apt-get --assume-yes install zlib1g-dev
sudo apt-get --assume-yes install pkg-config
sudo apt-get --assume-yes install git
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --release -- -D warnings
37 changes: 37 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish to crates.io

on:
release:
types:
- created

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Pull uWebSockets
run: git submodule update --init uWebSockets
- name: Pull uSockets
run: cd uWebSockets && git submodule update --init uSockets
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}














27 changes: 16 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ native-access = []


[dependencies]
libuwebsockets-sys = { path = "../libuwebsockets-sys", version = "0.0.9", features = ["uws_vendored"] }
libuwebsockets-sys = { version = "0.0.10", features = ["uws_vendored"] }



Expand Down
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use std::ffi::{c_char, c_int};
use std::ptr::null_mut;
use std::{
ffi::{c_void, CString},
pin::Pin,
};
use std::ffi::{c_char, c_int};
use std::ptr::null_mut;

use libuwebsockets_sys::{
us_listen_socket_t, uws_app_any, uws_app_close, uws_app_connect, uws_app_delete, uws_app_get,
Expand Down

0 comments on commit 5c0deaa

Please sign in to comment.