Skip to content

Commit

Permalink
feat(cicd): adds basic build/test workflow (#1)
Browse files Browse the repository at this point in the history
Adding a quick GitHub Actions workflow to build the project, test the
project, and build the examples.
  • Loading branch information
zpg6 authored Nov 29, 2024
1 parent 387bb87 commit 6656bd4
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and Test Library

on:
push:
paths:
- "src/**"
- "Cargo.toml"
- ".github/workflows/build-and-test.yml" # This file
branches:
- main

pull_request:
paths:
- "src/**"
- "Cargo.toml"
- ".github/workflows/build-and-test.yml" # This file

workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable

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

- name: Test project
run: cargo test

- name: Build Examples
run: cargo build --release --examples

0 comments on commit 6656bd4

Please sign in to comment.