Periodic commit
This commit is contained in:
@@ -153,6 +153,21 @@ Rotate the key by building with a new value and shipping the new binary. The
|
||||
Nix package accepts the same value via `callPackage ./nix/package.nix {
|
||||
apiKey = "…"; }`; the flake itself never embeds one.
|
||||
|
||||
#### Version + API key in one configure
|
||||
|
||||
`APP_VERSION` and `API_KEY` are independent CMake cache variables, so pass
|
||||
both — plus the build type — in a single configure:
|
||||
|
||||
```sh
|
||||
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug \
|
||||
-DAPP_VERSION="1.2.3" \
|
||||
-DAPI_KEY="${{ secrets.PORTAL_API_KEY }}"
|
||||
cmake --build build
|
||||
```
|
||||
|
||||
`-D` values always win over the `APP_VERSION` / `API_KEY` environment
|
||||
variables, which `nix develop` seeds from the ambient environment.
|
||||
|
||||
### Building with Nix
|
||||
|
||||
The flake supports `x86_64-linux` and `aarch64-linux` (the deployment
|
||||
|
||||
Reference in New Issue
Block a user