Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add gzip/xz/bzip2 support for input #33

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions .github/workflows/musl_build.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: Rust-static-build
on:
push:
tags:
- '*'
env:
CARGO_TERM_COLOR: always
BUILD_TARGET: x86_64-unknown-linux-musl
BINARY_NAME: chopper
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build-musl
uses: gmiam/rust-musl-action@master
with:
args: cargo build --target $BUILD_TARGET --release
- uses: actions/upload-artifact@v2
with:
name: ${{ env.BINARY_NAME }}
name: Rust-static-build
on:
push:
tags:
- '*'
env:
CARGO_TERM_COLOR: always
BUILD_TARGET: x86_64-unknown-linux-musl
BINARY_NAME: chopper
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build-musl
uses: gmiam/rust-musl-action@master
with:
args: cargo build --target $BUILD_TARGET --release
- uses: actions/upload-artifact@v2
with:
name: ${{ env.BINARY_NAME }}
path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}*
96 changes: 48 additions & 48 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
name: Publish

on:
push:
tags:
- '*'

jobs:
publish:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
name: [
linux,
# windows,
macos
]

include:
- name: linux
os: ubuntu-latest
artifact_name: target/release/chopper
asset_name: chopper-linux
# - name: windows
# os: windows-latest
# artifact_name: target/release/<name>.exe
# asset_name: <name>-windows
- name: macos
os: macos-latest
artifact_name: target/release/chopper
asset_name: chopper-macos

steps:
- uses: actions/checkout@v1

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable

- name: Build
run: cargo build --release --locked

- name: Upload binaries to release
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.asset_name }}
name: Publish
on:
push:
tags:
- '*'
jobs:
publish:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
name: [
linux,
# windows,
macos
]
include:
- name: linux
os: ubuntu-latest
artifact_name: target/release/chopper
asset_name: chopper-linux
# - name: windows
# os: windows-latest
# artifact_name: target/release/<name>.exe
# asset_name: <name>-windows
- name: macos
os: macos-latest
artifact_name: target/release/chopper
asset_name: chopper-macos
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Build
run: cargo build --release --locked
- name: Upload binaries to release
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.asset_name }}
path: ${{ matrix.artifact_name }}
44 changes: 22 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
name: test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/target
.vscode/sftp.json
/target
.vscode/sftp.json
106 changes: 106 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ rayon = "1.7.0"
approx = "0.5.1"
minimap2 = "0.1.17+minimap2.2.27"
flate2 = { version = "1.0.17", features = ["zlib-ng"], default-features = false }
xz2 = "0.1.7"
bzip2 = "0.4.4"
atty = "0.2.14"
Loading
Loading