Add windows pre-built releases in v0.3.3.

This commit is contained in:
Sebastian Jeltsch
2024-12-28 19:19:58 +01:00
parent 890fa37b2e
commit d3fceb9e3f
5 changed files with 46 additions and 6 deletions

View File

@@ -123,3 +123,31 @@ jobs:
with:
fail_on_unmatched_files: true
files: trailbase_${{ github.ref_name }}_x86_64_apple_darwin.zip
release-windows:
needs: changelog
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- uses: MinoruSekine/setup-scoop@v4.0.1
with:
buckets: extras
apps: nodejs pnpm protobuf zip
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-pc-windows-msvc
default: true
- name: Rust Build
shell: bash
run: |
cargo build --target x86_64-pc-windows-msvc --release --bin trail && \
zip -r -j trailbase_${{ github.ref_name }}_x86_64_windows.zip target/x86_64-pc-windows-msvc/release/trail.exe CHANGELOG.md LICENSE
- name: Release binaries
uses: softprops/action-gh-release@v2
with:
fail_on_unmatched_files: true
files: trailbase_${{ github.ref_name }}_x86_64_windows.zip

View File

@@ -1,3 +1,7 @@
## v0.3.3
* Pre-built Windows binary.
## v0.3.2
* Move record API access query construction to RecordApi construction time.

View File

@@ -19,7 +19,7 @@ exclude = [
]
# https://doc.rust-lang.org/cargo/reference/profiles.html
[profile.release]
[profile.release.'cfg(not(windows))']
panic = "unwind"
opt-level = 3
# PGO doesn't work with LTO: https://github.com/llvm/llvm-project/issues/57501
@@ -27,6 +27,14 @@ opt-level = 3
lto = true
codegen-units = 1
# Release builds for Windows on GitHub action runners are much slower, thus
# increase the parallel codegen units.
[profile.release.'cfg(windows)']
panic = "unwind"
opt-level = 3
lto = true
codegen-units = 16
# Workaround for https://github.com/gwenn/lemon-rs/issues/78. sqlite3-parser
# requires 1+MB stack frames to parse trivial SQL statements, which is larger
# than Window's default stack size of 1MB. This is due to the rust compiler not

View File

@@ -61,9 +61,9 @@ libraries, tests, documentation and examples.
Only the [benchmarks](https://github.com/trailbaseio/trailbase-benchmark) are
kept separately due to their external dependencies.
Pre-built static binaries are available as [GitHub
releases](https://github.com/trailbaseio/trailbase/releases/) for Linux an
MacOS.
Pre-built static binaries are available as
[GitHub releases](https://github.com/trailbaseio/trailbase/releases/) for
Linux, MacOS and Windows.
On Windows the Docker [image](https://hub.docker.com/r/trailbase/trailbase) can
be used.

View File

@@ -1,5 +1,5 @@
You can download the latest pre-built `trail` binary for Mac and Linux from
[GitHub](https://github.com/trailbaseio/trailbase/releases/).
You can download the latest pre-built `trail` binary for Mac, Windows and Linux
from [GitHub](https://github.com/trailbaseio/trailbase/releases/).
Alternatively, you can run TrailBase straight from DockerHub: