Skip to content

Commit 5915c96

Browse files
bors[bot]marcoieni
andauthored
Merge #133
133: switch to GH actions r=therealprof a=MarcoIeni Closes #132 Questions: - why is cross needed? - Do you think I covered everything Travis was doing? Co-authored-by: MarcoIeni <[email protected]>
2 parents 051e0b2 + 47ae341 commit 5915c96

File tree

9 files changed

+95
-60
lines changed

9 files changed

+95
-60
lines changed

.github/bors.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
block_labels = ["needs-decision", "S-waiting-on-team"]
22
delete_merged_branches = true
33
required_approvals = 1
4+
timeout_sec = 14400
45
status = [
5-
"continuous-integration/travis-ci/push",
6+
"build (1.36.0)",
7+
"build (stable)",
8+
"test"
69
]
7-
timeout_sec = 14400

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: Continuous Integration
7+
8+
jobs:
9+
# check if the project builds with MSRV, stable and nighly
10+
build:
11+
runs-on: ubuntu-latest
12+
continue-on-error: ${{ matrix.experimental || false }}
13+
strategy:
14+
matrix:
15+
rust: [ 1.36.0, stable ]
16+
include:
17+
# Test nightly but don't fail the build.
18+
- rust: nightly
19+
experimental: true
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v2
23+
- name: Install Rust
24+
uses: actions-rs/toolchain@v1
25+
with:
26+
toolchain: ${{ matrix.rust }}
27+
profile: minimal
28+
override: true
29+
- uses: actions-rs/cargo@v1
30+
with:
31+
command: test
32+
33+
test:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Checkout repository
37+
uses: actions/checkout@v2
38+
- name: Install Rust
39+
uses: actions-rs/toolchain@v1
40+
with:
41+
toolchain: stable
42+
profile: minimal
43+
override: true
44+
- uses: actions-rs/cargo@v1
45+
with:
46+
command: test

.github/workflows/clippy.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: Clippy check
7+
jobs:
8+
clippy_check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions-rs/toolchain@v1
13+
with:
14+
profile: minimal
15+
toolchain: 1.36.0
16+
override: true
17+
components: clippy
18+
# TODO enable this once clippy warnings are fixed
19+
# - uses: actions-rs/clippy-check@v1
20+
# with:
21+
# token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/rustfmt.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: Code formatting check
7+
8+
jobs:
9+
fmt:
10+
name: Rustfmt
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions-rs/toolchain@v1
15+
with:
16+
profile: minimal
17+
toolchain: stable
18+
override: true
19+
components: rustfmt
20+
- uses: actions-rs/cargo@v1
21+
with:
22+
command: fmt
23+
args: --all -- --check

.travis.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![crates.io](https://img.shields.io/crates/d/svd-parser.svg)](https://crates.io/crates/svd-parser)
22
[![crates.io](https://img.shields.io/crates/v/svd-parser.svg)](https://crates.io/crates/svd-parser)
3-
[![Build Status](https://travis-ci.org/rust-embedded/svd.svg?branch=master)](https://travis-ci.org/rust-embedded/svd)
3+
[![Continuous Integration](https://github.com/rust-embedded/svd/workflows/Continuous%20Integration/badge.svg)](https://github.com/rust-embedded/svd/actions)
44
[![Documentation](https://docs.rs/svd-parser/badge.svg)](https://docs.rs/svd-parser)
55

66
# `svd-parser`

bors.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

ci/install.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

ci/script.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)