Skip to content

Commit

Permalink
use ci dist for MSYS1
Browse files Browse the repository at this point in the history
  • Loading branch information
GitMensch committed Sep 29, 2024
1 parent 181180f commit 476980d
Showing 1 changed file with 28 additions and 15 deletions.
43 changes: 28 additions & 15 deletions .github/workflows/windows-msys1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,26 @@ jobs:

steps:

- name: Set git user
run: |
git config --global user.name github-actions
git config --global user.email [email protected]
#- name: Set git user
# run: |
# git config --global user.name github-actions
# git config --global user.email [email protected]

#- name: Checkout code
# uses: actions/checkout@v4

- name: Checkout code
uses: actions/checkout@v4
- name: Get CI dist tarball
uses: actions/download-artifact@v4
with:
name: gnucobol-ci source distribution

- name: Build environment setup
run: |
tar -xvf gnucobol*.tar.* --strip-components=1
mkdir build
# sed -i 'N;s/else/else :;/g' .\configure
# sed -i 's/\} else \:;/} else/g' .\configure
# sed -i 's/#else \:;/#else/g' .\configure
- name: Setup environment
shell: pwsh
Expand Down Expand Up @@ -255,18 +268,18 @@ jobs:
curl -L https://raw.githubusercontent.com/DaveGamble/cJSON/v%MINGW_CJSON_VERS%/cJSON.h -o .\libcob\cJSON.h
- name: Bootstrap GnuCOBOL
run: |
sed -i 's/AM_PROG_AR/m4_ifdef\(\[AM_PROG_AR\], \[AM_PROG_AR\]\)/g' .\configure.ac
sed -i 's/po extras doc tests/po extras tests/g' .\Makefile.am
bash -lc "./autogen.sh"
# - name: Bootstrap GnuCOBOL
# run: |
# sed -i 's/AM_PROG_AR/m4_ifdef\(\[AM_PROG_AR\], \[AM_PROG_AR\]\)/g' .\configure.ac
# sed -i 's/po extras doc tests/po extras tests/g' .\Makefile.am
# bash -lc "./autogen.sh"

- name: Configure GnuCOBOL
run: |
mkdir build
sed -i 'N;s/else/else :;/g' .\configure
sed -i 's/\} else \:;/} else/g' .\configure
sed -i 's/#else \:;/#else/g' .\configure
rem mkdir build
rem sed -i 'N;s/else/else :;/g' .\configure
rem sed -i 's/\} else \:;/} else/g' .\configure
rem sed -i 's/#else \:;/#else/g' .\configure
rem extra setting CPPFLAGS as " are wrong here
bash -lc "cd build && ../configure CPPFLAGS=\"-I../libcob\" %CFGOPT% --with-db --with-xml2 --with-json=local --with-curses=pdcurses --prefix=/mingw"
Expand Down

0 comments on commit 476980d

Please sign in to comment.