-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add blosc2 to CLI, libcramjam features and own CI (#156)
* Add each codec as a feature to libcramjam and remove experimental feature from python crates * Add libcramjam specific CI * Add blosc2 to cramjam-cli
- Loading branch information
1 parent
ff8ea26
commit 5d9730d
Showing
14 changed files
with
382 additions
and
1,430 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
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,72 @@ | ||
name: CI-libcramjam | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-test: | ||
name: capi=${{ matrix.capi }}-codec=${{ matrix.codec || 'all' }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: ${{ !( startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/tags/') ) }} | ||
matrix: | ||
capi: | ||
- true | ||
- false | ||
codec: | ||
- zstd | ||
- blosc2 | ||
- gzip | ||
- brotli | ||
- lz4 | ||
- xz | ||
- deflate | ||
- bzip2 | ||
- null # Use all codecs | ||
|
||
# TODO: codecs not implemented in capi feature | ||
exclude: | ||
- capi: true | ||
codec: blosc2 | ||
- capi: true | ||
codec: xz | ||
- capi: true | ||
codec: deflate | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
name: Rust Cache | ||
|
||
- name: Audit | ||
if: | | ||
!matrix.codec && matrix.capi | ||
run: cargo install cargo-audit && cargo audit | ||
|
||
- name: Test capi and single codec | ||
if: matrix.capi && matrix.codec | ||
run: cargo test -p libcramjam --no-default-features --features ${{ matrix.codec }} --features capi --lib | ||
|
||
- name: Test capi and all codecs | ||
if: matrix.capi && !matrix.codec | ||
run: cargo test -p libcramjam --features capi --lib | ||
|
||
- name: Test no capi and all codecs | ||
if: | | ||
!matrix.capi && !matrix.codec | ||
run: cargo test -p libcramjam --lib | ||
|
||
- name: Test no capi and single codec | ||
if: | | ||
!matrix.capi && matrix.codec | ||
run: cargo test -p libcramjam --lib --no-default-features --features ${{ matrix.codec }} |
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
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 |
---|---|---|
|
@@ -10,6 +10,8 @@ __pycache__/ | |
benchenv/ | ||
cramjam-python/_build | ||
|
||
Cargo.lock | ||
|
||
|
||
# Distribution / packaging | ||
.Python | ||
|
Oops, something went wrong.