Skip to content

Commit

Permalink
Merge pull request #3 from okaneco/palette-update
Browse files Browse the repository at this point in the history
Upgrade dependencies, update CI/CD workflows, bump to 0.2.0
  • Loading branch information
okaneco authored Jul 23, 2023
2 parents ebb6398 + 8e6a259 commit 6d514b9
Show file tree
Hide file tree
Showing 12 changed files with 144 additions and 152 deletions.
34 changes: 4 additions & 30 deletions .github/workflows/rust-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,58 +9,32 @@ jobs:
publish-binary:
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
rust: [ stable ]
platform:
- os: macos-latest
os-name: macos
target: x86_64-apple-darwin
architecture: x86_64
binary-postfix: ""
use-cross: false
- os: ubuntu-latest
os-name: linux
target: x86_64-unknown-linux-gnu
architecture: x86_64
binary-postfix: ""
use-cross: false
- os: windows-latest
os-name: windows
target: x86_64-pc-windows-msvc
architecture: x86_64
binary-postfix: ".exe"
use-cross: false
- os: ubuntu-latest
os-name: linux
target: aarch64-unknown-linux-gnu
architecture: arm64
binary-postfix: ""
use-cross: true
- os: ubuntu-latest
os-name: linux
target: i686-unknown-linux-gnu
architecture: i686
binary-postfix: ""
use-cross: true

steps:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true

- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Cargo build
uses: actions-rs/cargo@v1
with:
command: build
use-cross: ${{ matrix.platform.use-cross }}
toolchain: ${{ matrix.rust }}
args: --release --target ${{ matrix.platform.target }}
uses: dtolnay/rust-toolchain@stable
run: cargo build -v --release --target ${{ matrix.platform.target }}

- name: Package final binary
shell: bash
Expand Down
23 changes: 8 additions & 15 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,23 @@ env:
jobs:
build-crate:
name: Build and test crate/docs
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu, windows, macos]
toolchain: [nightly, beta, stable]
include:
- os: macos-latest
toolchain: stable
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
components: rust-docs
override: true
- name: Build library
run: cargo build -v --lib --no-default-features
- name: Build binary
run: cargo build -v --bins
- name: Test library
- name: Library tests
run: cargo test --no-default-features --lib
- name: Doc tests
run: cargo test --doc --no-default-features
Expand All @@ -47,13 +43,10 @@ jobs:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
components: clippy, rustfmt
override: true
- name: clippy
run: cargo clippy
continue-on-error: true
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# `simple_clustering` changelog

## Version 0.2.0 - 2023-07
Updated the color-handling crate, `palette`, from `0.6` to `0.7`. Users will
need to change from using `palette::Pixel::from_raw_slice` to
`palette::cast::from_component_slice` for preparing the input image buffer.

Consult the [documentation] or `lib.rs` file for examples.

[#3][3] - Upgrade dependencies, update CI/CD workflows, bump to 0.2.0

## Version 0.1.1 - 2023-01
Improved SLIC calculation speed by ~15-20% after refactoring calculation loop.

Expand All @@ -8,4 +17,6 @@ Improved SLIC calculation speed by ~15-20% after refactoring calculation loop.
## Version 0.1.0 - 2022-04
- Initial Commit

[3]: https://github.com/okaneco/simple_clustering/pull/3
[1]: https://github.com/okaneco/simple_clustering/pull/1
[documentation]: https://docs.rs/simple_clustering
Loading

0 comments on commit 6d514b9

Please sign in to comment.