Skip to content
Open
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
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ on:
pull_request:
types: [opened, reopened, review_requested, synchronize]

env:
CPPFLAGS: "-I/usr/include"
LDFLAGS: "-L/usr/lib"
LD_LAIBRARY_PATH: "/usr/lib"

jobs:
run-tests:
runs-on: ubuntu-latest
Expand All @@ -18,7 +13,7 @@ jobs:
- name: Install prerequisite softwares
run: |
sudo apt-get update -y
sudo apt-get install -y libncurses6 libncurses-dev ncurses-doc libgmp10 libgmp-dev m4 libtool help2man pkg-config gettext automake autoconf libxml2 libxml2-dev libxml2-utils libcjson1 libcjson-dev build-essential libdb-dev
sudo apt-get install -y libncurses-dev libgmp-dev m4 libtool help2man pkg-config gettext automake libxml2-dev libcjson-dev build-essential libdb-dev

- uses: actions/checkout@v4

Expand Down
29 changes: 2 additions & 27 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,43 +5,18 @@ on:
pull_request:
types: [opened, reopened, review_requested, synchronize]

env:
CPPFLAGS: "-I/usr/include"
LDFLAGS: "-L/usr/lib"
LD_LAIBRARY_PATH: "/usr/lib"

jobs:
run-tests:
cppcheck:
runs-on: ubuntu-latest
steps:

- name: Install prerequisite softwares
run: |
sudo apt-get update -y
sudo apt-get install -y libncurses6 libncurses-dev ncurses-doc libgmp10 libgmp-dev m4 libtool help2man pkg-config gettext automake autoconf libxml2 libxml2-dev libxml2-utils libcjson1 libcjson-dev build-essential libdb-dev cppcheck
sudo apt-get install -y cppcheck

- uses: actions/checkout@v4

- name: Download vbisam
run: |
if [ ! -d vbisam ]; then \
git clone https://github.com/opensourcecobol/opensource-cobol; \
mv opensource-cobol/vbisam .; \
rm -rf opensource-cobol; \
fi

- name: Install vbisam
working-directory: vbisam
run: |
./configure --prefix=/usr/
make
sudo make install

- name: Build GnuCOBOL
run: |
./configure --prefix=/usr/ --with-xml2 --with-vbisam
make

- name: Check cobc/
working-directory: cobc/
run: ./cppcheck
Expand Down