Skip to content

Commit

Permalink
Merge pull request #49 from okaneco/prepare-0.5-release
Browse files Browse the repository at this point in the history
Update metadata for 0.5 release; CI/CD, clippy, `image` fixups
  • Loading branch information
okaneco authored Mar 17, 2022
2 parents 4b2240d + 48cbfa2 commit dc9ab13
Show file tree
Hide file tree
Showing 10 changed files with 186 additions and 178 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/rust-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,32 +62,16 @@ jobs:
toolchain: ${{ matrix.rust }}
args: --release --target ${{ matrix.platform.target }}

- name: Install strip command
if: ${{ matrix.platform.target == 'aarch64-unknown-linux-gnu' }}
shell: bash
run: |
sudo apt update
sudo apt-get install -y binutils-aarch64-linux-gnu
- name: Package final binary
shell: bash
run: |
cd target/${{ matrix.platform.target }}/release
####### reduce binary size by removing debug symbols #######
BINARY_NAME=kmeans_colors${{ matrix.platform.binary-postfix }}
if [[ ${{ matrix.platform.target }} == aarch64-unknown-linux-gnu ]]; then
GCC_PREFIX="aarch64-linux-gnu-"
else
GCC_PREFIX=""
fi
if [[ ${{ matrix.platform.target }} != x86_64-pc-windows-msvc ]]; then
"$GCC_PREFIX"strip $BINARY_NAME
fi
########## create tar.gz ##########
RELEASE_NAME=kmeans_colors-${GITHUB_REF/refs\/tags\//}-${{ matrix.platform.os-name }}-${{ matrix.platform.architecture }}
tar czvf $RELEASE_NAME.tar.gz $BINARY_NAME
########## create sha256 ##########
if [[ ${{ runner.os }} == 'Windows' ]]; then
certutil -hashfile $RELEASE_NAME.tar.gz sha256 | grep -E [A-Fa-f0-9]{64} > $RELEASE_NAME.sha256
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Doc tests (palette feature)
run: cargo test --no-default-features --doc --features palette_color
- name: Build docs
run: cargo doc --no-deps
run: cargo doc --no-deps --no-default-features --features palette_color

clippy-rustfmt:
name: Clippy and rustfmt
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# `kmeans-colors` changelog

## Version 0.5.0 - 2022-03-17

Version bump for updating `palette` to `0.6`.

No changes to library code.

[#49][49] - Update metadata for 0.5 release; CI/CD, clippy, and `image` fixups
[#44][44] - Upgrade `palette` to 0.6, fix clippy lints, `image` function fixups

## Version 0.4.0 - 2021-03-13

Version bump for updating the `rand` dependency to 0.8. No major API changes.
Expand Down Expand Up @@ -75,6 +84,8 @@ performance to color and format conversions.
## Version 0.1.0 - 2020-04
* Initial Commit

[49]: https://github.com/okaneco/kmeans-colors/pull/49
[44]: https://github.com/okaneco/kmeans-colors/pull/44
[41]: https://github.com/okaneco/kmeans-colors/pull/41
[40]: https://github.com/okaneco/kmeans-colors/pull/40
[36]: https://github.com/okaneco/kmeans-colors/pull/36
Expand Down
103 changes: 54 additions & 49 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dc9ab13

Please sign in to comment.