File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
build :
10
+ env :
11
+ TTY_ARG : " " # Disable interactive build mode in cicd since it does not contain a tty device.
12
+
10
13
strategy :
11
14
matrix :
12
15
build_type : ["build", "build-with-python"]
Original file line number Diff line number Diff line change 9
9
# simply build the files in the same job they are released.
10
10
jobs :
11
11
build_and_publish :
12
+ env :
13
+ TTY_ARG : " " # Disable interactive build mode in cicd since it does not contain a tty device.
14
+
12
15
runs-on : ubuntu-latest
13
16
steps :
14
17
- uses : actions/checkout@v4
27
30
- name : Publish release
28
31
uses : softprops/action-gh-release@v2
29
32
with :
30
- files : build/artifacts/gdb-static*.tar.gz
33
+ files : build/artifacts/gdb-static*.tar.gz
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ ALL_PACK_TARGETS := $(PACK_TARGETS) $(PYTHON_PACK_TARGETS)
11
11
SUBMODULE_PACKAGES := $(wildcard src/submodule_packages/* )
12
12
BUILD_PACKAGES_DIR := "build/packages"
13
13
14
+ # We would like to run in interactive mode when avaliable (non-ci usually).
15
+ # This is disabled by the ci automation manually.
16
+ TTY_ARG ?= -it
17
+
14
18
.PHONY : clean help download_packages build build-docker-image $(ALL_TARGETS ) $(ALL_PACK_TARGETS )
15
19
16
20
.NOTPARALLEL : build pack
@@ -36,7 +40,7 @@ build-docker-image: build/build-docker-image.stamp
36
40
37
41
build/download-packages.stamp : build/build-docker-image.stamp src/compilation/download_packages.sh
38
42
mkdir -p $(BUILD_PACKAGES_DIR )
39
- docker run -it --user $(shell id -u) :$(shell id -g) \
43
+ docker run $( TTY_ARG ) --user $(shell id -u) :$(shell id -g) \
40
44
--rm --volume .:/app/gdb gdb-static env TERM=xterm-256color \
41
45
/app/gdb/src/compilation/download_packages.sh /app/gdb/$(BUILD_PACKAGES_DIR ) /
42
46
touch build/download-packages.stamp
@@ -59,7 +63,7 @@ $(PYTHON_TARGETS): build-with-python-%:
59
63
60
64
_build-% : symlink-git-packages download-packages build-docker-image
61
65
mkdir -p build
62
- docker run -it --user $(shell id -u) :$(shell id -g) \
66
+ docker run $( TTY_ARG ) --user $(shell id -u) :$(shell id -g) \
63
67
--rm --volume .:/app/gdb gdb-static env TERM=xterm-256color \
64
68
/app/gdb/src/compilation/build.sh $* /app/gdb/build/ /app/gdb/src $(WITH_PYTHON )
65
69
You can’t perform that action at this time.
0 commit comments