Skip to content

Commit

Permalink
Add windows pre-built releases in v0.3.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatz committed Dec 28, 2024
1 parent 890fa37 commit d3fceb9
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 6 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v0.3.3

* Pre-built Windows binary.

## v0.3.2

* Move record API access query construction to RecordApi construction time.
Expand Down
10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,22 @@ 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
# lto = "off"
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
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions docs/src/content/docs/getting-started/_getting_trailbase.md
Original file line number Diff line number Diff line change
@@ -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:

Expand Down

0 comments on commit d3fceb9

Please sign in to comment.