mirror of
https://github.com/actix/examples
synced 2024-11-23 22:41:07 +01:00
ignore protobuf-example in ci
This commit is contained in:
parent
900a699fba
commit
f623284c71
32
.github/workflows/linux.yml
vendored
32
.github/workflows/linux.yml
vendored
@ -15,28 +15,27 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
version: ["stable", "nightly"]
|
version: ['stable', 'nightly']
|
||||||
|
|
||||||
|
env:
|
||||||
|
# included in example of redis, not clear its purpose
|
||||||
|
CI: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: cache cargo artifacts
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cargo/registry
|
|
||||||
~/.cargo/git
|
|
||||||
./target/debug
|
|
||||||
key: cargo-linux-${{ matrix.version }}-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
cargo-linux-${{ matrix.version }}-
|
|
||||||
|
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: ${{ matrix.version }}
|
toolchain: ${{ matrix.version }}
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
|
- name: Generate Cargo.lock
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with: { command: generate-lockfile }
|
||||||
|
- name: Cache Dependencies
|
||||||
|
uses: Swatinem/rust-cache@v1.2.0
|
||||||
|
|
||||||
- name: create test db for sqlx
|
- name: create test db for sqlx
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update && sudo apt-get install sqlite3
|
sudo apt-get update && sudo apt-get install sqlite3
|
||||||
@ -50,7 +49,8 @@ jobs:
|
|||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
with:
|
with:
|
||||||
command: check
|
command: check
|
||||||
args: --workspace --bins --examples --tests
|
# TODO: remove exclude protobuf-example when upgraded; currently fails on nightly
|
||||||
|
args: --workspace --bins --examples --tests --exclude protobuf-example
|
||||||
|
|
||||||
- name: start redis
|
- name: start redis
|
||||||
uses: supercharge/redis-github-action@1.1.0
|
uses: supercharge/redis-github-action@1.1.0
|
||||||
@ -67,9 +67,7 @@ jobs:
|
|||||||
- name: cargo test
|
- name: cargo test
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
env:
|
|
||||||
# included in example of redis, not clear its purpose
|
|
||||||
CI: true
|
|
||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
args: --workspace --all-features --no-fail-fast -- --nocapture
|
# TODO: remove exclude protobuf-example when upgraded; currently fails on nightly
|
||||||
|
args: --workspace --all-features --no-fail-fast --exclude protobuf-example -- --nocapture
|
||||||
|
17
Cargo.lock
generated
17
Cargo.lock
generated
@ -384,7 +384,7 @@ version = "0.5.0-beta.2"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "36b95ce0d76d1aa2f98b681702807475ade0f99bd4552546a6843a966d42ea3d"
|
checksum = "36b95ce0d76d1aa2f98b681702807475ade0f99bd4552546a6843a966d42ea3d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytestring 0.1.5",
|
"bytestring 1.0.0",
|
||||||
"firestorm",
|
"firestorm",
|
||||||
"http",
|
"http",
|
||||||
"log",
|
"log",
|
||||||
@ -2502,6 +2502,19 @@ dependencies = [
|
|||||||
"termcolor",
|
"termcolor",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "env_logger"
|
||||||
|
version = "0.9.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3"
|
||||||
|
dependencies = [
|
||||||
|
"atty",
|
||||||
|
"humantime 2.0.1",
|
||||||
|
"log",
|
||||||
|
"regex",
|
||||||
|
"termcolor",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "error-chain"
|
name = "error-chain"
|
||||||
version = "0.12.4"
|
version = "0.12.4"
|
||||||
@ -4624,7 +4637,7 @@ dependencies = [
|
|||||||
"actix-protobuf",
|
"actix-protobuf",
|
||||||
"actix-web 3.3.1",
|
"actix-web 3.3.1",
|
||||||
"bytes 0.5.6",
|
"bytes 0.5.6",
|
||||||
"env_logger 0.7.1",
|
"env_logger 0.9.0",
|
||||||
"prost",
|
"prost",
|
||||||
"prost-derive",
|
"prost-derive",
|
||||||
]
|
]
|
||||||
|
2
database_interactions/sqlx_todo/.gitignore
vendored
2
database_interactions/sqlx_todo/.gitignore
vendored
@ -1,3 +1,3 @@
|
|||||||
/target
|
/target
|
||||||
.env
|
.env
|
||||||
test.db
|
test.db*
|
||||||
|
@ -11,7 +11,7 @@ actix-web = "3"
|
|||||||
listenfd = "0.3.3"
|
listenfd = "0.3.3"
|
||||||
serde = "1.0.106"
|
serde = "1.0.106"
|
||||||
serde_json = "1.0.51"
|
serde_json = "1.0.51"
|
||||||
sqlx = { version = "0.3", features = [ "sqlite" ] }
|
sqlx = { version = "0.3", features = ["sqlite"] }
|
||||||
dotenv = "0.15.0"
|
dotenv = "0.15.0"
|
||||||
env_logger = "0.7.1"
|
env_logger = "0.7.1"
|
||||||
log = "0.4.8"
|
log = "0.4.8"
|
||||||
|
@ -5,11 +5,11 @@ authors = ["kingxsp <jin.hb.zh@outlook.com>, Yuki Okushi <huyuumi.dev@gmail.com>
|
|||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bytes = "0.5.4"
|
|
||||||
env_logger = "0.7.1"
|
|
||||||
prost = "0.6.1"
|
|
||||||
prost-derive = "0.6.1"
|
|
||||||
|
|
||||||
actix = "0.10"
|
actix = "0.10"
|
||||||
actix-protobuf = "0.6"
|
actix-protobuf = "0.6"
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
|
|
||||||
|
bytes = "0.5.4"
|
||||||
|
env_logger = "0.9"
|
||||||
|
prost = "0.6"
|
||||||
|
prost-derive = "0.6"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate prost_derive;
|
extern crate prost_derive;
|
||||||
|
|
||||||
use actix_protobuf::*;
|
use actix_protobuf::{ProtoBuf, ProtoBufResponseBuilder as _};
|
||||||
use actix_web::*;
|
use actix_web::{middleware, web, App, HttpResponse, HttpServer, Result};
|
||||||
|
|
||||||
#[derive(Clone, PartialEq, Message)]
|
#[derive(Clone, PartialEq, Message)]
|
||||||
pub struct MyObj {
|
pub struct MyObj {
|
||||||
|
Loading…
Reference in New Issue
Block a user