Skip to content

Commit

Permalink
added github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
codeitlikemiley committed Dec 18, 2023
1 parent aacbed2 commit 058ad49
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Rust Build and Test

on:
push:
branches: [ main ]
tags:
- 'v*'

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Build
run: cargo build --verbose --release

- name: Run tests
run: cargo test --verbose --release

- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: rsnippet-${{ matrix.os }}
path: |
./target/release/rsnippet${{ matrix.os == 'windows-latest' && '.exe' || '' }}

0 comments on commit 058ad49

Please sign in to comment.