Skip to content

Commit

Permalink
all
Browse files Browse the repository at this point in the history
  • Loading branch information
ISL-0111 committed Oct 23, 2024
1 parent b3bef1c commit de873b4
Show file tree
Hide file tree
Showing 7 changed files with 172 additions and 2 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Dockerfile
FROM rust:latest
15 changes: 15 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Sample Rust",
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"extensions": [
"rust-lang.rust-analyzer", // Updated to use rust-analyzer
"ms-azuretools.vscode-docker" // Added Docker extension
]
}
},
"postCreateCommand": "rustup update && rustup component add clippy && rustup component add rustfmt"
}
92 changes: 92 additions & 0 deletions .github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: CI/CD

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

jobs:
build:
runs-on: ubuntu-latest

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

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

- name: Check
run: make check

- name: Format
run: make format

- name: Test
run: make test

- name: Release
run: cargo build --release

- name: Upload Binary Artifact
uses: actions/upload-artifact@v4 #v3 is scheduled for deprecation Nov 30 2024 check marketplace
with:
name: Mini_PJT_7_Package_a_Rust_ISL
path: target/release/Mini_PJT_7_Package_a_Rust_ISL

# from John

# name: CI

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

# jobs:
# build:
# runs-on: ubuntu-latest

# env:
# WORKING_DIR: sqlite #change this to the rust project name you are developing.

# steps:
# - name: Checkout code
# uses: actions/checkout@v3

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

# - name: Check
# run: cargo check
# working-directory: ${{ env.WORKING_DIR }}

# - name: Format
# run: cargo fmt
# working-directory: ${{ env.WORKING_DIR }}

# - name: Test
# run: cargo test
# working-directory: ${{ env.WORKING_DIR }}

# - name: Release
# run: cargo build --release
# working-directory: ${{ env.WORKING_DIR }}

# - name: Upload Binary Artifact
# uses: actions/upload-artifact@v4 #v3 is scheduled for deprecation Nov 30 2024 check marketplace
# with:
# name: RuSQLite CLI Binary
# path: ${{ env.WORKING_DIR }}/target/release/sqlite #change the /add to the name of your binary
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "Mini_PJT_7_Rust_ISL"
version = "0.1.0"
edition = "2021"

[dependencies]
clap = { version = "4.5.20", features = ["derive"] }
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
rust-version:
@echo "Rust command-line utility versions:"
rustc --version #rust compiler
cargo --version #rust package manager
rustfmt --version #rust code formatter
rustup --version #rust toolchain manager
clippy-driver --version #rust linter

format:
cargo fmt

lint:
cargo clippy

test:
cargo test

run:
cargo run

release:
cargo build

all: format lint test run
34 changes: 32 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
# Mini_PJT_7_Rust_Pilot_ISL
Mini_PJT_7_Rust_Pilot_ISL
# IDS-706 Data Engineering Assignment
## Mini Project 7 : Rust_Pilot_ISL

#### Status(CI/CD) badge [![CI](https://github.com/nogibjj/Mini_PJT_6_Complex-SQL-Query-for-a-MySQL-Database/actions/workflows/CICD.yml/badge.svg)]
------

### Proejct Purpose

-

-

-----

### Requirements

* ***Package a Python script with setuptools or a similar tool***
* ***Include a user guide on how to install and use the tool***

### Deliverables

* ***Package tool***
* ***Written Guide***
* ***If you choose to use Rust, prove the binary file as an artifact in CI/CD***

---------
###


----------
### Extract & Transform & Query
* Extract : The process retrieves two datasets(`HR_1.csv`

0 comments on commit de873b4

Please sign in to comment.