Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and test using GitHub actions workflow #2505

Closed
wants to merge 2 commits into from
Closed
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
100 changes: 100 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: build
on:
pull_request:
push:
branches:
- master

jobs:
ubuntu:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get install -y gcc libtool make autoconf automake flex bison
- name: CI-Build
run: |
git submodule update --init
autoreconf -i
./configure --with-oniguruma=builtin
make -j4
make check || (cat test-suite.log && exit 1)
cat test-suite.log

macos:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Install automake
run: |
curl -L -O https://ftp.gnu.org/gnu/automake/automake-1.16.5.tar.xz
tar xvf automake-1.16.5.tar.xz
cd automake-1.16.5
./configure
make -j4
sudo make install
- name: Install libtool
run: |
curl -L -O https://ftp.gnu.org/gnu/libtool/libtool-2.4.7.tar.xz
tar xvf libtool-2.4.7.tar.xz
cd libtool-2.4.7
./configure
make -j4
sudo make install
- name: Install autoconf
run: |
curl -L -O https://ftp.gnu.org/gnu/autoconf/autoconf-2.71.tar.gz
tar xvf autoconf-2.71.tar.gz
cd autoconf-2.71
./configure
make -j4
sudo make install
- name: Install bison
run: |
curl -L -O https://ftp.gnu.org/gnu/bison/bison-3.8.2.tar.xz
tar xvf bison-3.8.2.tar.xz
cd bison-3.8.2
./configure
make -j4
sudo make install
- name: Install flex
run: |
curl -L -O https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz
tar xvf flex-2.6.4.tar.gz
cd flex-2.6.4
./configure
make -j4
sudo make install
- name: CI-Build
run: |
git submodule update --init
autoreconf -i
./configure --with-oniguruma=builtin
make -j4
make check || (cat test-suite.log && exit 1)
cat test-suite.log

msys2-mingw64:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Set git to use LF
shell: cmd
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
update: true
install: git gcc libtool make autoconf automake flex bison
- name: CI-Build
run: |
git submodule update --init
autoreconf -i
./configure --with-oniguruma=builtin --disable-shared --enable-static --enable-all-static
make -j4
make check || (cat test-suite.log && exit 1)
cat test-suite.log
2 changes: 1 addition & 1 deletion modules/oniguruma
Submodule oniguruma updated 74 files
+5 −4 .gitignore
+4 −2 CMakeLists.txt
+96 −0 HISTORY
+159 −161 INSTALL
+1 −1 Makefile.am
+23 −17 README
+78 −3 README.md
+1 −13 README_japanese
+9 −0 autogen.sh
+5 −4 compile
+24 −10 config.guess
+20 −7 config.sub
+4 −4 configure.ac
+3 −3 depcomp
+1 −1 dist.info
+13 −2 doc/API
+294 −284 doc/API.ja
+3 −3 doc/FAQ
+7 −7 doc/FAQ.ja
+97 −15 doc/RE
+328 −243 doc/RE.ja
+695 −695 doc/UNICODE_PROPERTIES
+9 −5 index.html
+9 −5 index_ja.html
+171 −197 install-sh
+5 −3 make_win32.bat
+5 −3 make_win64.bat
+3 −3 missing
+1 −1 sample/Makefile.am
+1 −1 sample/posix.c
+2 −0 src/Makefile.am
+93 −93 src/Makefile.windows
+6 −0 src/config.h.cmake.in
+4 −4 src/euc_jp.c
+3 −1 src/gperf_fold_key_conv.py
+3 −1 src/gperf_unfold_key_conv.py
+7 −0 src/make_unicode_egcb.sh
+264 −0 src/make_unicode_egcb_data.py
+6 −4 src/make_unicode_fold_data.py
+4 −3 src/make_unicode_property.sh
+376 −357 src/make_unicode_property_data.py
+5 −2 src/onigposix.h
+41 −13 src/oniguruma.h
+2,756 −2,551 src/regcomp.c
+13 −3 src/regenc.c
+13 −4 src/regenc.h
+53 −53 src/regerror.c
+1,457 −769 src/regexec.c
+5 −5 src/regext.c
+2 −2 src/reggnu.c
+241 −228 src/regint.h
+2,075 −700 src/regparse.c
+272 −176 src/regparse.h
+6 −2 src/regposix.c
+21 −6 src/regsyntax.c
+2 −2 src/regversion.c
+3 −3 src/sjis.c
+241 −243 src/st.c
+394 −173 src/unicode.c
+1,406 −0 src/unicode_egcb_data.c
+10 −4 src/unicode_fold1_key.c
+10 −4 src/unicode_fold2_key.c
+10 −4 src/unicode_fold3_key.c
+14,694 −13,252 src/unicode_property_data.c
+75 −25 src/unicode_property_data_posix.c
+10 −4 src/unicode_unfold_key.c
+6 −41 src/utf8.c
+14 −5 test-driver
+4 −0 test/.gitignore
+9 −4 test/Makefile.am
+1,079 −0 test/test_utf8.c
+118 −0 test/testc.c
+52 −0 test/testu.c
+2 −1 windows/testc.c