forked from 1b-agent/opencadstudio-upstream
Add Nix-based CI workflows
Co-authored-by: dichhead <[email protected]>
This commit is contained in:
1 parent
b356baa5e5
commit
9a926badf6
7 files changed
+129
-39
No files matched your search
@@ -131,6 +131,26 @@ Change the language from the application settings. The browser version also uses
|
||||
|
||||
## Build from source
|
||||
|
||||
### Nix
|
||||
|
||||
The GitHub workflows use the repository flake for a reproducible Rust, web, and automation toolchain. To match CI locally:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/HakanSeven12/OpenCADStudio.git
|
||||
cd OpenCADStudio
|
||||
nix develop
|
||||
```
|
||||
|
||||
From that shell, run the same commands CI does, for example:
|
||||
|
||||
```bash
|
||||
cargo fmt --all --check
|
||||
cargo test --locked --workspace --lib
|
||||
trunk build --locked --release --public-url /app/ --dist dist/app --html-output index.html web-app.html
|
||||
python3 scripts/test_site.py
|
||||
python3 scripts/test_release.py
|
||||
```
|
||||
|
||||
### Desktop
|
||||
|
||||
Requirements:
|
||||
|
||||
Reference in new issue
Block a user