Commit Graph

9 Commits

Author SHA1 Message Date
Lutz Justen
a8059e8572 [cdc_rsync] Use any available server port (#94)
Instead of calling netstat on the remote device to detect available
ports, simply call bind with port 0 to bind to any available port.
Since the port is not yet known when cdc_rsync_server.exe is called,
port forwarding needs to be started AFTER the server reports its port.
2023-03-06 14:16:21 +01:00
Levon Ter-Grigoryan
84427155c7 [cdc_rsync] Add build id to github workflow 2023-02-06 16:31:50 +01:00
Lutz Justen
3194678007 [Release] Include docs and cdc_rsync_server.exe in zip (#70)
Also clarifies some unclear aspects in the readme, and adds a fix that
allows create_release.yml to be used for pull requests for testing.

Fixes #67
Fixes #55
2023-02-01 09:31:48 +01:00
Lutz Justen
d2b594a41d Fix build caching (#43)
There were two problems:
- Writing the date on Windows used the wrong syntax. In Powershell,
  env variables are addressed as $env:NAME, not $NAME.
- Use different caches for opt vs fastbuild. We are currently using
  opt caches for fastbuilds, which results in lots of cache misses.
2022-12-08 08:38:23 +01:00
Lutz Justen
c9e18b9e91 Reuse bazel cache folder between builds (#38)
Uses a bazel --disk_cache to cache build outputs between builds. Bazel
also has a local cache, e.g. in ~/.cache/bazel/_bazel_$USER/cache, but
that one can't be used as it won't reuse data across checkouts. A disk
cache is like a remote cache, except that it's on the local disk.

Github first looks for a cache with the given exact key in the current
branch, then in the main branch. If there's a cache hit, the cache
isn't updated (they're read-only!). To prevent that caches become
stale, they are timestamped using the current year and month, so that
the cache is force-renewed every month. Bazel disk caches also just
grow, so this technique prevents that the cache grows indefinitely,
eventually causing cache trashing.
2022-12-05 10:46:56 +01:00
Lutz Justen
01a60e2490 Rename asset_stream_manager to cdc_stream (#27)
Fixes #13
2022-12-01 16:14:56 +01:00
Lutz Justen
f0539226a2 Merge cdc_stream into asset_stream_manager (#26)
Adds start and stop commands to asset_stream_manager.
asset_stream_manager will be renamed to cdc_stream next.
2022-12-01 12:40:00 +01:00
Lutz Justen
991f61cc4d Improve create_release workflow (#20)
Modifies the create_release workflow in 2 ways:
- It only runs now if something is pushed to main.
- It creates a tagged release if a tag is pushed.

To create a tagged release, run e.g.
  git tag -a v0.1.0 -m "Release 0.1.0"
  git push origin v0.1.0
2022-11-25 12:02:54 +01:00
Lutz Justen
21a1b37787 Add workflow to create a release (#11)
Adds a workflow that creates a "latest" release with a description listing all changes and a zip with built binaries (for Windows and Ubuntu 20.04).
2022-11-22 12:14:14 +01:00