Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial CI workflow #25

Merged
merged 24 commits into from
Sep 26, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build

on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: minafoundation-default-runners

steps:
- name: 📥 Checkout
uses: actions/checkout@v4

- name: ✅ Format
run: cargo fmt --all -- --check

- name: 🔍 Lint
run: cargo clippy --all-targets --all-features -- -D warnings

- name: 🛠️ Build
run: |
if [[ ${{ github.ref }} == "refs/heads/main" ]] || [[ "${{ github.ref }}" == refs/tags/* ]]; then
cargo build --verbose --release
else
cargo build --verbose
fi

# - name: 🧪 Test
piotr-iohk marked this conversation as resolved.
Show resolved Hide resolved
# run: cargo test --verbose
Loading