-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* First rust code * Main menu * Deleted TS version, Finished first Rust version * Add CI * Fix CI * Upload artifacts
- Loading branch information
1 parent
ea394cc
commit 27c684a
Showing
13 changed files
with
1,057 additions
and
1,443 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,45 @@ | ||
name: Build and Release | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
name: Build and Release | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
artifact_name: nvcap_calculator | ||
asset_name: nvcap_calculator_linux_amd64 | ||
- os: macos-latest | ||
artifact_name: nvcap_calculator | ||
asset_name: nvcap_calculator_macos_amd64 | ||
- os: windows-latest | ||
artifact_name: nvcap_calculator.exe | ||
asset_name: nvcap_calculator_windows_amd64 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Build Project | ||
run: cargo build --release --locked | ||
- name: Upload binary to release | ||
if: github.event_name == 'release' | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/release/${{ matrix.artifact_name }} | ||
asset_name: ${{ matrix.asset_name }} | ||
tag: ${{ github.ref }} | ||
- name: Upload binary artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ matrix.asset_name }} | ||
path: target/release/${{ matrix.artifact_name }} | ||
|
||
|
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,3 +1,7 @@ | ||
**/*.rom | ||
**/.DS_STORE | ||
node_modules/ | ||
node_modules/ | ||
|
||
# Added by cargo | ||
|
||
/target |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,12 @@ | ||
[package] | ||
name = "nvcap_calculator" | ||
version = "2.0.0" | ||
authors = ["Avery Black <[email protected]>"] | ||
edition = "2018" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
colored = "2" | ||
chrono = "0.4" | ||
ctrlc = "3.2.0" |
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
Oops, something went wrong.