Skip to content

Commit

Permalink
fix action compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Moosieus committed Dec 29, 2023
1 parent d4539c2 commit fb25689
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
13 changes: 13 additions & 0 deletions Development.md
Original file line number Diff line number Diff line change
@@ -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).
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion native/bzip2_decomp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Binary file modified priv/native/libbzip2_decomp.so
Binary file not shown.

0 comments on commit fb25689

Please sign in to comment.