Test workflow rename and update
This commit is contained in:
parent
0d99042cbf
commit
1b8937a2da
|
@ -1,24 +0,0 @@
|
|||
name: Rust
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build
|
||||
run: cargo build --verbose --release
|
||||
- name: Run tests
|
||||
run: cargo test --verbose --release
|
|
@ -0,0 +1,33 @@
|
|||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- 'CHANGELOG.md'
|
||||
- 'LICENSE.md'
|
||||
- 'README.md'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- 'CHANGELOG.md'
|
||||
- 'LICENSE.md'
|
||||
- 'README.md'
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ macos-latest, ubuntu-latest, windows-latest ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build
|
||||
run: cargo build --verbose --release
|
||||
- name: Run tests
|
||||
run: cargo test --verbose --release
|
13
README.md
13
README.md
|
@ -1,4 +1,8 @@
|
|||
# libcaesium [](https://github.com/Lymphatus/libcaesium/actions/workflows/rust.yml)
|
||||
# libcaesium
|
||||
|
||||
[](https://github.com/Lymphatus/libcaesium/actions/workflows/test.yml)
|
||||
[](https://github.com/Lymphatus/caesium-clt/actions/workflows/clippy.yml)
|
||||
[](https://github.com/Lymphatus/caesium-clt/actions/workflows/fmt.yml)
|
||||
|
||||
Libcaesium is a simple library performing JPEG, PNG, WebP and GIF (experimental) compression/optimization written in
|
||||
Rust, with a C interface.
|
||||
|
@ -172,9 +176,10 @@ pub struct CCSParameters {
|
|||
The option description is the same as the Rust counterpart.
|
||||
Valid values for `jpeg_chroma_subsampling` are `[444, 422, 420, 411]`. Any other value will be ignored and will be used
|
||||
the default option.
|
||||
Valid values for `tiff_compression` are `[0 (Uncompressed), 1 (Lzw), 2 (Deflate), 3 (Packbits)]`. Any other value will be
|
||||
ignored and `0` will be used.
|
||||
Valid values for `tiff_deflate_level` are `[1 (Fast), 6 (Balanced), 9 (Best)]`. Any other value will be ignored and `Best`
|
||||
Valid values for `tiff_compression` are `[0 (Uncompressed), 1 (Lzw), 2 (Deflate), 3 (Packbits)]`. Any other value will
|
||||
be ignored and `0` will be used.
|
||||
Valid values for `tiff_deflate_level` are `[1 (Fast), 6 (Balanced), 9 (Best)]`. Any other value will be ignored and
|
||||
`Best`
|
||||
will be used.
|
||||
|
||||
### Supported file types
|
||||
|
|
Loading…
Reference in New Issue