Skip to content

Commit 9528a7b

Browse files
committed
re-introduce @AnderEnder ci changes
1 parent b1e2570 commit 9528a7b

File tree

3 files changed

+210
-1
lines changed

3 files changed

+210
-1
lines changed

.github/workflows/build.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Rust
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os:
12+
- ubuntu-latest
13+
- macOS-latest
14+
rust:
15+
- 1.40.0
16+
- stable
17+
- beta
18+
- nightly
19+
target:
20+
- ""
21+
- x86_64-unknown-linux-musl
22+
include:
23+
- rust: nightly
24+
allow_failure: true
25+
exclude:
26+
- os: macOS-latest
27+
target: x86_64-unknown-linux-musl
28+
- os: ubuntu-latest
29+
rust: 1.40.0
30+
target: x86_64-unknown-linux-musl
31+
- os: ubuntu-latest
32+
rust: beta
33+
target: x86_64-unknown-linux-musl
34+
- os: ubuntu-latest
35+
rust: nightly
36+
target: x86_64-unknown-linux-musl
37+
- os: macOS-latest
38+
rust: 1.40.0
39+
- os: macOS-latest
40+
rust: beta
41+
- os: macOS-latest
42+
rust: nightly
43+
env:
44+
RUST_BACKTRACE: 1
45+
steps:
46+
- uses: actions/checkout@v1
47+
- uses: actions-rs/toolchain@v1
48+
with:
49+
toolchain: ${{ matrix.rust }}
50+
override: true
51+
- name: Build
52+
run: cargo build --all --verbose
53+
env:
54+
TARGET: ${{ matrix.target }}
55+
continue-on-error: ${{ matrix.allow_failure }}
56+
- name: Run tests
57+
run: cargo test --all --verbose
58+
env:
59+
TARGET: ${{ matrix.target }}
60+
continue-on-error: ${{ matrix.allow_failure }}
61+
fmt:
62+
runs-on: ubuntu-latest
63+
steps:
64+
- uses: actions/checkout@v1
65+
- uses: actions-rs/toolchain@v1
66+
with:
67+
toolchain: nightly
68+
components: rustfmt
69+
override: true
70+
- name: Run fmt check
71+
run: cargo fmt --all -- --check

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ install: |
1515
1616
matrix:
1717
include:
18-
- rust: 1.31.0
18+
- rust: 1.40.0
1919
- rust: stable
2020
- rust: beta
2121
- rust: nightly

.vscode/launch.json

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "lldb",
9+
"request": "launch",
10+
"name": "Debug unit tests in library 'lambda'",
11+
"cargo": {
12+
"args": [
13+
"test",
14+
"--no-run",
15+
"--lib",
16+
"--package=lambda"
17+
],
18+
"filter": {
19+
"name": "lambda",
20+
"kind": "lib"
21+
}
22+
},
23+
"args": [],
24+
"cwd": "${workspaceFolder}"
25+
},
26+
{
27+
"type": "lldb",
28+
"request": "launch",
29+
"name": "Debug example 'hello-without-macro'",
30+
"cargo": {
31+
"args": [
32+
"build",
33+
"--example=hello-without-macro",
34+
"--package=lambda"
35+
],
36+
"filter": {
37+
"name": "hello-without-macro",
38+
"kind": "example"
39+
}
40+
},
41+
"args": [],
42+
"cwd": "${workspaceFolder}"
43+
},
44+
{
45+
"type": "lldb",
46+
"request": "launch",
47+
"name": "Debug unit tests in example 'hello-without-macro'",
48+
"cargo": {
49+
"args": [
50+
"test",
51+
"--no-run",
52+
"--example=hello-without-macro",
53+
"--package=lambda"
54+
],
55+
"filter": {
56+
"name": "hello-without-macro",
57+
"kind": "example"
58+
}
59+
},
60+
"args": [],
61+
"cwd": "${workspaceFolder}"
62+
},
63+
{
64+
"type": "lldb",
65+
"request": "launch",
66+
"name": "Debug example 'hello'",
67+
"cargo": {
68+
"args": [
69+
"build",
70+
"--example=hello",
71+
"--package=lambda"
72+
],
73+
"filter": {
74+
"name": "hello",
75+
"kind": "example"
76+
}
77+
},
78+
"args": [],
79+
"cwd": "${workspaceFolder}"
80+
},
81+
{
82+
"type": "lldb",
83+
"request": "launch",
84+
"name": "Debug unit tests in example 'hello'",
85+
"cargo": {
86+
"args": [
87+
"test",
88+
"--no-run",
89+
"--example=hello",
90+
"--package=lambda"
91+
],
92+
"filter": {
93+
"name": "hello",
94+
"kind": "example"
95+
}
96+
},
97+
"args": [],
98+
"cwd": "${workspaceFolder}"
99+
},
100+
{
101+
"type": "lldb",
102+
"request": "launch",
103+
"name": "Debug example 'hello-with-ctx'",
104+
"cargo": {
105+
"args": [
106+
"build",
107+
"--example=hello-with-ctx",
108+
"--package=lambda"
109+
],
110+
"filter": {
111+
"name": "hello-with-ctx",
112+
"kind": "example"
113+
}
114+
},
115+
"args": [],
116+
"cwd": "${workspaceFolder}"
117+
},
118+
{
119+
"type": "lldb",
120+
"request": "launch",
121+
"name": "Debug unit tests in example 'hello-with-ctx'",
122+
"cargo": {
123+
"args": [
124+
"test",
125+
"--no-run",
126+
"--example=hello-with-ctx",
127+
"--package=lambda"
128+
],
129+
"filter": {
130+
"name": "hello-with-ctx",
131+
"kind": "example"
132+
}
133+
},
134+
"args": [],
135+
"cwd": "${workspaceFolder}"
136+
}
137+
]
138+
}

0 commit comments

Comments
 (0)