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

Migrate MacOS related testing at travis to GitHub actions from Travis-CI #2782

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/testing-mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: run units target on MacOS

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
testing:

strategy:
matrix:
os: [macos-11.0, macos-10.15]
compiler: [gcc, clang]

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

env:
CC: ${{ matrix.compiler }}
BUILDDIR: ${{ matrix.os }}-${{ matrix.compiler }}

steps:
- uses: actions/checkout@v2
- name: update package information
run: brew update
- name: install tools and libraries
# gdb and docutils need python@3.9.
# python@3.9 is not installed expectedly via gdb or docutils.
# Therefore we install libxml2 before installing before
# installing gdb and docutils. python@3.9 is installed well
# via libxml2.
run: |
brew install autoconf automake pkg-config jansson libyaml bash
brew install libxml2 || brew link --overwrite libxml2
brew install gdb docutils
- name: autogen.sh
run: ./autogen.sh
- name: report the version of cc
run: ${{ matrix.compiler }} --version
- name: report the version of make
run: make --version
- name: configure
run: |
mkdir -p ${{ matrix.os }}-"$CC"
(
cd $BUILDDIR
../configure --enable-debugging --enable-iconv
)
- name: make
run: make -C $BUILDDIR -j2
- name: report features
run: |
(
cd $BUILDDIR
./ctags --list-features
)
- name: make check
run: make -C $BUILDDIR check TRAVIS=1
- name: make roundtrip
run: make -C $BUILDDIR roundtrip TRAVIS=1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ master ]

jobs:
testing-O0_fixme:
testing:

runs-on: ubuntu-latest

Expand Down
12 changes: 0 additions & 12 deletions misc/travis-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,6 @@ if [ "$TARGET" = "Unix" ]; then
echo "Please execute 'make -C man QUICK=1 update-docs' and commit them."
exit 1
fi

BUILDDIR=${BUILDDIR0}
mkdir -p "${BUILDDIR}"
(
cd "${BUILDDIR}"
${CONFIGURE_CMDLINE}
make -j2
echo 'List features'
./ctags --list-features
echo 'Run "make check" (without gcov)'
make check roundtrip TRAVIS=1
)
fi

elif [ "$TARGET" = "Mingw32" ]; then
Expand Down