-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lambda with Async/Await #111
Changes from 31 commits
f914c3f
5e66648
96ea124
ae003fd
5869b52
2d5b168
abdf54a
a564dac
b7eb844
024730f
12a1050
8233a68
d31200d
044caf5
4b507c9
4d21c00
2447e4e
a57f2d1
7a34cc2
4b9a2e8
ee837cb
4a08c58
b1e2570
9528a7b
5eb6954
b890cf4
77c0b95
1b95ac1
8fed758
2d37c34
603315a
e691c0e
6536257
006a275
d252d04
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Rust | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macOS-latest | ||
rust: | ||
- 1.40.0 | ||
- stable | ||
- beta | ||
- nightly | ||
target: | ||
- "" | ||
- x86_64-unknown-linux-musl | ||
include: | ||
- rust: nightly | ||
allow_failure: true | ||
exclude: | ||
- os: macOS-latest | ||
target: x86_64-unknown-linux-musl | ||
- os: ubuntu-latest | ||
rust: 1.40.0 | ||
target: x86_64-unknown-linux-musl | ||
- os: ubuntu-latest | ||
rust: beta | ||
target: x86_64-unknown-linux-musl | ||
- os: ubuntu-latest | ||
rust: nightly | ||
target: x86_64-unknown-linux-musl | ||
- os: macOS-latest | ||
rust: 1.40.0 | ||
- os: macOS-latest | ||
rust: beta | ||
- os: macOS-latest | ||
rust: nightly | ||
env: | ||
RUST_BACKTRACE: 1 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
- name: Build | ||
run: cargo build --all --verbose | ||
env: | ||
TARGET: ${{ matrix.target }} | ||
continue-on-error: ${{ matrix.allow_failure }} | ||
- name: Run tests | ||
run: cargo test --all --verbose | ||
env: | ||
TARGET: ${{ matrix.target }} | ||
continue-on-error: ${{ matrix.allow_failure }} | ||
fmt: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Clippy? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I think we should add Clippy. |
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
components: rustfmt | ||
override: true | ||
- name: Run fmt check | ||
run: cargo fmt --all -- --check |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
edition = "2018" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Didn't know this was a thing but heads up, rustfmt picks up the edition from your crate if invoked via cargo so you might not need this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, it normally should, but I think rust-analyzer didn't pick it up, but I think that was fixed. |
||
# https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#merge_imports | ||
merge_imports = true | ||
# https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#max_width | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why fix to 1.40 instead of testing against stable? Do we plan to keep adding older versions here to ensure we maintain compatibility?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It depends: do we intend to have an minimum supported rust version?