Skip to content

Commit

Permalink
Created: created a work flow for the app
Browse files Browse the repository at this point in the history
  • Loading branch information
Ngha-Boris committed Jun 19, 2024
1 parent b971bd0 commit 6f7629c
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions fib/fib.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Rust CI/CD Pipeline

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: self-hosted

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

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

- name: Install Dependencies
run: cargo fetch

- name: Run Tests
run: cargo test

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

deploy:
runs-on: self-hosted
needs: build
if: github.ref == 'refs/heads/main'

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

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

- name: Install Dependencies
run: cargo fetch

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

- name: Deploy to Production
run: |

0 comments on commit 6f7629c

Please sign in to comment.