Skip to content

Commit 3ebd797

Browse files
committed
Updates.
1 parent f4494b6 commit 3ebd797

19 files changed

Lines changed: 379 additions & 86 deletions
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: build GNU/Linux
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
- release/*
9+
pull_request:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout sources
16+
uses: actions/checkout@v6
17+
18+
- name: Install Rust
19+
uses: dtolnay/rust-toolchain@stable
20+
with:
21+
targets: x86_64-unknown-linux-gnu
22+
23+
- name: Get package name and version
24+
id: metadata
25+
run: |
26+
NAME=$(cargo metadata --no-deps --format-version=1 | jq -r '.packages[0].name')
27+
echo "name=$NAME" >> $GITHUB_OUTPUT
28+
VERSION=$(cargo metadata --no-deps --format-version=1 | jq -r '.packages[0].version')
29+
echo "version=$VERSION" >> $GITHUB_OUTPUT
30+
31+
- name: Build release binary
32+
run: cargo build --release --target=x86_64-unknown-linux-gnu
33+
34+
- name: Upload binary
35+
uses: actions/upload-artifact@v7
36+
with:
37+
name: ${{ steps.metadata.outputs.name }}-v${{ steps.metadata.outputs.version }}-x86_64-unknown-linux-gnu
38+
path: target/x86_64-unknown-linux-gnu/release/${{ steps.metadata.outputs.name }}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: build Linux musl
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
- release/*
9+
pull_request:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout sources
16+
uses: actions/checkout@v6
17+
18+
- name: Install Rust
19+
uses: dtolnay/rust-toolchain@stable
20+
with:
21+
targets: x86_64-unknown-linux-musl
22+
23+
- name: Install musl
24+
run: sudo apt-get update && sudo apt-get install -y musl-tools
25+
26+
- name: Get package name and version
27+
id: metadata
28+
run: |
29+
NAME=$(cargo metadata --no-deps --format-version=1 | jq -r '.packages[0].name')
30+
echo "name=$NAME" >> $GITHUB_OUTPUT
31+
VERSION=$(cargo metadata --no-deps --format-version=1 | jq -r '.packages[0].version')
32+
echo "version=$VERSION" >> $GITHUB_OUTPUT
33+
34+
- name: Build release binary
35+
run: cargo build --release --target=x86_64-unknown-linux-musl
36+
37+
- name: Upload binary
38+
uses: actions/upload-artifact@v7
39+
with:
40+
name: ${{ steps.metadata.outputs.name }}-v${{ steps.metadata.outputs.version }}-x86_64-unknown-linux-musl
41+
path: target/x86_64-unknown-linux-musl/release/${{ steps.metadata.outputs.name }}

.github/workflows/build-linux.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: build macOS aarch64
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
- release/*
9+
pull_request:
10+
11+
jobs:
12+
build:
13+
runs-on: macos-latest
14+
steps:
15+
- name: Checkout sources
16+
uses: actions/checkout@v6
17+
18+
- name: Install Rust
19+
uses: dtolnay/rust-toolchain@stable
20+
with:
21+
targets: aarch64-apple-darwin
22+
23+
- name: Get package name and version
24+
id: metadata
25+
run: |
26+
NAME=$(cargo metadata --no-deps --format-version=1 | jq -r '.packages[0].name')
27+
echo "name=$NAME" >> $GITHUB_OUTPUT
28+
VERSION=$(cargo metadata --no-deps --format-version=1 | jq -r '.packages[0].version')
29+
echo "version=$VERSION" >> $GITHUB_OUTPUT
30+
31+
- name: Build release binary
32+
run: cargo build --release --target=aarch64-apple-darwin
33+
34+
- name: Upload binary
35+
uses: actions/upload-artifact@v7
36+
with:
37+
name: ${{ steps.metadata.outputs.name }}-v${{ steps.metadata.outputs.version }}-aarch64-apple-darwin
38+
path: target/aarch64-apple-darwin/release/${{ steps.metadata.outputs.name }}

.github/workflows/build-macos-arm64.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/build-macos.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,38 @@
1-
name: macOs
1+
name: build macOS
22

33
on:
44
workflow_dispatch:
55
push:
66
branches:
77
- main
8-
- release/**
8+
- release/*
99
pull_request:
1010

1111
jobs:
1212
build:
1313
runs-on: macos-latest
1414
steps:
15-
- uses: actions/checkout@v6
16-
- uses: dtolnay/rust-toolchain@stable
15+
- name: Checkout sources
16+
uses: actions/checkout@v6
17+
18+
- name: Install Rust
19+
uses: dtolnay/rust-toolchain@stable
1720
with:
1821
targets: x86_64-apple-darwin
19-
- run: cargo clippy --all-targets
20-
- run: cargo test
21-
- run: cargo build --release --target=x86_64-apple-darwin
22+
23+
- name: Get package name and version of the crate
24+
id: metadata
25+
run: |
26+
NAME=$(cargo metadata --no-deps --format-version=1 | jq -r '.packages[0].name')
27+
echo "name=$NAME" >> $GITHUB_OUTPUT
28+
VERSION=$(cargo metadata --no-deps --format-version=1 | jq -r '.packages[0].version')
29+
echo "version=$VERSION" >> $GITHUB_OUTPUT
30+
31+
- name: Build release binary
32+
run: cargo build --release --target=x86_64-apple-darwin
33+
34+
- name: Upload binary
35+
uses: actions/upload-artifact@v7
36+
with:
37+
name: ${{ steps.metadata.outputs.name }}-v${{ steps.metadata.outputs.version }}-x86_64-apple-darwin
38+
path: target/x86_64-apple-darwin/release/${{ steps.metadata.outputs.name }}
Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,39 @@
1-
name: Windows
1+
name: build Windows
22

33
on:
44
workflow_dispatch:
55
push:
66
branches:
77
- main
8-
- release/**
8+
- release/*
99
pull_request:
1010

1111
jobs:
1212
build:
1313
runs-on: windows-latest
1414
steps:
15-
- uses: actions/checkout@v6
16-
- uses: dtolnay/rust-toolchain@stable
15+
- name: Checkout sources
16+
uses: actions/checkout@v6
17+
18+
- name: Install Rust
19+
uses: dtolnay/rust-toolchain@stable
1720
with:
1821
targets: x86_64-pc-windows-msvc
19-
- run: cargo clippy --all-targets
20-
- run: cargo test
21-
- run: cargo build --release --target=x86_64-pc-windows-msvc
22+
23+
- name: Get package name and version
24+
id: metadata
25+
shell: bash
26+
run: |
27+
NAME=$(cargo metadata --no-deps --format-version=1 | jq -r '.packages[0].name')
28+
echo "name=$NAME" >> $GITHUB_OUTPUT
29+
VERSION=$(cargo metadata --no-deps --format-version=1 | jq -r '.packages[0].version')
30+
echo "version=$VERSION" >> $GITHUB_OUTPUT
31+
32+
- name: Build release binary
33+
run: cargo build --release --target=x86_64-pc-windows-msvc
34+
35+
- name: Upload binary
36+
uses: actions/upload-artifact@v7
37+
with:
38+
name: ${{ steps.metadata.outputs.name }}-v${{ steps.metadata.outputs.version }}-x86_64-pc-windows-msvc
39+
path: target/x86_64-pc-windows-msvc/release/${{ steps.metadata.outputs.name }}.exe

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "antex"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
authors = ["Dariusz Depta <depta@engos.de>"]
55
description = "Styled text and tree in terminal"
66
documentation = "https://docs.rs/antex"
@@ -10,10 +10,5 @@ categories = ["text-processing", "visualization", "encoding"]
1010
license = "MIT OR Apache-2.0"
1111
edition = "2024"
1212
exclude = [
13-
"rustfmt.toml",
14-
"Taskfile.yml",
15-
".github/",
16-
".gitignore",
17-
"CODE_OF_CONDUCT.md",
1813
"manual/"
1914
]

README.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
11
### antex
22

33
[![crates.io][crates-badge]][crates-url]
4-
[![coverage][cov-badge]][cov-url]
5-
![build Linux][build-badge-linux]
6-
![build Windows][build-badge-windows]
7-
![build macOs][build-badge-macos]
8-
![build macOs arm64][build-badge-macos-arm64]
4+
[![coverage][cov-badge]][cov-url]
5+
![build-linux-gnu][build-badge-linux-gnu]
6+
![build-linux-musl][build-badge-linux-musl]
7+
![build-macos][build-badge-macos]
8+
![build-macos-aarch64][build-badge-macos-aarch64]
9+
![build-windows][build-badge-windows]
910
[![mit-license][mit-badge]][mit-license-url]
1011
[![apache-license][apache-badge]][apache-license-url]
11-
[![cc][cc-badge]][cc-url]
12+
[![cc][cc-badge]][cc-url]
1213
[![mbh][mbh-badge]][mbh-url]
1314
[![es][es-badge]][es-url]
1415

1516
[crates-badge]: https://img.shields.io/crates/v/antex.svg
1617
[crates-url]: https://crates.io/crates/antex
1718
[cov-badge]: https://img.shields.io/badge/coverage-100%25-21b577.svg
1819
[cov-url]: https://crates.io/crates/coverio
19-
[build-badge-linux]: https://github.com/EngosSoftware/antex/actions/workflows/build-linux.yml/badge.svg
20-
[build-badge-windows]: https://github.com/EngosSoftware/antex/actions/workflows/build-windows.yml/badge.svg
20+
[build-badge-linux-gnu]: https://github.com/EngosSoftware/antex/actions/workflows/build-linux-gnu.yml/badge.svg
21+
[build-badge-linux-musl]: https://github.com/EngosSoftware/antex/actions/workflows/build-linux-musl.yml/badge.svg
2122
[build-badge-macos]: https://github.com/EngosSoftware/antex/actions/workflows/build-macos.yml/badge.svg
22-
[build-badge-macos-arm64]: https://github.com/EngosSoftware/antex/actions/workflows/build-macos-arm64.yml/badge.svg
23-
[mit-badge]: https://img.shields.io/badge/License-MIT-4169E1.svg
23+
[build-badge-macos-aarch64]: https://github.com/EngosSoftware/antex/actions/workflows/build-macos-aarch64.yml/badge.svg
24+
[build-badge-windows]: https://github.com/EngosSoftware/antex/actions/workflows/build-windows.yml/badge.svg
25+
[mit-badge]: https://img.shields.io/badge/License-MIT-9370DB.svg
2426
[mit-url]: https://opensource.org/licenses/MIT
2527
[mit-license-url]: https://github.com/EngosSoftware/antex/blob/main/LICENSE-MIT
26-
[apache-badge]: https://img.shields.io/badge/License-Apache%202.0-4169E1.svg
28+
[apache-badge]: https://img.shields.io/badge/License-Apache%202.0-9370DB.svg
2729
[apache-url]: https://www.apache.org/licenses/LICENSE-2.0
2830
[apache-license-url]: https://github.com/EngosSoftware/antex/blob/main/LICENSE
2931
[apache-notice-url]: https://github.com/EngosSoftware/antex/blob/main/NOTICE
30-
[cc-badge]: https://img.shields.io/badge/Contributor%20Covenant-2.1-4169E1.svg
32+
[cc-badge]: https://img.shields.io/badge/Contributor%20Covenant-2.1-9370DB.svg
3133
[cc-url]: https://github.com/EngosSoftware/antex/blob/main/CODE_OF_CONDUCT.md
32-
[mbh-badge]: https://img.shields.io/badge/Made_by_a-HUMAN-DC143C.svg
34+
[mbh-badge]: https://img.shields.io/badge/Made_by-HUMAN-F5DEB3.svg
3335
[mbh-url]: https://github.com/DariuszDepta
34-
[es-badge]: https://img.shields.io/badge/at-Engos_Software-32CD32.svg
36+
[es-badge]: https://img.shields.io/badge/at-Engos_Software-ADD8E6.svg
3537
[es-url]: https://engos.de
3638
[repository-url]: https://github.com/EngosSoftware/antex
3739

0 commit comments

Comments
 (0)