Skip to content

Commit

Permalink
feat: cicd rust build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zpg6 committed Jul 6, 2024
1 parent f0fa9dd commit 2526148
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Rust Build

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

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

workflow_dispatch:

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

0 comments on commit 2526148

Please sign in to comment.