diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8fef31..64bf4e1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - nif: ["2.17", "2.16", "2.15", "2.14"] + nif: ["2.17", "2.16", "2.15"] job: - { target: arm-unknown-linux-gnueabihf , os: ubuntu-20.04 , use-cross: true } - { target: aarch64-unknown-linux-gnu , os: ubuntu-20.04 , use-cross: true } diff --git a/Development.md b/Development.md new file mode 100644 index 0000000..e3cf837 --- /dev/null +++ b/Development.md @@ -0,0 +1,13 @@ +# Development +Since the `bzip2-rs` crate hasn't been kept up to date, this repo's targeting [the git repo directly](native/bzip2_decomp/Cargo.toml). + +```sh +mix rustler_precompiled.download Bzip2 --all --print +``` + +### [Recommended Flow](https://hexdocs.pm/rustler_precompiled/precompilation_guide.html#recommended-flow) +1. release a new tag +2. push the code to your repository with the new tag: git push origin main --tags +3. wait for all NIFs to be built +4. run the mix rustler_precompiled.download task (with the flag --all) +5. release the package to Hex.pm (make sure your release includes the correct files). diff --git a/README.md b/README.md index ef61490..de8ebe2 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,7 @@ Documentation is available on [HexDocs](https://hexdocs.pm/bzip2_decomp/readme.h Bzip2.decompress(encoded_data) ``` -## Notes: -Since the `bzip2-rs` crate hasn't been kept up to date, this repo's targeting [the git repo directly](native/bzip2_decomp/Cargo.toml). +## [Development](./Development.md) ## Acknowledgments Special thanks to [crypdough.eth](https://github.com/crypdoughdoteth) for providing the Rust expertise to make this package possible. diff --git a/native/bzip2_decomp/Cargo.toml b/native/bzip2_decomp/Cargo.toml index 7bec117..21aa8fa 100644 --- a/native/bzip2_decomp/Cargo.toml +++ b/native/bzip2_decomp/Cargo.toml @@ -10,5 +10,5 @@ path = "src/lib.rs" crate-type = ["cdylib"] [dependencies] -rustler = { version = "0.30.0", default-features = false, features = ["derive", "nif_version_2_14"] } +rustler = { version = "0.30.0", default-features = false, features = ["derive", "nif_version_2_15"] } bzip2-rs = { git = "https://github.com/paolobarbolini/bzip2-rs.git", rev = "82e3cbb4ea6cb4249a43f90b06ae1a5e94f06a9f"} diff --git a/priv/native/libbzip2_decomp.so b/priv/native/libbzip2_decomp.so index 35c87ef..f5bbf6f 100755 Binary files a/priv/native/libbzip2_decomp.so and b/priv/native/libbzip2_decomp.so differ