Skip to content

Commit

Permalink
Merge pull request #42 from AfoHT/replacetravis
Browse files Browse the repository at this point in the history
Replace Travis with Github Actions
  • Loading branch information
korken89 committed Oct 21, 2020
2 parents 4a6dffc + e910f35 commit 54c62ee
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/bors.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
block_labels = ["S-blocked", "S-waiting-on-team", "needs-decision", "do-not-merge"]
delete_merged_branches = true
required_approvals = 1
status = ["continuous-integration/travis-ci/push"]
status = ["ci"]
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build
on:
pull_request:
push:
branches:
- master
- staging
- trying

env:
CARGO_TERM_COLOR: always

jobs:
# Rubber stamp approve the PR
pass:
name: pass
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Rubber stamp approve
run: exit 0

# Refs: https://github.com/rust-lang/crater/blob/9ab6f9697c901c4a44025cf0a39b73ad5b37d198/.github/workflows/bors.yml#L125-L149
#
# ALL THE PREVIOUS JOBS NEEDS TO BE ADDED TO THE `needs` SECTION OF THIS JOB!

ci-success:
name: ci
if: github.event_name == 'push' && success()
needs:
- pass
runs-on: ubuntu-20.04
steps:
- name: Mark the job as a success
run: exit 0
ci-failure:
name: ci
if: github.event_name == 'push' && !success()
needs:
- pass
runs-on: ubuntu-20.04
steps:
- name: Mark the job as a failure
run: exit 1
6 changes: 6 additions & 0 deletions .github/workflows/properties/build.properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "Build",
"description": "RTIC RFC Suite",
"iconName": "rust",
"categories": ["Rust"]
}
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

0 comments on commit 54c62ee

Please sign in to comment.