-
Notifications
You must be signed in to change notification settings - Fork 627
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into optscript-docs
- Loading branch information
Showing
1,765 changed files
with
122,004 additions
and
14,639 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
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,6 @@ | ||
* text=auto | ||
|
||
/win32/*.bat text eol=crlf | ||
/win32/*.sln text eol=crlf | ||
/win32/*.vcxproj text eol=crlf | ||
/win32/*.vcxproj.filters text eol=crlf |
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
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,81 @@ | ||
name: cross compile with android-ndk on ubuntu | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
cross-compile: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
build-machine-os: [ubuntu-22.04, ubuntu-20.04] | ||
|
||
runs-on: ${{ matrix.build-machine-os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- run: sudo apt-get -y -o APT::Immediate-Configure=false update | ||
- run: sudo apt-get -y -o APT::Immediate-Configure=false install gcc make automake autoconf file | ||
|
||
- run: ./autogen.sh | ||
|
||
- name: Run ./configure ... | ||
run: | | ||
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md#environment-variables-3 | ||
[ -n "$ANDROID_NDK_LATEST_HOME" ] && { | ||
export ANDROID_NDK_HOME="$ANDROID_NDK_LATEST_HOME" | ||
export ANDROID_NDK_ROOT="$ANDROID_NDK_LATEST_HOME" | ||
} | ||
BUILD_MACHINE_OS_TYPE=$(uname | tr A-Z a-z) | ||
BUILD_MACHINE_OS_ARCH=$(uname -m) | ||
TOOLCHAIN_BASE_DIR=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/$BUILD_MACHINE_OS_TYPE-$BUILD_MACHINE_OS_ARCH | ||
TOOLCHAIN_BIN_DIR=$TOOLCHAIN_BASE_DIR/bin | ||
SYSROOT=$TOOLCHAIN_BASE_DIR/sysroot | ||
export CC=$TOOLCHAIN_BIN_DIR/armv7a-linux-androideabi21-clang | ||
export AR=$TOOLCHAIN_BIN_DIR/llvm-ar | ||
export RANLIB=$TOOLCHAIN_BIN_DIR/llvm-ranlib | ||
export CFLAGS="--sysroot $SYSROOT -Qunused-arguments -Os -fpic" | ||
export CPPFLAGS="--sysroot $SYSROOT -Qunused-arguments" | ||
export LDFLAGS="--sysroot $SYSROOT" | ||
TARGET=armv7a-linux-androideabi | ||
COLOR_PURPLE='\033[0;35m' # Purple | ||
COLOR_GREEN='\033[0;32m' # Green | ||
COLOR_OFF='\033[0m' # Reset | ||
echo() { | ||
printf "%b\n" "$*" | ||
} | ||
run() { | ||
echo "$COLOR_PURPLE==>$COLOR_OFF $COLOR_GREEN$@$COLOR_OFF" | ||
eval "$*" | ||
} | ||
run ./configure \ | ||
--host=$TARGET \ | ||
--disable-iconv \ | ||
--disable-xml \ | ||
--disable-json \ | ||
--disable-yaml \ | ||
--disable-pcre2 \ | ||
CC="$CC" \ | ||
CFLAGS="\"$CFLAGS\"" \ | ||
CPPFLAGS="\"$CPPFLAGS\"" \ | ||
LDFLAGS="\"$LDFLAGS\"" \ | ||
AR=$AR \ | ||
RANLIB=$RANLIB | ||
- run: make V=1 | ||
|
||
# pie executable or shared object | ||
- run: file ctags | grep 'ELF 32-bit LSB .*, ARM, EABI5' |
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
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,44 @@ | ||
name: cross compile with mingw-w64 on ubuntu | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
cross-compile: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
build-machine-os: [ubuntu-22.04, ubuntu-20.04] | ||
target: [i686-w64-mingw32,x86_64-w64-mingw32] | ||
|
||
runs-on: ${{ matrix.build-machine-os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- run: sudo apt-get -y -o APT::Immediate-Configure=false update | ||
- run: sudo apt-get -y -o APT::Immediate-Configure=false install mingw-w64 gcc make automake autoconf file | ||
|
||
- run: ./autogen.sh | ||
|
||
- name: Run ./configure ... | ||
run: | | ||
./configure \ | ||
--host=${{ matrix.target }} \ | ||
--disable-iconv \ | ||
--disable-xml \ | ||
--disable-json \ | ||
--disable-yaml \ | ||
--disable-pcre2 \ | ||
CC=${{ matrix.target }}-gcc \ | ||
CFLAGS='-v' \ | ||
AR=${{ matrix.target }}-ar \ | ||
RANLIB=${{ matrix.target }}-ranlib \ | ||
WINDRES=${{ matrix.target }}-windres | ||
- run: make V=1 | ||
|
||
- run: file ctags.exe | grep PE32 |
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,50 @@ | ||
# Citre (https://github.com/universal-ctags/citre) is a readtags frontend for | ||
# Emacs. This workflow runs unit tests of Citre to make sure changes in | ||
# readtags doesn't break the behavior that Citre expects. | ||
|
||
# Ref: https://github.com/universal-ctags/citre/issues/58#issuecomment-846229409 | ||
|
||
name: run Citre tests on GNU/Linux | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
testing: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
CC: gcc | ||
READTAGS: '${{ github.workspace }}/readtags' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: update package information | ||
run: sudo apt-get -y -o APT::Immediate-Configure=false update | ||
- name: install tools and libraries | ||
run: sudo apt-get -y -o APT::Immediate-Configure=false install pkg-config automake libjansson-dev libyaml-dev libseccomp-dev libxml2-dev | ||
- name: autogen.sh | ||
run: ./autogen.sh | ||
- name: report the version of cc | ||
run: $CC --version | ||
- name: report the version of make | ||
run: make --version | ||
- name: configure | ||
run: ./configure | ||
- name: make | ||
run: make | ||
- name: report features | ||
run: ./ctags --list-features | ||
- name: install Emacs | ||
run: sudo apt-get -y -o APT::Immediate-Configure=false install emacs | ||
- name: checkout Citre repo | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: 'universal-ctags/citre' | ||
path: 'citre' | ||
- name: run Citre unit tests for tags backend | ||
working-directory: 'citre' | ||
run: make test-tags |
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
Oops, something went wrong.