Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/scripts/build-headers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

set -eu #Needed so CI fails when anything is wrong
set -x

#Any arguments are passed to configure

cd src
./autogen.sh
./configure "$@" --disable-check-runtime-deps --enable-werror
make headers
48 changes: 26 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ concurrency:

env:
DEBIAN_FRONTEND: noninteractive
RUNTEST_JOBS: 32

jobs:

rip-and-test:
runs-on: ubuntu-24.04
runs-on: ubuntu-26.04
timeout-minutes: 45
steps:
- name: Dump GitHub context
Expand Down Expand Up @@ -56,7 +57,7 @@ jobs:
- name: Test
run: |
set -x
scripts/rip-environment runtests -p -d
scripts/rip-environment runtests -j $RUNTEST_JOBS -p -d
- name: Upload UI smoke screenshots
if: always()
uses: actions/upload-artifact@v7
Expand All @@ -74,7 +75,7 @@ jobs:
.github/scripts/verify-clean-repo.sh

rip-headless:
runs-on: ubuntu-24.04
runs-on: ubuntu-26.04
timeout-minutes: 45
steps:
- name: Dump GitHub context
Expand Down Expand Up @@ -120,13 +121,13 @@ jobs:
- name: Test
run: |
set -x
scripts/rip-environment runtests -p ./tests
scripts/rip-environment runtests -j $RUNTEST_JOBS -p ./tests
- name: Verify no untracked or modified files after test
run: |
.github/scripts/verify-clean-repo.sh

rip-rtai:
runs-on: ubuntu-24.04
runs-on: ubuntu-26.04
timeout-minutes: 45
steps:
- name: Dump GitHub context
Expand Down Expand Up @@ -155,7 +156,7 @@ jobs:
.github/scripts/verify-clean-repo.sh

rip-and-test-clang:
runs-on: ubuntu-24.04
runs-on: ubuntu-26.04
timeout-minutes: 45
steps:
- name: Dump GitHub context
Expand Down Expand Up @@ -188,7 +189,7 @@ jobs:
- name: Test
run: |
set -x
scripts/rip-environment runtests -p -d
scripts/rip-environment runtests -j $RUNTEST_JOBS -p -d
- name: Upload UI smoke screenshots
if: always()
uses: actions/upload-artifact@v7
Expand All @@ -206,7 +207,7 @@ jobs:
.github/scripts/verify-clean-repo.sh

cppcheck:
runs-on: ubuntu-24.04
runs-on: ubuntu-26.04
timeout-minutes: 45
steps:
- name: Checkout repository
Expand All @@ -217,16 +218,19 @@ jobs:
- name: Install dependencies
run: |
set -x
.github/scripts/use-main-ubuntu-mirror.sh
sudo apt-get -q update
.github/scripts/install-deps.sh
sudo apt-get --yes install cppcheck
- name: Build headers
run: |
set -x
.github/scripts/build-headers.sh --with-realtime=uspace
- name: Cppcheck
run: |
set -x
scripts/cppcheck.sh

shellcheck:
runs-on: ubuntu-24.04
runs-on: ubuntu-26.04
timeout-minutes: 45
steps:
- name: Checkout repository
Expand All @@ -249,7 +253,7 @@ jobs:
scripts/shellcheck.sh

htmldocs:
runs-on: ubuntu-24.04
runs-on: ubuntu-26.04
timeout-minutes: 60
steps:
- name: Dump GitHub context
Expand All @@ -275,15 +279,15 @@ jobs:
run: scripts/manpage-name-check.py --enforce docs/build/man
- name: Check for derived-id section references
run: scripts/docs-anchor-check.py --enforce
- name: Verify no untracked or modified files after build
run: |
#*.po and documentation.pot are modifyed by build. Ignore them for now.
.github/scripts/verify-clean-repo.sh ':(exclude)docs/po/*.po' ':(exclude)docs/po/documentation.pot'
- name: HTML checks
run: |
set -x
#-w sets warn only, remove to generate a CI failure on error
scripts/htmlcheck.sh -w
- name: Verify no untracked or modified files after build
run: |
#*.po and documentation.pot are modified by build. Ignore them for now.
.github/scripts/verify-clean-repo.sh ':(exclude)docs/po/*.po' ':(exclude)docs/po/documentation.pot'
- name: Tar linuxcnc-doc
run: |
set -x
Expand All @@ -301,7 +305,7 @@ jobs:
timeout-minutes: 75
strategy:
matrix:
runner: ["ubuntu-24.04", "ubuntu-24.04-arm"]
runner: ["ubuntu-26.04", "ubuntu-26.04-arm"]
image: ["debian:bookworm", "debian:trixie", "debian:sid"]
include:
- allow_fail: False
Expand All @@ -314,7 +318,7 @@ jobs:
image: ${{ matrix.image }}
# IPC_OWNER is needed for shmget IPC_CREAT
# SYS_ADMIN is needed for shmctl IPC_SET
options: --cap-add=IPC_OWNER --cap-add=SYS_ADMIN
options: --cap-add=IPC_OWNER --cap-add=SYS_ADMIN --security-opt apparmor=unconfined --security-opt seccomp=unconfined
continue-on-error: ${{ matrix.allow_fail }}
steps:
- name: Dump GitHub context
Expand Down Expand Up @@ -363,7 +367,7 @@ jobs:
passwd -d testrunner
adduser testrunner sudo
chmod 0777 $(find tests/ -type d) # make test dirs world-writable for the testrunner
su -c "./scripts/runtests -p -d ./tests" testrunner
su -c "./scripts/runtests -j $RUNTEST_JOBS -p -d ./tests" testrunner
- name: Verify no untracked or modified files after test
run: |
.github/scripts/verify-clean-repo.sh ':(exclude)VERSION' ':(exclude)debian/changelog'
Expand Down Expand Up @@ -391,7 +395,7 @@ jobs:
if-no-files-found: error

package-indep:
runs-on: ubuntu-24.04
runs-on: ubuntu-26.04
timeout-minutes: 75
strategy:
matrix:
Expand Down Expand Up @@ -444,7 +448,7 @@ jobs:
.github/scripts/build-package-indep.sh
- name: Verify no untracked or modified files after build
run: |
#*.po and documentation.pot are modifyed by build. Ignore them for now.
#*.po and documentation.pot are modified by build. Ignore them for now.
.github/scripts/verify-clean-repo.sh ':(exclude)VERSION' ':(exclude)debian/changelog' ':(exclude)docs/po/*.po' ':(exclude)docs/po/documentation.pot'
- name: Install debian packages
run: |
Expand Down Expand Up @@ -481,7 +485,7 @@ jobs:
if: (github.event_name == 'release' && github.event.action == 'published') || startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
runs-on: ubuntu-24.04
runs-on: ubuntu-26.04
steps:
- name: Download artifacts
uses: actions/download-artifact@v8
Expand Down
2 changes: 2 additions & 0 deletions debian/control.top.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Build-Depends:
autoconf,
automake,
bwidget (>= 1.7),
bubblewrap,
parallel,
desktop-file-utils,
intltool,
libboost-python-dev,
Expand Down
Loading
Loading