Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bump for tracking upstream updates + Action for checking + badge for bump #38

Merged
merged 3 commits into from
Nov 3, 2023
Merged
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
16 changes: 16 additions & 0 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Automatic version updates'

on:
schedule:
# minute hour dom month dow (UTC)
- cron: '00 15 * * *'
# enable manual trigger of version updates
workflow_dispatch:
jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: ZOSOpenTools/meta/actions@main
env:
GITHUB_TOKEN: ${{ secrets.BUMP_TOKEN }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Automatic version updates](https://github.com/ZOSOpenTools/m4port/actions/workflows/bump.yml/badge.svg)](https://github.com/ZOSOpenTools/m4port/actions/workflows/bump.yml)

# m4port
[GNU M4](https://www.gnu.org/software/m4/m4.html) is an implementation of the traditional Unix macro processor. It is mostly SVR4 compatible although it has some extensions (for example, handling more than 9 positional parameters to macros).

Expand Down
15 changes: 6 additions & 9 deletions buildenv
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#
# Set up environment variables for general build tool to operate
#
# bump: m4-version /M4_VERSION="(.*)"/ https://ftp.gnu.org/gnu/m4/|re:/m4-([\d.]+).tar.gz/$1/|semver:*
M4_VERSION="1.4.19"

export ZOPEN_BUILD_LINE="STABLE"

ZOPEN_TARBALL_DIR=m4-1.4.19
export ZOPEN_STABLE_URL="https://ftp.gnu.org/gnu/m4/${ZOPEN_TARBALL_DIR}.tar.gz"
export ZOPEN_STABLE_URL="https://ftp.gnu.org/gnu/m4/m4-${M4_VERSION}.tar.gz"
export ZOPEN_STABLE_DEPS="curl gzip make m4"
ZOPEN_GIT_DIR=m4
export ZOPEN_DEV_URL="git://git.savannah.gnu.org/${ZOPEN_GIT_DIR}.git"
export ZOPEN_DEV_URL="git://git.savannah.gnu.org/m4.git"
export ZOPEN_DEV_DEPS="comp_clang git make m4 help2man perl texinfo xz autoconf automake gettext rsync patch gzip tar gperf sed grep libtool autoconf zoslib"
export ZOPEN_DEV_BRANCH="branch-1.4"

Expand All @@ -18,7 +16,7 @@ zopen_post_buildenv()
if [ "${ZOPEN_BUILD_LINE}x" = "STABLEx" ]; then
export ZOPEN_BOOTSTRAP=skip
# -std=c11 required for max_align_t typedef in stddef.h
export ZOPEN_EXTRA_CFLAGS="-std=c11 -fgnu89-inline -I\${ZOPEN_ROOT}/${ZOPEN_GIT_DIR}/lib -I\${ZOPEN_ROOT}/patches/PR1/include"
export ZOPEN_EXTRA_CFLAGS="-std=c11 -fgnu89-inline -I\${ZOPEN_ROOT}/m4/lib -I\${ZOPEN_ROOT}/patches/PR1/include"
else
export ZOPEN_COMP=CLANG
fi
Expand Down Expand Up @@ -56,4 +54,3 @@ totalTests:$totalTests
expectedFailures:4
ZZ
}

Loading