Skip to content

Commit

Permalink
Merge pull request #303 from michaelb/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
michaelb authored Feb 10, 2025
2 parents dfed7aa + 8ecc39d commit 151ada2
Show file tree
Hide file tree
Showing 14 changed files with 412 additions and 284 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ max_line_length = 120

# optional crlf/lf/cr/auto, if it is 'auto', in windows it is crlf other platforms are lf
# in neovim the value 'auto' is not a valid option, please use 'unset'
end_of_line = auto
end_of_line = unset

# none/ comma / semicolon / only_kv_colon
table_separator_style = none
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
- name: build
run: cargo build --target x86_64-unknown-linux-gnu --release --verbose && mv ./target/x86_64-unknown-linux-gnu/release/sniprun .

Expand Down
90 changes: 50 additions & 40 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,75 +8,85 @@ on:
workflow_dispatch:

jobs:
ci-safety:
name: ci-safety
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: astral-sh/setup-uv@v4
- name: run zizmor ci analysis tool
run: uvx zizmor --format sarif . > results.sarif
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
category: zizmor

build:
name : build-latest-stable
runs-on: ubuntu-20.04
# version used in release process to guarantee old-GLIBC compatibility

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build --verbose --release --target x86_64-unknown-linux-gnu

buildmsrv:
name: build-msrv
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: "rm Cargo.lock"
- name: Install Rust 1.65 toolchain
uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
with:
toolchain: 1.65
override: true
persist-credentials: false
- uses: dtolnay/[email protected]
- name: build
run: cargo build --release
run: cargo build --release --locked

buildnightly:
name: build-nightly
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
with:
toolchain: nightly
override: true
persist-credentials: false
- uses: dtolnay/rust-toolchain@nightly
- name: build
run: cargo build --release --target x86_64-unknown-linux-gnu

unittest:
name: unit & integration tests
runs-on: ubuntu-20.04
steps:

- uses: actions/checkout@v2

- run: './ressources/install_all_compilers_ci.sh'

- uses: oven-sh/setup-bun@v1

- uses: dlang-community/setup-dlang@v1

- uses: erlef/setup-beam@v1
with:
otp-version: "23"
elixir-version: "1.14"


- name: Unit tests
run: cargo test --release --features ignore_in_ci

- name: integration tests
run: cargo test --release --features ignore_in_ci --test integration



- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
- run: './ressources/install_all_compilers_ci.sh'
- uses: oven-sh/setup-bun@v1
- uses: dlang-community/setup-dlang@v1
- uses: erlef/setup-beam@v1
with:
otp-version: "23"
elixir-version: "1.14"
- name: Unit tests
run: cargo test --release --features ignore_in_ci
- name: integration tests
run: cargo test --release --features ignore_in_ci --test integration

install:
name: install (download)
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: installation tests
run: ./install.sh


5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v1.3.17
- better fallback messages
- Terminal display mode fixes (courtesy of @dbeecham)
- VirtualLine display mode

## v1.3.16
- Fix nvim-notify timeout and add render style option
- Filter ANSI escape code by default
Expand Down
Loading

0 comments on commit 151ada2

Please sign in to comment.