Skip to content

Commit

Permalink
Adding workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mjovanc committed May 20, 2023
1 parent 19a0432 commit d7887f3
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build

on:
push:
branches:
- main

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
rust: [stable]

steps:
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}

- name: Checkout repository
uses: actions/checkout@v2

- name: Build and test
run: |
cargo build --verbose
cargo test --verbose
26 changes: 26 additions & 0 deletions .github/workflows/pr-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: pr

on: pull_request

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
rust: [stable]

steps:
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}

- name: Checkout repository
uses: actions/checkout@v2

- name: Build and test
run: |
cargo build --verbose
cargo test --verbose

0 comments on commit d7887f3

Please sign in to comment.