Skip to content

Commit

Permalink
# Initial Commit
Browse files Browse the repository at this point in the history
- added main.rs that controls the argument, database connection, and writes the INSERT commands into a file.
- added database.rs which will connect to the database.
- added argumentns.rs which handles the program's CLI arguments.

Signed-off-by: Mark Heramis <chumheramis@gmail.com>
  • Loading branch information
markheramis committed May 20, 2024
0 parents commit 3e2ab3c
Show file tree
Hide file tree
Showing 8 changed files with 2,107 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Build and Release

on:
push:
tags:
- "v*"

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Extract version
id: extract_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Upload artifact (Linux)
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v2
with:
name: mysql-table-exporter-${{ matrix.os }}
path: target/release/mysql-table-exporter
- name: Upload artifact (Windows)
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v2
with:
name: mysql-table-exporter-${{ matrix.os }}
path: target/release/mysql-table-exporter.exe

release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts (Linux)
uses: actions/download-artifact@v2
with:
name: mysql-table-exporter-ubuntu-latest
path: release
- name: Download artifacts (Windows)
uses: actions/download-artifact@v2
with:
name: mysql-table-exporter-windows-latest
path: release
- name: Create release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: release/*
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit 3e2ab3c

Please sign in to comment.