Compare commits

..

1 Commits

Author SHA1 Message Date
Tom Milligan
212070a17d chore: prep v1.10.2 release 2023-08-07 18:58:00 +01:00
6 changed files with 356 additions and 245 deletions

View File

@@ -16,16 +16,14 @@ jobs:
strategy:
fail-fast: false
matrix:
target:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
- x86_64-apple-darwin
- x86_64-pc-windows-msvc
include:
- target: aarch64-unknown-linux-musl
os: ubuntu-latest
name: aarch64-unknown-linux-musl.tar.gz
- target: x86_64-unknown-linux-gnu
# Deliberately pinned to the same version `mdbook` uses to build
# binaries, so we use the same glibc version
#
# ref: https://github.com/rust-lang/mdBook/pull/1955
os: ubuntu-20.04
os: ubuntu-latest
name: x86_64-unknown-linux-gnu.tar.gz
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
@@ -58,19 +56,17 @@ jobs:
profile: minimal
target: ${{ matrix.target }}
- name: Setup | cross
if: endsWith(matrix.target, '-unknown-linux-musl')
uses: taiki-e/install-action@v2
with:
tool: cross
- name: Setup | musl tools
if: matrix.target == 'x86_64-unknown-linux-musl'
run: sudo apt install -y musl-tools
- name: Build | Build
if: ${{ !endsWith(matrix.target, '-unknown-linux-musl') }}
if: matrix.target != 'x86_64-unknown-linux-musl'
run: cargo build --release --target ${{ matrix.target }}
- name: Build | Build (musl)
if: endsWith(matrix.target, '-unknown-linux-musl')
run: cross build --release --target ${{ matrix.target }}
if: matrix.target == 'x86_64-unknown-linux-musl'
run: cargo build --release --target ${{ matrix.target }}
- name: Post Setup | Extract tag name
shell: bash
@@ -82,6 +78,7 @@ jobs:
run: |
mkdir target/stage
cd target/${{ matrix.target }}/release
strip ${{ env.CRATE_NAME }}.exe
7z a ../../stage/${{ env.CRATE_NAME }}-${{ steps.extract_tag.outputs.tag }}-${{ matrix.name }} ${{ env.CRATE_NAME }}.exe
cd -
- name: Post Setup | Prepare artifacts [-nix]
@@ -89,6 +86,7 @@ jobs:
run: |
mkdir target/stage
cd target/${{ matrix.target }}/release
strip ${{ env.CRATE_NAME }}
tar czvf ../../stage/${{ env.CRATE_NAME }}-${{ steps.extract_tag.outputs.tag }}-${{ matrix.name }} ${{ env.CRATE_NAME }}
cd -
- name: Post Setup | Upload artifacts

View File

@@ -2,16 +2,6 @@
## Unreleased
## 1.11.0
### Changed
- `gnu` prebuilt binaries are now built on `ubuntu-20.04` to match `mdbook` binaries. Thanks to [@eitsupi](https://github.com/eitsupi) for the fix! ([#118](https://github.com/tommilligan/mdbook-admonish/pull/118))
### Added
- `aarch64-unknown-linux-musl` prebuilt binary now available ([#119](https://github.com/tommilligan/mdbook-admonish/pull/119))
## 1.10.2
### Fixed

542
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
[package]
name = "mdbook-admonish"
version = "1.11.0"
version = "1.10.2"
edition = "2021"
authors = ["Tom Milligan <code@tommilligan.net>"]
@@ -17,9 +17,6 @@ name = "mdbook-admonish"
path = "src/bin/mdbook-admonish.rs"
required-features = ["cli"]
[profile.release]
strip = true
[lib]
name = "mdbook_admonish"
path = "src/lib.rs"

View File

@@ -5,5 +5,5 @@ set -exuo pipefail
cd "$(dirname "$0")"/../..
if ! mdbook-toc --version; then
cargo install mdbook-toc --version 0.14.1 --force
cargo install mdbook-toc --version 0.13.0 --force
fi

View File

@@ -418,7 +418,7 @@ Will have bonus classnames
```
"#;
let expected = r#"
let expected = r##"
<div id="admonition-default" class="admonition note">
<div>
@@ -427,7 +427,7 @@ Will have bonus classnames
</div>
</div>
"#;
"##;
assert_eq!(expected, prep(content));
}
@@ -684,7 +684,7 @@ A simple admonition.
Text
"#;
let expected = r#"# Chapter
let expected = r##"# Chapter
<div id="admonition-default" class="admonition note">
<div>
@@ -694,7 +694,7 @@ A simple admonition.
</div>
</div>
Text
"#;
"##;
let preprocess_result = preprocess(
content,
@@ -718,7 +718,7 @@ A simple admonition.
Text
"#;
let expected = r#"# Chapter
let expected = r##"# Chapter
<div id="admonition-default" class="admonition note">
<div>
@@ -728,7 +728,7 @@ A simple admonition.
</div>
</div>
Text
"#;
"##;
assert_eq!(expected, prep(content));
}