Skip to content

Commit

Permalink
Try and debug the new job
Browse files Browse the repository at this point in the history
  • Loading branch information
NWilson committed Dec 8, 2024
1 parent 4045b9f commit 3b892f2
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
29 changes: 28 additions & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ jobs:
maint/RunPerlTest
chaffinch:
# Job to verify that the CMake "unity" build (single-file / jumbo build) passes.
# If this fails, it's usually because two different files define some file-static
# functions or macros which collide.
name: CMake unity build
runs-on: ubuntu-latest
steps:
Expand All @@ -250,8 +253,11 @@ jobs:
run: cd build && ctest -j3 --output-on-failure

heron:
# Job to verify that the tasks performed by PrepareRelease have been done. It is
# the committer's responsibility (currently) to run PrepareRelease themselves when
# making a PR, so that everything is kept in-sync.
name: Check for PrepareRelease cleanliness
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -263,4 +269,25 @@ jobs:

- name: Working directory clean
run: |
set +e
# XXX DEBUG
git status --porcelain
echo "STATUS: $?"
echo "DIFF"
git diff
echo "ENV"
env | sort
echo "lsb_release"
lsb_release -a
nroff --version
echo "locale"
locale -a
locale
# XXX DEBUG
[ -z "`git status --porcelain`" ]
echo "STATUS 2: $?"
12 changes: 10 additions & 2 deletions maint/PrepareRelease
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,16 @@ done

# Make pcre2demo.3 from the pcre2demo.c source file

# XXX
echo "FIRST DATE"
git log -n1 --date=format:"%d %B %Y" --format=%cd ../src/pcre2demo.c

echo "Making pcre2demo.3"
perl <<"END" >pcre2demo.3
use Time::Piece;
open(VH, "<", "../src/config.h.generic") || die "Failed to open src/config.h.generic\n";
open(IN, "../src/pcre2demo.c") || die "Failed to open src/pcre2demo.c\n";
open(OUT, ">pcre2demo.3") || die "Failed to open pcre2demo.3\n";
open(IN, "<", "../src/pcre2demo.c") || die "Failed to open src/pcre2demo.c\n";
open(OUT, ">", "pcre2demo.3") || die "Failed to open pcre2demo.3\n";
my $version;
while (<VH>)
{
Expand Down Expand Up @@ -146,6 +150,10 @@ perl <<"END" >pcre2demo.3
END
if [ $? != 0 ] ; then exit 1; fi

# XXX
echo "SECOND DATE"
git log -n1 --date=format:"%d %B %Y" --format=%cd ../src/pcre2demo.c


# Make HTML form of the documentation.

Expand Down

0 comments on commit 3b892f2

Please sign in to comment.