Skip to content

Commit

Permalink
chore: Add CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
DashieTM committed Oct 7, 2023
1 parent 124e16f commit 563ed35
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
release:
types: [created]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: nightly-rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- name: Build
run: cargo build --release --verbose
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
target/release/reset
41 changes: 41 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Rust

on:
push:
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: nightly-rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- name: Cache
uses: actions/cache@v3
with:
path: target/debug
key: ${{ runner.os }}-cache
- name: run code coverage
uses: actions-rs/[email protected]
with:
version: '0.15.0'
args: '-- --test-threads 1'
- name: upload code coverage
uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: cobertura.xml
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

0 comments on commit 563ed35

Please sign in to comment.