chore: Add GitHub Actions

This commit is contained in:
Ashhhleyyy 2022-05-26 12:33:59 +01:00
parent f14f270822
commit 080aa96272
Signed by: ash
GPG Key ID: 83B789081A0878FB
1 changed files with 34 additions and 0 deletions

34
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: Build with cargo
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache build artifacts
uses: actions/cache@v2
with:
path: target/**
key: ${{ runner.os }}-cargo
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build with cargo
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: gitit
path: target/release/gitit