Trigger build on pushes and pull requests (#607)
This commit is contained in:
parent
a7ce94f63e
commit
2b688d4858
9
.github/workflows/main.yaml
vendored
9
.github/workflows/main.yaml
vendored
@ -1,9 +1,16 @@
|
|||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
all:
|
all:
|
||||||
|
name: All
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
os:
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
use crate::common::*;
|
use crate::common::*;
|
||||||
|
|
||||||
use target;
|
|
||||||
use Function::*;
|
use Function::*;
|
||||||
|
|
||||||
pub(crate) enum Function {
|
pub(crate) enum Function {
|
||||||
|
@ -8,8 +8,10 @@
|
|||||||
clippy::implicit_return,
|
clippy::implicit_return,
|
||||||
clippy::indexing_slicing,
|
clippy::indexing_slicing,
|
||||||
clippy::integer_arithmetic,
|
clippy::integer_arithmetic,
|
||||||
|
clippy::let_underscore_must_use,
|
||||||
clippy::match_same_arms,
|
clippy::match_same_arms,
|
||||||
clippy::missing_docs_in_private_items,
|
clippy::missing_docs_in_private_items,
|
||||||
|
clippy::missing_errors_doc,
|
||||||
clippy::missing_inline_in_public_items,
|
clippy::missing_inline_in_public_items,
|
||||||
clippy::needless_pass_by_value,
|
clippy::needless_pass_by_value,
|
||||||
clippy::non_ascii_literal,
|
clippy::non_ascii_literal,
|
||||||
@ -24,8 +26,7 @@
|
|||||||
clippy::too_many_lines,
|
clippy::too_many_lines,
|
||||||
clippy::unreachable,
|
clippy::unreachable,
|
||||||
clippy::use_debug,
|
clippy::use_debug,
|
||||||
clippy::wildcard_enum_match_arm,
|
clippy::wildcard_enum_match_arm
|
||||||
clippy::missing_errors_doc
|
|
||||||
)]
|
)]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
@ -11,7 +11,7 @@ impl<'line> Shebang<'line> {
|
|||||||
|
|
||||||
let mut pieces = line[2..]
|
let mut pieces = line[2..]
|
||||||
.lines()
|
.lines()
|
||||||
.nth(0)
|
.next()
|
||||||
.unwrap_or("")
|
.unwrap_or("")
|
||||||
.trim()
|
.trim()
|
||||||
.splitn(2, |c| c == ' ' || c == '\t');
|
.splitn(2, |c| c == ' ' || c == '\t');
|
||||||
|
Loading…
Reference in New Issue
Block a user