Skip to content

Commit

Permalink
ci: Add Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MrExplode committed Oct 21, 2023
1 parent a77b550 commit 71b770e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Rust CI

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Build
run: cargo build --verbose
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# hooks
# hooks [![Build Status](https://github.com/based-zrt/hooks/actions/workflows/build.yml/badge.svg)](https://github.com/based-zrt/hooks/actions/workflows/build.yml)

A small webhook transformation tool.

Expand Down

0 comments on commit 71b770e

Please sign in to comment.