-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
172 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Dockerfile | ||
FROM rust:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |