Skip to content

Commit

Permalink
Distribute Linux ARM64 binary (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja authored Feb 9, 2025
1 parent ef2f27d commit b72c20b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 14 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
matrix:
runs-on:
- ubuntu-latest
- ubuntu-24.04-arm
- macos-14 # ARM
- macos-13 # X86
- windows-latest
Expand All @@ -87,7 +88,7 @@ jobs:
if: matrix.runs-on == 'windows-latest'
run: choco install upx
- name: Install UPX
if: matrix.runs-on == 'ubuntu-latest'
if: startsWith(matrix.runs-on, 'ubuntu')
run: sudo apt-get install upx
- name: Get Rust target
id: get-rust-target
Expand All @@ -108,9 +109,8 @@ jobs:
if: matrix.runs-on == 'windows-latest'
shell: bash
run: |
mv \
target/${{ steps.get-rust-target.outputs.target }}/release/hledger-fmt.exe \
target/${{ steps.get-rust-target.outputs.target }}/release/hledger-fmt
path="target/${{ steps.get-rust-target.outputs.target }}/release"
mv "${path}/hledger-fmt.exe" "${path}/hledger-fmt"
- name: Compress with UPX
if: ${{ !startsWith(matrix.runs-on, 'macos') }}
shell: bash
Expand Down Expand Up @@ -146,13 +146,20 @@ jobs:
with:
name: ubuntu-latest-build
path: ./build/linux
- name: Download Linux ARM artifact
uses: actions/download-artifact@v4
with:
name: ubuntu-24.04-arm-build
path: ./build/linux-arm
- name: Download Windows artifact
uses: actions/download-artifact@v4
with:
name: windows-latest-build
path: ./build/windows
- name: Create Linux tarball
run: tar -czf dist/hledger-fmt-x86_64-unknown-linux-gnu.tar.gz -C build/linux hledger-fmt
- name: Create Linux tarballs
run: |
tar -czf dist/hledger-fmt-x86_64-unknown-linux-gnu.tar.gz -C build/linux hledger-fmt
tar -czf dist/hledger-fmt-arm64-unknown-linux-gnu.tar.gz -C build/linux-arm hledger-fmt
- name: Create MacOS tarballs
run: |
tar -czf dist/hledger-fmt-x86_64-apple-darwin.tar.gz -C build/mac-x64 hledger-fmt
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# CHANGELOG

## 2025-02-09 - [0.2.5]

### Enhancements

- Speed up parsing and formatting.
- Distribute Linux ARM64 binaries.

## 2025-01-20 - [0.2.4]

### Changes
Expand Down Expand Up @@ -80,6 +87,7 @@

First beta release

[0.2.5]: https://github.com/mondeja/hledger-fmt/compare/v0.2.4...v0.2.5
[0.2.4]: https://github.com/mondeja/hledger-fmt/compare/v0.2.3...v0.2.4
[0.2.3]: https://github.com/mondeja/hledger-fmt/compare/v0.2.2...v0.2.3
[0.2.2]: https://github.com/mondeja/hledger-fmt/compare/v0.2.1...v0.2.2
Expand Down
14 changes: 7 additions & 7 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hledger-fmt"
version = "0.2.4"
version = "0.2.5"
rust-version = "1.74.1"
edition = "2021"
description = "An opinionated hledger's journal files formatter."
Expand Down

0 comments on commit b72c20b

Please sign in to comment.