Skip to content

Commit

Permalink
Committed for life
Browse files Browse the repository at this point in the history
  • Loading branch information
t94j0 committed Jul 20, 2024
0 parents commit 3eac608
Show file tree
Hide file tree
Showing 39 changed files with 6,039 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
data/** filter=lfs diff=lfs merge=lfs -text
data/ filter=lfs diff=lfs merge=lfs -text
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Release

on:
workflow_dispatch:
inputs:
version:
description: "Version number"
required: true

env:
CARGO_TERM_COLOR: always

permissions:
contents: write

jobs:
build:
name: Build and Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Build Release
run: cargo build --release
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ github.event.inputs.version }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/release/convertsnapshot
asset_name: convertsnapshot-${{ github.event.inputs.version }}
asset_content_type: application/octet-stream
25 changes: 25 additions & 0 deletions .github/workflows/rust_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Rust Tests

on:
push:
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
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 3eac608

Please sign in to comment.