Skip to content

Commit

Permalink
Merge pull request #40 from v1gnesh/main
Browse files Browse the repository at this point in the history
Add bump for tracking upstream updates + Action for checking + badge for bump
  • Loading branch information
IgorTodorovskiIBM authored Nov 5, 2023
2 parents 13c444a + 1e44035 commit 18fa498
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
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@main
- uses: ZOSOpenTools/meta/actions@main
env:
GITHUB_TOKEN: ${{ secrets.BUMP_TOKEN }}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# makeport
[![Automatic version updates](https://github.com/ZOSOpenTools/makeport/actions/workflows/bump.yml/badge.svg)](https://github.com/ZOSOpenTools/makeport/actions/workflows/bump.yml)

# mak
Place to share information about configure/build of GNU Make for z/OS (only deltas to open source)

# pre-reqs
Expand Down
13 changes: 6 additions & 7 deletions buildenv
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#
# Set up environment variables for general build tool to operate
#
export ZOPEN_BUILD_LINE="STABLE"
MAKE_VERSION="4.4.1"
# bump: make-version /MMAKE_VERSION="(.*)"/ https://ftp.gnu.org/gnu/make/|re:/make-([\d.]+).tar.gz/$1/|semver:*
# Deliberately misspelt so that CMAKE's regex also doesn't catch this
MMAKE_VERSION="4.4.1"

export ZOPEN_STABLE_URL="https://ftp.gnu.org/gnu/make/make-$MAKE_VERSION.tar.gz"
export ZOPEN_BUILD_LINE="STABLE"
export ZOPEN_STABLE_URL="https://ftp.gnu.org/gnu/make/make-${MMAKE_VERSION}.tar.gz"
export ZOPEN_STABLE_DEPS="curl gzip tar m4 perl make zoslib"

export ZOPEN_DEV_URL="https://git.savannah.gnu.org/git/make.git"
Expand All @@ -21,7 +20,7 @@ install_make()

check_make()
{
(cd "${ZOPEN_ROOT}/make-$MAKE_VERSION/tests" && perl ./run_make_tests.pl -srcdir ../ -make ../make 2>&1)
(cd "${ZOPEN_ROOT}/make-$MMAKE_VERSION/tests" && perl ./run_make_tests.pl -srcdir ../ -make ../make 2>&1)
}

zopen_check_results()
Expand Down

0 comments on commit 18fa498

Please sign in to comment.