Skip to content
This repository was archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
Allow re-use of the CI workflow (#24)
Browse files Browse the repository at this point in the history
* Allow re-use of the CI workflow

* Update README.md
  • Loading branch information
hendrikmaus authored Dec 26, 2021
1 parent eb5a0ca commit a31fc3e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
paths-ignore:
- 'docs/**'
- '**.md'
# The following makes this workflow re-usable by other repositories
# without having to copy the entire thing.
#
# See https://docs.github.com/en/actions/learn-github-actions/reusing-workflows
workflow_call: {}

env:
CARGO_TERM_COLOR: always
Expand Down
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,40 @@ A reference for GitHub Action workflows to use on Rust projects:

Copy, paste and hack away.

## Usage

You either base your own workflows on these by copy & paste _or_ you can call them from your workflow directly.

Here is how you can **re-use** the existing **continuous integration** workflow right away:

```yaml
---
name: CI

on:
push:
branches:
- main
- master
paths-ignore:
- 'docs/**'
- '**.md'
pull_request:
types:
- opened
- reopened
- synchronize
paths-ignore:
- 'docs/**'
- '**.md'

jobs:
rust-workflows-ci:
name: CI
uses: hendrikmaus/rust-workflows/.github/workflows/[email protected]

```

## License

This project is released under the terms of the [MIT](https://opensource.org/licenses/MIT) license.

0 comments on commit a31fc3e

Please sign in to comment.