Skip to content

Commit a4d2741

Browse files
committed
test 7
1 parent 1fed1d0 commit a4d2741

File tree

2 files changed

+49
-47
lines changed

2 files changed

+49
-47
lines changed

.github/script/dfbsd.sh

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#!/bin/sh
2+
pwd
3+
ls -lah
4+
whoami
5+
env
6+
uname -a
7+
env IGNORE_OSVERSION=yes pkg install -y ccache-static
8+
ccache --max-size="200M"
9+
echo "WITH_CCACHE_BUILD=yes" >> /etc/make.conf
10+
{
11+
{
12+
patch -N /usr/ports/Mk/bsd.port.subdir.mk << EOF
13+
@@ -173,6 +173,11 @@
14+
TARGETS+= realinstall
15+
TARGETS+= reinstall
16+
TARGETS+= tags
17+
+TARGETS+= stage
18+
+TARGETS+= stage-qa
19+
+TARGETS+= check-plist
20+
+TARGETS+= run-depends-list
21+
+TARGETS+= build-depends-list
22+
23+
.for __target in ${TARGETS}
24+
. if !target(${__target})
25+
EOF
26+
} || true
27+
}
28+
grep -n '^TARGETS+=' /usr/ports/Mk/bsd.port.subdir.mk
29+
echo 'OVERLAYS=/'"$(pwd)"'/' >> /etc/make.conf
30+
echo 'WITH_DEBUG=yes' >> /etc/make.conf
31+
echo 'DEBUG_FLAGS+= -O0' >> /etc/make.conf
32+
cat /etc/make.conf
33+
make run-depends-list | sort | uniq | grep -v '^==\|xlibre' | cut -d '/' -f 4- | xargs pkg install -y
34+
make build-depends-list | sort | uniq | grep -v '^==\|xlibre\|xorg-macros' | cut -d '/' -f 4- | xargs pkg install -y
35+
make -C /usr/ports/devel/xorg-macros/ clean
36+
make stage
37+
make stage-qa
38+
make check-plist
39+
export PACKAGES="$(pwd)/pkgs/"
40+
mkdir $PACKAGES
41+
make package
42+
export PACKAGES="$(pwd)/pkgs/"
43+
ABI="$(pkg config abi)"
44+
mv $PACKAGES/All $PACKAGES/$ABI
45+
pkg repo -l $PACKAGES/$ABI
46+
pkg install -y tree
47+
cd $PACKAGES/$ABI
48+
tree -h -D -C -H -./ --houtro=/dev/null -T 'XLibre binaries for FreeBSD' ./ > ./index.html

.github/workflows/test.yaml

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -8,50 +8,4 @@ jobs:
88
- uses: vmactions/dragonflybsd-vm@v1
99
with:
1010
run: |
11-
pwd
12-
ls -lah
13-
whoami
14-
env
15-
uname -a
16-
env IGNORE_OSVERSION=yes pkg install -y ccache-static
17-
ccache --max-size="200M"
18-
echo "WITH_CCACHE_BUILD=yes" >> /etc/make.conf
19-
{
20-
{
21-
patch -N /usr/ports/Mk/bsd.port.subdir.mk << EOF
22-
@@ -173,6 +173,11 @@
23-
TARGETS+= realinstall
24-
TARGETS+= reinstall
25-
TARGETS+= tags
26-
+TARGETS+= stage
27-
+TARGETS+= stage-qa
28-
+TARGETS+= check-plist
29-
+TARGETS+= run-depends-list
30-
+TARGETS+= build-depends-list
31-
32-
.for __target in ${TARGETS}
33-
. if !target(${__target})
34-
EOF
35-
} || true
36-
}
37-
grep -n '^TARGETS+=' /usr/ports/Mk/bsd.port.subdir.mk
38-
echo 'OVERLAYS=/'"$(pwd)"'/' >> /etc/make.conf
39-
echo 'WITH_DEBUG=yes' >> /etc/make.conf
40-
echo 'DEBUG_FLAGS+= -O0' >> /etc/make.conf
41-
cat /etc/make.conf
42-
make run-depends-list | sort | uniq | grep -v '^==\|xlibre' | cut -d '/' -f 4- | xargs pkg install -y
43-
make build-depends-list | sort | uniq | grep -v '^==\|xlibre\|xorg-macros' | cut -d '/' -f 4- | xargs pkg install -y
44-
make -C /usr/ports/devel/xorg-macros/ clean
45-
make stage
46-
make stage-qa
47-
make check-plist
48-
export PACKAGES="$(pwd)/pkgs/"
49-
mkdir $PACKAGES
50-
make package
51-
export PACKAGES="$(pwd)/pkgs/"
52-
ABI="$(pkg config abi)"
53-
mv $PACKAGES/All $PACKAGES/$ABI
54-
pkg repo -l $PACKAGES/$ABI
55-
pkg install -y tree
56-
cd $PACKAGES/$ABI
57-
tree -h -D -C -H -./ --houtro=/dev/null -T 'XLibre binaries for FreeBSD' ./ > ./index.html
11+
./.github/script/dfbsd.sh

0 commit comments

Comments
 (0)