mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
build scripts: a target build stage for each IDE and for tests
GitOrigin-RevId: df3717d52e021a7e4aaa6ded53c15811bc32baca
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ed2812e3c8
commit
8eb871c05f
@@ -19,8 +19,8 @@ runs:
|
||||
- name: Build environment
|
||||
shell: bash
|
||||
# language=bash
|
||||
run: docker build . --target build_env --tag build_env
|
||||
run: docker build . --target intellij_idea --tag intellij_idea
|
||||
- name: Build .${{inputs.extension}}
|
||||
shell: bash
|
||||
# language=bash
|
||||
run: docker run --rm --user "$(id -u)" --volume ${PWD}:/community build_env -Dintellij.build.target.os=${{inputs.os}}
|
||||
run: docker run --rm --user "$(id -u)" --volume "${PWD}:/community" intellij_idea -Dintellij.build.target.os=${{inputs.os}}
|
||||
+11
-1
@@ -1,6 +1,6 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM registry.jetbrains.team/p/ij/docker-hub/ubuntu:20.04@sha256:8e5c4f0285ecbb4ead070431d29b576a530d3166df73ec44affc1cd27555141b AS build_env
|
||||
LABEL Description="Community Build Environment"
|
||||
LABEL Description="IDE Build Environment"
|
||||
RUN apt-get update && \
|
||||
apt-get install -y wget \
|
||||
tar \
|
||||
@@ -26,4 +26,14 @@ RUN git init /community && \
|
||||
git config --global --add safe.directory /community && \
|
||||
rm -rf /community/.git
|
||||
|
||||
FROM build_env AS tests_env
|
||||
LABEL Description="Tests Environment"
|
||||
ENTRYPOINT ["/bin/sh", "./tests.cmd"]
|
||||
|
||||
FROM build_env AS intellij_idea
|
||||
LABEL Description="IntelliJ IDEA Build Environment"
|
||||
ENTRYPOINT ["/bin/sh", "./installers.cmd"]
|
||||
|
||||
FROM build_env AS pycharm
|
||||
LABEL Description="PyCharm Build Environment"
|
||||
ENTRYPOINT ["/bin/sh", "./python/installers.cmd"]
|
||||
|
||||
@@ -71,8 +71,8 @@ Examples (`./` should be added only for Linux/macOS):
|
||||
You may call it directly from IDEA, see run configuration `Build IDEA Community Installers (current OS)` for an example.
|
||||
|
||||
#### Dockerized Build Environment
|
||||
To build installation packages inside a Docker container with preinstalled dependencies and tools, run the following command in `<IDEA_HOME>` directory (on Windows, use PowerShell):
|
||||
`docker run --rm -it -v ${PWD}:/community $(docker build -q . --target build_env)`
|
||||
To build installation packages inside a Docker container with preinstalled dependencies and tools, run the following command in `<IDEA_HOME>` directory (on Windows, use PowerShell):
|
||||
`docker run --rm -it --volume "${PWD}:/community" "$(docker build --quiet . --target intellij_idea)"`
|
||||
|
||||
## Running IntelliJ IDEA
|
||||
To run the IntelliJ IDEA built from source, choose **Run | Run** from the main menu. This will use the preconfigured run configuration "**IDEA**".
|
||||
|
||||
Reference in New Issue
Block a user