Skip to content

Commit

Permalink
Statically link binary on Windows MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 13, 2021
1 parent b81b057 commit e1ca3cd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ jobs:
if: matrix.target == ''
- run: cargo install cross --debug
if: matrix.target != ''
- run: echo "RUSTFLAGS=${RUSTFLAGS} -C target-feature=+crt-static" >> "${GITHUB_ENV}"
if: startsWith(matrix.os, 'windows')
- run: cross test --target ${{ matrix.target }}
if: matrix.target != ''
- run: cargo test --all
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ jobs:
- uses: taiki-e/github-actions/install-rust@main
with:
toolchain: stable
- run: echo "RUSTFLAGS=${RUSTFLAGS} -C target-feature=+crt-static" >> "${GITHUB_ENV}"
if: endsWith(matrix.target, 'windows-msvc')
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: parse-changelog
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com

- Allow specifying empty prefix format in `Parser::prefix_format` method (library) and `--prefix-format` option (CLI).

- Distribute statically linked binary on Windows MSVC. ([#18](https://github.com/taiki-e/parse-changelog/pull/18))

## [0.4.3] - 2021-07-24

- [Fix bug in parsing of heading.](https://github.com/taiki-e/parse-changelog/pull/13)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cargo install parse-changelog
#### From prebuilt binaries

You can download prebuilt binaries from the [Release page](https://github.com/taiki-e/parse-changelog/releases).
Prebuilt binaries are available for macOS, Linux (gnu and musl), and Windows.
Prebuilt binaries are available for macOS, Linux (gnu and musl), and Windows (static executable).

#### Via Homebrew

Expand Down

0 comments on commit e1ca3cd

Please sign in to comment.