Skip to content

Commit

Permalink
Release 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
1borgy committed Nov 12, 2023
0 parents commit 11dd6ca
Show file tree
Hide file tree
Showing 34 changed files with 3,052 additions and 0 deletions.
Binary file added .github/resources/banner.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions .github/workflows/check-test-format.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# shoutout @wermipls
name: check + test + format

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly

- name: run cargo check
run: cargo check
- name: run unit tests
run: cargo test --all
- name: verify code is formatted
run: |
rustup component add rustfmt --toolchain nightly
cargo fmt --all -- --check
45 changes: 45 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# shoutout @wermipls
name: build + release

on:
push:
tags: [ "*.*.*" ]


jobs:
windows:
if: startsWith(github.ref, 'refs/tags/')
runs-on: windows-latest
defaults:
run:
shell: pwsh

steps:
- uses: actions/checkout@v4

- name: get current project version
run: |
# Not working
# $project_version = cargo metadata --format-version 1 2> $null | jq -r '.packages[] | select(.name == "cascade_cli").version'
#
# I give up
#
# This is disgusting - need to assume nothing else in Cargo.toml has
# "version = x.x.x" from start of line
$project_version = cat .\cascade_cli\Cargo.toml | grep -oE '^version = \"?[0-9]+\.[0-9]+\.[0-9]+\"' | grep -oE "[0-9]+\.[0-9]+\.[0-9]+"
"project_version=$project_version" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: install nightly rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly

- name: cargo build
run: cargo build --release

- name: create release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
# Probably a better way to do this
files: ./target/release/cascade.exe
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Local files for development
.local/
3 changes: 3 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
imports_granularity = "crate"
group_imports = "StdExternalCrate"
max_width = 80
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[workspace]
members = ["cascade", "cascade_cli", "cascade_gui"]
resolver = "2"
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 borgy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div align="center">
<h1>🌊 cascade</h1>
<img src="https://github.com/1borgy/cascade/blob/main/.github/resources/banner.gif" width=50%>
<div>
<em>a trickset copier for thug pro.</em>
</div>
</div>

23 changes: 23 additions & 0 deletions cascade/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[package]
name = "cascade"
version = "0.1.2"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0.71"
byteorder = "1.4.3"
count-write = "0.1.0"
crc = "3.0.1"
directories = "5.0.1"
enum-iterator = "1.4.1"
filetime = "0.2.21"
hex-literal = "0.4.1"
lazy_static = "1.4.0"
log = "0.4.17"
serde = { version = "1.0.190", features = ["rc", "derive"] }
serde_yaml = "0.9.27"
thiserror = "1.0.50"
toml = "0.8.6"
walkdir = "2.3.3"
Loading

0 comments on commit 11dd6ca

Please sign in to comment.