John Colvin
2ed23159ca
style: Clean up jenkins build script
...
* Get rid of double backslashes in quoted paths to improve readability
* Call 'activate.bat' instead of 'activate' (official python docs say to
use the former)
* Add docs
2023-07-26 15:26:30 -04:00
John Colvin
faa8438adf
build: Make jenkins build script independent of working dir
...
This alleviates an unneccessary burden on callers (previously, it had to
be run from the repo root dir).
2023-07-26 11:59:03 -04:00
John Colvin
9e4354fb55
fix buid: Don't goto ERROR just bc venv already exists
...
This seems like a typo
2023-07-18 23:40:18 -04:00
John Colvin
e6bb4c73a8
fix build (jenkins): Upgrade pip via 'python -m pip'
...
For some reason 'pip install --upgrade pip' works on my laptop, but fails on
the Jenkins box.
2023-07-18 22:53:32 -04:00
John Colvin
e43a2a4818
build: Add build script for new Jenkins (on aws)
2023-07-18 22:25:56 -04:00
John Colvin
cde0f44b7d
build: Default to Release cfg for 'publish' target
2023-07-18 22:25:06 -04:00
John Colvin
82c126362d
fix build: Fix a few path errors in publish target
2023-05-31 22:13:52 -04:00
John Colvin
a3f194d708
build (web): Upgrade web build to net7.0
2023-04-05 11:39:37 -04:00
John Colvin
d593eaf058
build: Upgrade TargetFramework to net7.0
...
We've been using several net7.0 preview features for a while now. Now that a
stable net7.0 release is available, it is time upgrade officially. This also
aids the effort to build csharp on Linux, where these preview features didn't
work out of the box. Lastly, trying to make these preview features work would
be a waste of time, as namespaces/interfaces in the official release have
changed in a way that isn't backwards compatible w/ the preview features.
2023-03-07 16:17:39 -05:00
John Colvin
55d021ccb1
fix build (publish): Copy libspark.dll to publish dir
...
Bugs (fixed):
* Spark.exe generated by the installer crashes immediately on launch because
it cannot find the libspark.dll.
Cause: Sure enough, libspark.dll isn't in the install folder
(AppData\Roaming\bts\Spark)
* Build libspark explicitly
* Fix libspark.dll copy src path
2023-02-07 16:41:11 -05:00
John Colvin
edae3c9ab7
build (refactor): Remove 'zip' opt from publish_spark
...
The slight convenience afforded by this opt doesn't seem worth the
additional complexity. This script produces a self-contained application
folder. Decisions on what to do with that folder (whether or not to zip
it, etc.) are best left upstream.
2022-12-23 11:40:35 -05:00
John Colvin
6142a08db6
build (client): Copy libspark.dll to 'publish' dir
...
This dll isn't automatically copied when 'dotnet publish' is executed, because
dotnet core isn't really integrated with cpp
2022-09-21 00:17:31 -05:00
John Colvin
c8eb51c303
build (refactor): Move web build scripts to tools/py
...
Even though they're specific to the web CMakeLists proj, it's good to have all
build scripts in one place
2022-09-21 00:17:31 -05:00
John Colvin
4160233a58
build: Get rid of redundant setup_builds.sh
...
The new build_sparkd.py script handles both configuration and actual build
2022-09-21 00:17:31 -05:00
John Colvin
c5f79f754b
build: Compile sparkd w/ newer gcc v11
2022-09-21 00:17:31 -05:00
John Colvin
f5c8c29f5a
build: Migrate web build to net6.0
...
Clean up the web build process a bit while we're at it
* Add 'custom_commands' to run npm install in CMakeLists
* Generate tsconfig files for CMake preset configurations
* Rename local variables to _snake_case in CMakeLists
2022-09-21 00:14:38 -05:00
John Colvin
c3d9443a89
build: Automate venv activation in server build
2022-09-21 00:14:38 -05:00
John Colvin
1d7d5858d5
build: Add script to build sparkd (server)
...
Similar to the py script used to build spark (client), 'build_spark.py'.
2022-09-21 00:14:38 -05:00
John Colvin
8792f24c5d
refactor (build): Move '_exit' to common module logging
...
Also rename 'exit_msg' since 'exit' is already a builtin fn
2022-09-21 00:14:38 -05:00
John Colvin
76d35b16eb
refactor (build): Change SparkPaths to return Path objs
2022-09-21 00:14:38 -05:00
John Colvin
81f7fe72ab
refactor (build): Move CWD & SparkPaths to common module file_utils
2022-09-21 00:14:38 -05:00
John Colvin
45421eedce
chore: Move 'CME' specific script to 'cme' dir
2022-09-19 17:50:40 -05:00
John Colvin
8ecb3118e4
refactor (script): Use Path type rather than str
2022-09-19 17:50:40 -05:00
John Colvin
3fdb10890d
chore: Rename scripts w/ consistent grammar
2022-09-19 17:50:40 -05:00
John Colvin
2a6224c88d
chore: Move py scripts/utils into 'py' dir
2022-09-19 17:50:40 -05:00
John Colvin
8d6ddc8250
chore: Remove unused legacy scripts
2022-09-19 17:50:40 -05:00
John Colvin
6cc8590a1c
build: Use venv python to execute buildspark.py
...
Previously, the virtual environment was activated in the Proto3 build target.
Since the proto3 build target is executed once per proto file, and 91 proto
files are processed during the client cs build, this added significant time to
the build. For example, on [John's]my laptop, activating the venv takes ~0.15s,
which amounts to ~9.55 secs per build.
2022-09-19 17:50:40 -05:00
John Colvin
063d908775
build: Remove unused legacy build script
2022-09-19 17:50:40 -05:00
John Colvin
93565f0ebf
fix (jenkins): Update jenkins build procedures for spark-crypto
2022-09-19 17:50:40 -05:00
John Colvin
1d7fcf5d18
build: Move ':create_venv' fn to its own cmd script
...
So jenkins scripts can reference it as well as buildspark.cmd
2022-09-19 17:50:40 -05:00
John Colvin
897d20f12f
build: Refactor buildspark.py so 'build' fn can be imported
...
This way, jenkins build/deploy py scripts can import 'buildspark.build', and thus
don't have to than re-invent the 'build' wheel
2022-09-19 17:50:40 -05:00
John Colvin
a928925252
build: Add 'publish' target to build script for jenkins
2022-09-19 17:50:39 -05:00
John Colvin
4088affa15
fix (sparkd clang): Use 'clang' c compiler w/ 'clang++'
...
Otherwise cmake picks 'cc' by default
Bugs (fixed):
* Sparkd crashes due to strange runtime error related to multithreaded access
of std::promise in clang builds
2022-09-19 17:50:39 -05:00
John Colvin
82ac189ac9
refactor: Strip 'Wrapper' from 'DeferrableActionWrapper' name
2022-08-10 14:26:27 -04:00
John Colvin
bbadbf8e16
build: Move .cmake files to cmake dir (from tools)
2022-06-03 10:42:32 -04:00
John Colvin
f8059cc87e
build: Add verbosity opt to buildspark.py
2022-06-02 17:44:38 -04:00
John Colvin
5e1cac251b
fix: Actually copy untracked files in git-save.py
2022-04-19 11:42:38 -04:00
John Colvin
ff9b4f5b2f
build: Upgrade dotnet core 5.0 -> 6.0
2022-04-19 11:42:38 -04:00
John Colvin
ccdc033c60
build (client): Activate py venv before generating cpp protos
...
Finally, the client can be built from a shell outside of the venv
2022-02-28 14:21:31 -05:00
John Colvin
ed864cae5d
style: Format cmake files
2022-02-28 14:21:31 -05:00
John Colvin
33e2f4b6ff
build: Use appropriate debugtype arg for debug/release
2022-02-28 14:21:30 -05:00
John Colvin
3dfbc2635a
build: Set CMP0076 explicitly to remove warning
2022-02-04 17:41:29 -05:00
John Colvin
293fc233f7
Add git-save script to backup changed files
2022-02-04 17:41:29 -05:00
John Colvin
a99f95853a
refactor: Abstract out argparse/file utils from buildspark.py
2022-02-04 17:41:29 -05:00
John Colvin
7d7ccc67e0
build: Fix typo in buildspark.py
...
* Replace literal '2022' w/ var 'year'
2022-02-04 17:41:29 -05:00
John Colvin
9314911cc8
build (client): Activate venv in msbuild target
...
Now buildspark.py can run outside of venv
2022-01-23 15:25:32 -05:00
John Colvin
67dc07c4f5
build (client): Add cli opts to build cpp and/or csharp
2022-01-23 15:25:06 -05:00
John Colvin
40890f9ad2
build: Upgrade client build to vs 17 2022
...
If vs 17 2022 isn't installed, buildspark.py should still work for vs 16 2019
2022-01-23 13:17:46 -05:00
John Colvin
1b9ac61588
Add save-log script to backup log file
...
The current date and time is appended to the log file name
2022-01-22 12:46:52 -05:00
John Colvin
f0d86b92fb
build: Add target opt to build cmd
2021-12-29 13:18:46 -05:00