Prepare 0.9.1 release #93
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
name: artifacts | |
on: | |
push: | |
branches: ["main"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
x86_64-unknown-linux-gnu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: sudo apt update && sudo apt install -y cmake clang-15 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: rustup target add x86_64-unknown-linux-gnu | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo build --release --features cbindgen --features zarrs/zfp,zarrs/bitround --target x86_64-unknown-linux-gnu | |
- name: package | |
run: | | |
mkdir include lib && | |
cp zarrs.h include/ && | |
cp target/x86_64-unknown-linux-gnu/release/libzarrs_ffi* lib/ && | |
tar czvf zarrs_ffi-x86_64-unknown-linux-gnu.tar.gz README.md CHANGELOG.md include/zarrs.h lib/libzarrs_ffi.a lib/libzarrs_ffi.so | |
- name: upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: zarrs_ffi-x86_64-unknown-linux-gnu | |
path: zarrs_ffi-x86_64-unknown-linux-gnu.tar.gz |