File tree Expand file tree Collapse file tree 3 files changed +48
-3
lines changed Expand file tree Collapse file tree 3 files changed +48
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : gdb-static-pipeline
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - ' *'
7
+ push :
8
+ tags :
9
+ - ' v*'
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+
18
+ - name : Install dependencies
19
+ run : sudo apt-get install -y wget
20
+
21
+ - name : Build
22
+ run : make build -j$((`nproc`+1))
23
+
24
+ - name : Pack
25
+ run : make pack
26
+
27
+ - name : Upload artifact
28
+ uses : actions/upload-artifact@v4
29
+ with :
30
+ name : gdb-static
31
+ path : build/artifacts/gdb-static*.tar.gz
32
+
33
+ - name : Publish release
34
+ if : github.event_name == 'push'
35
+ uses : softprops/action-gh-release@v2
36
+ with :
37
+ files : build/artifacts/gdb-static*.tar.gz
Original file line number Diff line number Diff line change 1
1
ARCHS := x86_64 arm aarch64 powerpc
2
2
TARGETS := $(addprefix build-, $(ARCHS ) )
3
+ PACK_TARGETS := $(addprefix pack-, $(ARCHS ) )
3
4
4
- .PHONY : clean help download_packages build patch-gdb build-docker-image $(TARGETS )
5
+ .PHONY : clean help download_packages build patch-gdb build-docker-image $(TARGETS ) $( PACK_TARGETS )
5
6
6
7
help :
7
8
@echo " Usage:"
@@ -47,6 +48,13 @@ $(TARGETS): build-%: download-packages patch-gdb build-docker-image
47
48
--rm --volume .:/app/gdb gdb-static env TERM=xterm-256color \
48
49
/app/gdb/src/build.sh $* /app/gdb/build/ /app/gdb/src/gdb_static.patch
49
50
51
+ pack : $(PACK_TARGETS )
52
+
53
+ $(PACK_TARGETS ) : pack-% : build-%
54
+ if [ ! -f " build/artifacts/gdb-static-$* .tar.gz" ]; then \
55
+ tar -czf " build/artifacts/gdb-static-$* .tar.gz" -C " build/artifacts/$* " . ; \
56
+ fi
57
+
50
58
clean :
51
59
rm -rf build
52
60
# Kill and remove all containers of image gdb-static
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ script_dir=$(dirname "$0")
7
7
# List of package URLs to download
8
8
PACKAGE_URLS=(
9
9
" https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.17.tar.gz"
10
- " https://gmplib. org/download /gmp/gmp-6.3.0.tar.xz"
11
- " https://www.mpfr .org/mpfr-current /mpfr-4.2.1.tar.xz"
10
+ " https://ftp.gnu. org/pub/gnu /gmp/gmp-6.3.0.tar.xz"
11
+ " https://ftp.gnu .org/pub/gnu/ mpfr/mpfr-4.2.1.tar.xz"
12
12
" https://ftp.gnu.org/gnu/gdb/gdb-15.1.tar.xz"
13
13
)
14
14
You can’t perform that action at this time.
0 commit comments