Skip to content

Commit 26eedcb

Browse files
committed
Update release.yml, README.md
1 parent b9ef2f5 commit 26eedcb

File tree

4 files changed

+35
-8
lines changed

4 files changed

+35
-8
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,30 @@ jobs:
2222
# (optional) Format of title.
2323
# [default value: $tag]
2424
# [possible values: variables $tag, $version, and any string]
25-
title: $version
25+
title: v$version
2626
env:
2727
# (required)
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2929

3030
upload-assets:
31+
needs: create-release
3132
strategy:
3233
fail-fast: false # don't fail other jobs if one fails
3334
matrix:
34-
os:
35-
- ubuntu-latest
36-
- macos-latest
37-
- windows-latest
35+
include:
36+
- target: aarch64-unknown-linux-gnu
37+
os: ubuntu-latest
38+
- target: x86_64-unknown-linux-gnu
39+
os: ubuntu-latest
40+
- target: aarch64-apple-darwin
41+
os: macos-latest
42+
- target: x86_64-apple-darwin
43+
os: macos-latest
44+
# Universal macOS binary is supported as universal-apple-darwin.
45+
- target: universal-apple-darwin
46+
os: macos-latest
47+
- target: x86_64-pc-windows-msvc
48+
os: windows-latest
3849
runs-on: ${{ matrix.os }}
3950
steps:
4051
- uses: actions/checkout@v4
@@ -44,6 +55,12 @@ jobs:
4455
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
4556
# Note that glob pattern is not supported yet.
4657
bin: reduce_image_size
58+
# (optional) Target triple, default is host triple.
59+
# This is optional, but it is recommended that this always be set to
60+
# clarify which target you are building for if macOS is included in
61+
# the matrix because GitHub Actions changed the default architecture
62+
# of macos-latest since macos-14.
63+
target: ${{ matrix.target }}
4764
# (optional) On which platform to distribute the `.tar.gz` file.
4865
# [default value: unix]
4966
# [possible values: all, unix, windows, none]

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.2.2] - 2024-07-10
11+
12+
### Changed
13+
14+
- Updated `release.yml` to include support for macOS on x86-64 and Linux on ARM.
15+
- Updated `README.md` to include support for macOS on x86-64 and Linux on ARM.
16+
1017
## [0.2.1] - 2024-06-14
1118

1219
### Changed

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "reduce_image_size"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
edition = "2021"
55
authors = ["Ivan Lazarević"]
66
description = "Reduces size of images in a folder (and optionally sub-folders, recursively)."
@@ -9,6 +9,9 @@ license = "MIT"
99
keywords = ["image", "images", "photo", "jpeg", "png"]
1010
categories = ["computer-vision", "multimedia", "multimedia::images", "command-line-utilities"]
1111

12+
[profile.release]
13+
strip = "symbols"
14+
1215
[lib]
1316
path = "src/lib.rs"
1417

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This application reduces file sizes of images in bulk.
1212

1313
Supports JPEG and PNG image formats, with the following file extensions (case-insensitive): `jpg`, `jpeg`, `png`.
1414

15-
Supports Windows, macOS on Apple silicon and Linux.
15+
Supports Windows, macOS on Apple silicon (ARM) and x86-64, and Linux on ARM and x86-64.
1616

1717
Executable files for Windows, macOS and Linux can be downloaded from
1818
the [Releases](https://github.com/ivanbgd/reduce-image-size-rust/releases) page of the repository.
@@ -57,7 +57,7 @@ The file paths in the examples are for Windows.
5757
- `reduce_image_size D:\img_src D:\img_dst --recursive --resize --quality 60 --size L`
5858

5959
## Notes
60-
- Developed in Rust 1.74.1, but also tested later with Rust 1.77.2.
60+
- Developed in Rust 1.74.1, but also tested later with Rust 1.79.0.
6161
- Tested on x86-64 CPUs on Windows 10 and Windows 11.
6262
- Tested on Apple silicon, M2 Pro, on macOS Sonoma 14.5.
6363
- Also tested on WSL - Ubuntu 22.04.2 LTS (GNU/Linux 5.15.133.1-microsoft-standard-WSL2 x86_64) on Windows 11 @ x86-64.

0 commit comments

Comments
 (0)