Skip to content

Commit 3647e4d

Browse files
committed
Merge branch 'ci_improvemens' into ci_docker_prototyping
2 parents b7b67b0 + 027717a commit 3647e4d

5 files changed

Lines changed: 30 additions & 29 deletions

File tree

.github/scripts/add-linuxcnc-repository.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ case $DIST in
1212
;;
1313
*)
1414
GPGTMP=$(mktemp -d /tmp/.gnupgXXXXXX)
15-
gpg --homedir $GPGTMP --keyserver hkp://keyserver.ubuntu.com --recv-key e43b5a8e78cc2927
16-
gpg --homedir $GPGTMP --export 'LinuxCNC Archive Signing Key' | sudo tee /etc/apt/keyrings/linuxcnc.gpg > /dev/null
15+
gpg --homedir "$GPGTMP" --keyserver hkp://keyserver.ubuntu.com --recv-key e43b5a8e78cc2927
16+
gpg --homedir "$GPGTMP" --export 'LinuxCNC Archive Signing Key' | sudo tee /etc/apt/keyrings/linuxcnc.gpg > /dev/null
1717
;;
1818
esac
1919
sudo apt-get --quiet update

.github/scripts/build-rip.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ set -x
77

88
cd src
99
./autogen.sh
10-
./configure $@ --disable-check-runtime-deps --enable-werror
10+
./configure "$@" --disable-check-runtime-deps --enable-werror
1111
make -O -j$((1+$(nproc))) default pycheck V=1

.github/scripts/install-rtai.sh

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,22 @@ set -x
55

66
DIST=$1
77

8-
#To install the RTAI deb's from linuxcnc base
9-
#.github/scripts/add-linuxcnc-repository.sh $DIST
10-
#sudo apt-get --yes install linux-headers-5.4.279-rtai-amd64 linux-image-5.4.279-rtai-amd64 rtai-modules-5.4.279
11-
#-----
12-
#To install the RTAI deb's from NTULINUX git
13-
TMPDIR=$(mktemp -d)
14-
(
15-
cd $TMPDIR
16-
curl --no-progress-meter -fLO https://github.com/NTULINUX/RTAI/releases/download/v5.3.4/linux-headers-5.4.302-rtai-amd64_5.4.302-rtai-amd64-1_amd64.deb
17-
curl --no-progress-meter -fLO https://github.com/NTULINUX/RTAI/releases/download/v5.3.4/linux-image-5.4.302-rtai-amd64_5.4.302-rtai-amd64-1_amd64.deb
18-
curl --no-progress-meter -fLO https://github.com/NTULINUX/RTAI/releases/download/v5.3.4/rtai-modules-5.4.302_5.3.4-linuxcnc_amd64.deb
19-
)
20-
sudo dpkg -i \
21-
$TMPDIR/linux-headers-5.4.302-rtai-amd64_5.4.302-rtai-amd64-1_amd64.deb \
22-
$TMPDIR/linux-image-5.4.302-rtai-amd64_5.4.302-rtai-amd64-1_amd64.deb \
23-
$TMPDIR/rtai-modules-5.4.302_5.3.4-linuxcnc_amd64.deb
24-
rm -rf $TMPDIR
25-
#-----
8+
if false; then
9+
#To install the RTAI deb's from linuxcnc base
10+
.github/scripts/add-linuxcnc-repository.sh "$DIST"
11+
sudo apt-get --yes install linux-headers-5.4.279-rtai-amd64 linux-image-5.4.279-rtai-amd64 rtai-modules-5.4.279
12+
else
13+
#To install the RTAI deb's from NTULINUX git
14+
TMPDIR=$(mktemp -d)
15+
(
16+
cd "$TMPDIR"
17+
curl --no-progress-meter -fLO https://github.com/NTULINUX/RTAI/releases/download/v5.3.4/linux-headers-5.4.302-rtai-amd64_5.4.302-rtai-amd64-1_amd64.deb
18+
curl --no-progress-meter -fLO https://github.com/NTULINUX/RTAI/releases/download/v5.3.4/linux-image-5.4.302-rtai-amd64_5.4.302-rtai-amd64-1_amd64.deb
19+
curl --no-progress-meter -fLO https://github.com/NTULINUX/RTAI/releases/download/v5.3.4/rtai-modules-5.4.302_5.3.4-linuxcnc_amd64.deb
20+
)
21+
sudo dpkg -i \
22+
"$TMPDIR/linux-headers-5.4.302-rtai-amd64_5.4.302-rtai-amd64-1_amd64.deb" \
23+
"$TMPDIR/linux-image-5.4.302-rtai-amd64_5.4.302-rtai-amd64-1_amd64.deb" \
24+
"$TMPDIR/rtai-modules-5.4.302_5.3.4-linuxcnc_amd64.deb"
25+
rm -rf "$TMPDIR"
26+
fi

.github/scripts/verify-clean-repo.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ set -eu #Needed so CI fails when anything is wrong
44

55
if [ $# -gt 0 ]; then
66
#Arguments are pathspecs for git status, used to exclude files for this test
7-
if [ -n "$(git status -u --porcelain -- $@)" ]; then
7+
if [ -n "$(git status -u --porcelain -- "$@")" ]; then
88
echo "Build produced untracked or modified files:----------------------------------------"
9-
git status -u --porcelain -- $@
9+
git status -u --porcelain -- "$@"
1010
echo "-----------------------------------------------------------------------------------"
11-
echo "Pathspec is: \"$@\", withouth pathspec:--------------------------------------------"
11+
echo "Pathspec is: \"$*\", withouth pathspec:--------------------------------------------"
1212
git status -u --porcelain
1313
echo "-----------------------------------------------------------------------------------"
1414
exit 1
1515
else
1616
echo Repo is clean
17-
echo "Pathspec is: \"$@\", withouth pathspec:--------------------------------------------"
17+
echo "Pathspec is: \"$*\", withouth pathspec:--------------------------------------------"
1818
git status -u --porcelain
1919
echo "-----------------------------------------------------------------------------------"
2020
exit 0

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ jobs:
158158
set -x
159159
.github/scripts/build-doc.sh
160160
- name: Verify no untracked or modified files after build
161-
continue-on-error: true #ToDo: Check what to do with the changed .po files
162161
run: |
163-
.github/scripts/verify-clean-repo.sh
162+
#*.po and documentation.pot are modifyed by build. Ignore them for now.
163+
.github/scripts/verify-clean-repo.sh ':(exclude)docs/po/*.po' ':(exclude)docs/po/documentation.pot'
164164
165165
package-arch:
166166
runs-on: ${{ matrix.runner }}
@@ -281,9 +281,9 @@ jobs:
281281
git config --global --add safe.directory ${PWD}
282282
.github/scripts/build-package-indep.sh
283283
- name: Verify no untracked or modified files after build
284-
continue-on-error: true #ToDo: Check what to do with the changed .po files
285284
run: |
286-
.github/scripts/verify-clean-repo.sh ':(exclude)VERSION' ':(exclude)debian/changelog'
285+
#*.po and documentation.pot are modifyed by build. Ignore them for now.
286+
.github/scripts/verify-clean-repo.sh ':(exclude)VERSION' ':(exclude)debian/changelog' ':(exclude)docs/po/*.po' ':(exclude)docs/po/documentation.pot'
287287
- name: Install debian packages
288288
run: |
289289
set -x

0 commit comments

Comments
 (0)