forked from OCamlPro/gnucobol
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GIT-specific settings, with CI setup and github workflow for Ubuntu, …
…Windows and Macos Co-authored-by: Fabrice Le Fessant <[email protected]>
- Loading branch information
Showing
6 changed files
with
207 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
Oops, something went wrong.