Update Building the source code
parent
68e291094e
commit
bf71a6bad5
1 changed files with 5 additions and 7 deletions
|
@ -16,10 +16,8 @@
|
|||
|
||||
1. Clone the repository. Make sure to initialize submodules (e.g. `git clone --recurse-submodules`).
|
||||
2. Place the Oodle library files into `lib/oodle`. See the linked page above for how to acquire them.
|
||||
3. Build the images with
|
||||
```sh
|
||||
# The Linux image also serves as a base for the Windows image
|
||||
docker build -t dtmt-ci-base-linux -f .ci/image/Dockerfile.linux .ci/image
|
||||
# Ignore this one, if you build for Linux
|
||||
docker build -t dtmt-ci-base-msvc -f .ci/image/Dockerfile.msvc .ci/image
|
||||
```
|
||||
3. Build the Linux build image, which also serves as base for the Windows cross-platform build: `docker build -t dtmt-ci-base-linux -f .ci/image/Dockerfile.linux .ci/image`
|
||||
4. (Optional) Build the Windows build image: `docker build -t dtmt-ci-base-msvc -f .ci/image/Dockerfile.msvc .ci/image`
|
||||
5. Run the build command
|
||||
5.1. Linux: `docker run --rm -ti --user $(id -u) -v ./:/src/dtmt dtmt-ci-base-linux cargo --color always build --profile release-lto --locked`
|
||||
5.2. Windows: `docker run --rm -ti --user $(id -u) -v ./:/src/dtmt dtmt-ci-base-msvc cargo --color always build --release --target x86_64-pc-windows-msvc --locked -Zbuild-std`
|
Loading…
Add table
Add a link
Reference in a new issue