Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
616090a
chore: pin the Rust toolchain to 1.100.0
trancong12102 Nov 23, 2026
d8d003f
style: fix clippy 1.100 findings
trancong12102 Nov 23, 2026
ebc42a1
chore(deps): upgrade every dependency to its latest release
trancong12102 Nov 23, 2026
919cf2c
build: compile only the dependency features flyline uses
trancong12102 Nov 23, 2026
c058ebf
chore: declare rust-version 1.91 and share package settings
trancong12102 Nov 23, 2026
f5e11b8
chore(deps): update nixpkgs flake input to 2026-11-21
trancong12102 Nov 23, 2026
9d718ed
ci: check advisories, licences, bans and sources with cargo deny
trancong12102 Nov 23, 2026
17f04c1
ci: lint on the pinned toolchain and check the MSRV
trancong12102 Nov 23, 2026
1f0665a
ci: give each pull request its own CI concurrency group
trancong12102 Nov 23, 2026
48b25a9
ci(release): build with the pinned toolchain and pin cross
trancong12102 Nov 23, 2026
1edef8f
build(docker): use the pinned toolchain and current base images
trancong12102 Nov 23, 2026
89fc880
ci(dependabot): conventional commit prefixes and recorded holds
trancong12102 Nov 23, 2026
242dd25
build!: ship prebuilt libraries only for 64-bit Linux, Apple silicon …
trancong12102 Nov 23, 2026
1bc4f0b
feat!: require bash 4.4 or newer and test on 5.1-5.3
trancong12102 Nov 23, 2026
5e29828
build!: raise the Linux glibc floor to 2.34 and build natively per arch
trancong12102 Nov 23, 2026
6bd06aa
chore(deps): use ansi-to-tui 8.0.1 from crates.io instead of the fork
trancong12102 Nov 23, 2026
5b0b8bb
Squashed 'vendor/ratatui/' content from commit e665c36c
trancong12102 Nov 23, 2026
d3ecfa6
vendor(ratatui): import ratatui/ratatui@e665c36cb1, the HalFrgrd fork…
trancong12102 Nov 23, 2026
b84242c
vendor(ratatui): apply the HalFrgrd/ratatui fork patches (d14aea579c)
trancong12102 Nov 23, 2026
c82ca99
vendor(termina): import helix-editor/termina@4efcdc689e, the HalFrgrd…
trancong12102 Nov 23, 2026
be48df8
vendor(termina): apply the HalFrgrd/termina fork patches (dfa34e768a)
trancong12102 Nov 23, 2026
c262f8f
Squashed 'vendor/termina/' content from commit 4efcdc68
trancong12102 Nov 23, 2026
56dbb2f
vendor(skim): import skim-rs/skim@6fb2cc5feb, the HalFrgrd fork's base
trancong12102 Nov 23, 2026
6d209e2
vendor(skim): apply the HalFrgrd/skim fork patches (7908ee85a5)
trancong12102 Nov 23, 2026
e874203
Squashed 'vendor/skim/' content from commit 6fb2cc5f
trancong12102 Nov 23, 2026
defa67b
build: build ratatui, termina and skim from vendor/ instead of git forks
trancong12102 Nov 23, 2026
f763d07
Squashed 'vendor/termina/' changes from 4efcdc68..7be7389f
trancong12102 Nov 23, 2026
df1b036
vendor(termina): merge upstream helix-editor/termina master (v0.4.0)
trancong12102 Nov 23, 2026
4076dee
vendor(ratatui): depend on termina 0.4
trancong12102 Nov 23, 2026
1309447
Squashed 'vendor/skim/' changes from 6fb2cc5f..2160abbd
trancong12102 Nov 23, 2026
b8a5e86
vendor(skim): merge upstream skim-rs/skim master (5.9.0)
trancong12102 Nov 23, 2026
f76058d
chore(deps): lock the vendored skim 5.9.0
trancong12102 Nov 23, 2026
f030d93
docs(vendor): record the termina and skim upstream bases and the rata…
trancong12102 Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# cargo audit (supply-chain.yml) reads this; keep it in step with the
# [advisories] ignore list in deny.toml, which carries the reasons.
[advisories]
ignore = [
"RUSTSEC-2026-0543", # chrono unmaintained
]
52 changes: 26 additions & 26 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2

updates:
# Rust (Cargo)
- package-ecosystem: "cargo"
directory: "/"
# The vendored forks' manifests are updated with their upstreams
# (vendor/README.md), not one dependency at a time.
exclude-paths:
- "vendor/**"
schedule:
interval: "weekly"
open-pull-requests-limit: 1
open-pull-requests-limit: 5
commit-message:
prefix: "cargo"
prefix: "chore(deps)"
labels:
- "dependencies"
- "ci"
groups:
cargo-minor-and-patch:
patterns:
- "*"
update-types:
- "minor"
- "patch"
ignore:
# termina still requires parking_lot ^0.12, so 0.13 would link two copies
# of the lock crates and raise the MSRV to 1.95; see the parking_lot line
# in Cargo.toml.
- dependency-name: "parking_lot"
versions: [">=0.13"]

# GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 1
open-pull-requests-limit: 5
commit-message:
prefix: "gha"
prefix: "ci"
labels:
- "dependencies"
- "ci"
groups:
gha-minor-and-patch:
patterns:
Expand All @@ -44,21 +44,21 @@ updates:
- "minor"
- "patch"

# Docker
- package-ecosystem: "docker"
directory: "docker/"
directory: "/docker"
schedule:
interval: "weekly"
open-pull-requests-limit: 1
open-pull-requests-limit: 5
commit-message:
prefix: "docker"
prefix: "chore(deps)"
labels:
- "dependencies"
- "ci"
groups:
docker-minor-and-patch:
patterns:
- "*"
update-types:
- "minor"
- "patch"
ignore:
# Every Ubuntu tag is chosen on purpose and explained in its Dockerfile:
# 22.04 is the oldest-LTS install test and the bash-version image needs
# a GCC that still compiles bash 5.1. Bump them by hand.
- dependency-name: "ubuntu"
# docker/builder.Dockerfile's AlmaLinux 9 is the glibc 2.34 floor of
# every Linux release build; a major bump raises it.
- dependency-name: "almalinux"
update-types: ["version-update:semver-major"]
58 changes: 9 additions & 49 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,20 @@ on:
branches: [ "**" ]
workflow_dispatch:

# A newer push to the same PR supersedes the older run. A single global group
# made every PR queue behind every other and cancelled whichever was pending.
# Never cancel master/dispatch runs.
concurrency:
group: ci
cancel-in-progress: false
group: ci-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions:
contents: read
packages: write

jobs:
build-ubuntu-1604:
name: Build and test on Ubuntu 16.04
build:
name: Build and test (glibc 2.34 floor)
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
Expand All @@ -29,11 +32,9 @@ jobs:
files: docker-bake.hcl
targets: |
extract-integration-test-build-artifact
extract-pre-bash-4-4-integration-test-build-artifact
lib-tests
set: |
extract-integration-test-build-artifact.output=type=local,dest=${{ runner.temp }}/docker/build
extract-pre-bash-4-4-integration-test-build-artifact.output=type=local,dest=${{ runner.temp }}/docker/build-pre-bash-4-4
*.cache-from=type=gha
*.cache-to=type=gha,mode=max

Expand All @@ -48,11 +49,11 @@ jobs:
name: Bash integration tests using built library
runs-on: ubuntu-latest
needs:
- build-ubuntu-1604
- build
strategy:
fail-fast: false
matrix:
bash_version_slug: [ "4_4-rc1", "4_4_18", "5_0", "5_3" ]
bash_version_slug: [ "5_1", "5_2", "5_3" ]

steps:
- name: Set up Docker Buildx
Expand Down Expand Up @@ -83,44 +84,3 @@ jobs:
bash-integration-test-${{ matrix.bash_version_slug }}.cache-to=type=gha,mode=max
built-artifact.cache-from=type=gha
built-artifact.cache-to=type=gha,mode=max

bash-integration-tests-pre-4-4:
name: Bash integration tests (pre-4.4) using built library
runs-on: ubuntu-latest
needs:
- build-ubuntu-1604
strategy:
fail-fast: false
matrix:
bash_version_slug: [ "3_2_57" ]

steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4

- name: Login to GHCR
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set lower case owner name
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'

- name: Run integration tests
uses: docker/bake-action@v7
with:
files: docker-bake.hcl
targets: bash-integration-test-${{ matrix.bash_version_slug }}
set: |
specific-bash-version-${{ matrix.bash_version_slug }}.cache-from=type=registry,ref=ghcr.io/${{ env.OWNER_LC }}/bash-${{ matrix.bash_version_slug }}:cache
${{ github.event_name != 'pull_request' && format('specific-bash-version-{0}.cache-to=type=registry,ref=ghcr.io/{1}/bash-{0}:cache,mode=min', matrix.bash_version_slug, env.OWNER_LC) || '' }}
bash-integration-test-${{ matrix.bash_version_slug }}.cache-from=type=gha
bash-integration-test-${{ matrix.bash_version_slug }}.cache-to=type=gha,mode=max
built-artifact.cache-from=type=gha
built-artifact.cache-to=type=gha,mode=max

56 changes: 47 additions & 9 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ run-name: Code Quality
on: # yamllint disable-line rule:truthy
workflow_dispatch:
push:
branches: [ main ]
branches: [ master ]
pull_request:
branches: [ '**' ]

Expand All @@ -21,24 +21,62 @@ defaults:
permissions:
contents: read

env:
CARGO_TERM_COLOR: always
CARGO_NET_RETRY: 5

jobs:
build:
name: Check Code
runs-on: ubuntu-latest
container: docker.io/rust:1.94.1-slim-trixie
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v7.0.1
with:
persist-credentials: false

# Same version as rust-toolchain.toml, so this gate and local clippy agree.
- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.100.0"
components: clippy, rustfmt

- uses: Swatinem/rust-cache@v2
with:
key: code-quality

permissions:
contents: write # Required to checkout the repository and push to a release
- name: Check Code
run: |
# No --all: that would also format the vendored path dependencies.
cargo fmt -- --check
cargo clippy --workspace --locked --quiet --all-features --all-targets -- -D warnings
cargo doc --workspace --locked --quiet --no-deps --document-private-items

msrv:
name: Check MSRV (1.91)
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v7.0.1
with:
persist-credentials: false

- name: Check Code
- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.91.0"

- uses: Swatinem/rust-cache@v2
with:
key: msrv-1.91

- name: Check advertised minimum Rust version
# rust-toolchain.toml pins 1.100.0 for the workspace; this job must
# override it explicitly or rustup follows the file and the check
# below runs on the pinned version instead of exercising the MSRV.
env:
RUSTUP_TOOLCHAIN: "1.91.0"
run: |
rustup component add clippy rustfmt rust-docs
cargo fmt --all -- --check
cargo clippy --workspace --quiet --all-features -- -D warnings
cargo doc --workspace --quiet --no-deps --document-private-items
rustc --version | grep -E '^rustc 1[.]91[.]0 '
cargo check --workspace --locked --all-targets
63 changes: 35 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,57 +36,64 @@ jobs:
version: ${{ env.VERSION }}

build-release:
name: Build ${{ matrix.target }}${{ matrix.suffix }}
name: Build ${{ matrix.target }}
needs: create-release
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
# Linux (via cross)
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, build_tool: cross, lib: libflyline.so, feature_flags: "", suffix: "" }
- { target: x86_64-unknown-linux-musl, os: ubuntu-latest, build_tool: cross, lib: libflyline.so, feature_flags: "", suffix: "" }
- { target: aarch64-unknown-linux-gnu, os: ubuntu-latest, build_tool: cross, lib: libflyline.so, feature_flags: "", suffix: "" }
- { target: aarch64-unknown-linux-musl, os: ubuntu-latest, build_tool: cross, lib: libflyline.so, feature_flags: "", suffix: "" }
# Additional Linux architectures
- { target: armv7-unknown-linux-gnueabihf, os: ubuntu-latest, build_tool: cross, lib: libflyline.so, feature_flags: "", suffix: "" }
- { target: i686-unknown-linux-gnu, os: ubuntu-latest, build_tool: cross, lib: libflyline.so, feature_flags: "", suffix: "" }
- { target: riscv64gc-unknown-linux-gnu, os: ubuntu-latest, build_tool: cross, lib: libflyline.so, feature_flags: "", suffix: "" }
- { target: powerpc64le-unknown-linux-gnu, os: ubuntu-latest, build_tool: cross, lib: libflyline.so, feature_flags: "", suffix: "" }
# Linux pre_bash_4_4
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, build_tool: cross, lib: libflyline.so, feature_flags: "--features pre_bash_4_4", suffix: "_pre_bash_4_4" }
# FreeBSD (via cross)
- { target: x86_64-unknown-freebsd, os: ubuntu-latest, build_tool: cross, lib: libflyline.so, feature_flags: "", suffix: "" }
# Linux glibc: docker/builder.Dockerfile (AlmaLinux 9, glibc 2.34 floor), built natively per arch
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, build_tool: bake, lib: libflyline.so }
- { target: aarch64-unknown-linux-gnu, os: ubuntu-24.04-arm, build_tool: bake, lib: libflyline.so }
# Linux musl (via cross)
- { target: x86_64-unknown-linux-musl, os: ubuntu-latest, build_tool: cross, lib: libflyline.so }
- { target: aarch64-unknown-linux-musl, os: ubuntu-latest, build_tool: cross, lib: libflyline.so }
# Android (via cross)
- { target: aarch64-linux-android, os: ubuntu-latest, build_tool: cross, lib: libflyline.so, feature_flags: "", suffix: "" }
- { target: x86_64-linux-android, os: ubuntu-latest, build_tool: cross, lib: libflyline.so, feature_flags: "", suffix: "" }
- { target: armv7-linux-androideabi, os: ubuntu-latest, build_tool: cross, lib: libflyline.so, feature_flags: "", suffix: "" }
- { target: i686-linux-android, os: ubuntu-latest, build_tool: cross, lib: libflyline.so, feature_flags: "", suffix: "" }
- { target: aarch64-linux-android, os: ubuntu-latest, build_tool: cross, lib: libflyline.so }
# macOS (native cargo)
- { target: x86_64-apple-darwin, os: macos-latest, build_tool: cargo, lib: libflyline.dylib, feature_flags: "", suffix: "" }
- { target: aarch64-apple-darwin, os: macos-latest, build_tool: cargo, lib: libflyline.dylib, feature_flags: "", suffix: "" }
- { target: aarch64-apple-darwin, os: macos-latest, build_tool: cargo, lib: libflyline.dylib }

steps:
- name: Checkout
uses: actions/checkout@v7

# The version pinned in rust-toolchain.toml. `@stable` would install a
# different toolchain from the one rustup then selects in the repo, and
# the target would be added to the wrong one.
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
if: matrix.build_tool != 'bake'
uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.100.0"
targets: ${{ matrix.target }}

- name: Install cross
if: matrix.build_tool == 'cross'
uses: taiki-e/install-action@v2
with:
tool: cross
tool: cross@0.2.5

- name: Build ${{ matrix.target }}${{ matrix.suffix }}
run: ${{ matrix.build_tool }} build --release --target ${{ matrix.target }} ${{ matrix.feature_flags }}
- name: Set up Docker Buildx
if: matrix.build_tool == 'bake'
uses: docker/setup-buildx-action@v4

- name: Build ${{ matrix.target }}
if: matrix.build_tool == 'bake'
uses: docker/bake-action@v7
with:
files: docker-bake.hcl
targets: extract-release-artifact
set: |
extract-release-artifact.output=type=local,dest=target/${{ matrix.target }}/release

- name: Build ${{ matrix.target }}
if: matrix.build_tool != 'bake'
run: ${{ matrix.build_tool }} build --release --lib --target ${{ matrix.target }}

- name: Prepare release artifact
run: |
ARCHIVE="libflyline-${{ github.ref_name }}-${{ matrix.target }}${{ matrix.suffix }}"
ARCHIVE="libflyline-${{ github.ref_name }}-${{ matrix.target }}"
echo "ARCHIVE=$ARCHIVE" >> $GITHUB_ENV

- name: Build archive
Expand Down Expand Up @@ -136,7 +143,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release edit "${{ needs.create-release.outputs.version }}" --prerelease --draft=false --repo HalFrgrd/flyline
gh release edit "${{ needs.create-release.outputs.version }}" --prerelease --draft=false

test-installation:
name: test-installation (${{ matrix.target }})
Expand All @@ -145,7 +152,7 @@ jobs:
strategy:
fail-fast: false
matrix:
target: [install-test-alpine, install-test-ubuntu, install-test-arch, install-test-termux, install-test-bash-3-2-57]
target: [install-test-alpine, install-test-ubuntu, install-test-arch, install-test-termux]
steps:
- uses: actions/checkout@v7
- name: Set up Docker Buildx
Expand Down
Loading