Skip to content

Commit

Permalink
GIT-specific settings, with CI setup and github workflow for Ubuntu, …
Browse files Browse the repository at this point in the history
…Windows and Macos

Co-authored-by: Fabrice Le Fessant <[email protected]>
  • Loading branch information
2 people authored and nberth committed May 20, 2022
1 parent 6e9cde8 commit 27788c5
Show file tree
Hide file tree
Showing 6 changed files with 207 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: MacOS Workflow

on:
pull_request:
branches:
- master
- gcos
push:
branches:
- master
- gcos

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest

runs-on: ${{ matrix.os }}

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Set git user
run: |
git config --global user.name github-actions
git config --global user.email [email protected]
- run: |
brew install automake libtool help2man texinfo bison
echo "/usr/local/opt/bison/bin" >> $GITHUB_PATH
echo "/usr/local/opt/texinfo/bin" >> $GITHUB_PATH
- name: ./build_aux/bootstrap
run: |
cd build_aux
./bootstrap
- run: |
mkdir _build
- name: configure
run: |
cd _build
../configure --enable-cobc-internal-checks --enable-debug --prefix /opt/cobol/gnucobol-gcos --exec-prefix /opt/cobol/gnucobol-gcos
- name: make
run: |
cd _build
make
- name: install
run: |
cd _build
sudo make install
61 changes: 61 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Ubuntu Workflow

on:
pull_request:
branches:
- master
- gcos
push:
branches:
- master
- gcos

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
# - macos-latest

include:
- os: ubuntu-latest
skip_test: true


runs-on: ${{ matrix.os }}

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Set git user
run: |
git config --global user.name github-actions
git config --global user.email [email protected]
- run: |
sudo apt-get install libdb5.3-dev help2man
- run: |
./build_aux/bootstrap
- run: |
mkdir _build
- name: configure
run: |
cd _build
../configure --enable-cobc-internal-checks --enable-debug --prefix /opt/cobol/gnucobol-gcos --exec-prefix /opt/cobol/gnucobol-gcos
- name: make
run: |
cd _build
make
- name: install
run: |
cd _build
make install
62 changes: 62 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Windows Workflow

on:
pull_request:
branches:
- master
- gcos
push:
branches:
- master
- gcos

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- windows-latest

runs-on: ${{ matrix.os }}

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Set git user
run: |
git config --global user.name github-actions
git config --global user.email [email protected]
- uses: msys2/setup-msys2@v2
with:
update: true
install: autoconf automake libtool make mingw-w64-x86_64-db mingw-w64-x86_64-gmp libdb-devel mingw-w64-x86_64-gcc flex bison gmp-devel help2man texinfo

- run: |
./build_aux/bootstrap
shell: msys2 {0}
- run: |
mkdir _build
shell: msys2 {0}
- name: configure
run: |
cd _build
../configure --enable-cobc-internal-checks --enable-debug --prefix /opt/cobol/gnucobol-gcos --exec-prefix /opt/cobol/gnucobol-gcos
shell: msys2 {0}

- name: make
run: |
cd _build
make
shell: msys2 {0}

- name: install
run: |
cd _build
make install
shell: msys2 {0}

12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Makefile.in
/_build
aclocal.m4
aminclude_static.am
autom4te.cache
config.h.in
/configure
/doc/gnucobol.info
/doc/stamp-vti
/doc/version.texi
/tarstamp.h
*~
13 changes: 13 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
build:
stage: build
image: registry.ocamlpro.com/ocamlpro/ocaml-docker-images:4.12
before_script:
- sudo apk add --upgrade --no-cache make patch gcc curl coreutils musl-dev opam git gmp-dev pkgconf libressl-dev emacs cmake g++ boost boost-dev boost-static autoconf automake libtool help2man texinfo bison make gcc db-dev flex gawk bash
script:
- ./build_aux/bootstrap
- mkdir _build
- cd _build
- ../configure --enable-cobc-internal-checks --enable-debug --prefix /opt/cobol/gnucobol-gcos --exec-prefix /opt/cobol/gnucobol-gcos
- make
- sudo make install

Loading

0 comments on commit 27788c5

Please sign in to comment.