Update Building the source code
parent
8459ca1582
commit
f96344903f
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@ The Docker images set up all the requirements and dependencies for both the nati
|
||||||
|
|
||||||
1. Clone the repository. Make sure to initialize submodules (e.g. `git clone --recurse-submodules`).
|
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 [Obtaining-the-Oodle-library](Obtaining-the-Oodle-library) for how to acquire them.
|
2. Place the Oodle library files into `lib/oodle`. See [Obtaining-the-Oodle-library](Obtaining-the-Oodle-library) for how to acquire them.
|
||||||
3. Build the Linux image, which also serves as base for the cross-platform Windows image: `docker build -t dtmt-ci-base-linux -f .ci/image/Dockerfile.linux .ci/image`
|
3. Build the Linux image, which also serves as base for the cross-platform Windows image: `docker build -t dtmt-ci-base-linux -f .ci/image/Dockerfile.linux .`
|
||||||
4. (Optional) Build the Windows image: `docker build -t dtmt-ci-base-msvc -f .ci/image/Dockerfile.msvc .ci/image`
|
4. (Optional) Build the Windows image: `docker build -t dtmt-ci-base-msvc -f .ci/image/Dockerfile.msvc .`
|
||||||
5. Run the build command:
|
5. Run the build command:
|
||||||
- Linux: `docker run --rm -ti --user $(id -u) -v ./:/src/dtmt dtmt-ci-base-linux cargo --color always build --profile release-lto --locked`
|
- Linux: `docker run --rm -ti --user $(id -u) -v ./:/src/dtmt dtmt-ci-base-linux cargo --color always build --profile release-lto --locked`
|
||||||
- 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`
|
- 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
Reference in a new issue