HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //home/ubuntu/neovim/.deps/build/src/lua_compat53/.github/workflows/compat53-tests.yml
name: compat53-tests
on:
  push:
    branches: ["master"]
  pull_request:
jobs:
  compat53-test:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        include:
          - luaVersion: "lua=5.1"
            compiler: gcc
            external: false
          - luaVersion: "lua=5.1"
            compiler: gcc
            external: true
          - luaVersion: "lua=5.1"
            compiler: g++
            external: true
          - luaVersion: "lua=5.1"
            compiler: clang
            external: false
          - luaVersion: "luajit=@v2.1 --compat=none"
            compiler: gcc
            external: false
          - luaVersion: "luajit=@v2.1 --compat=none"
            compiler: gcc
            external: true
          - luaVersion: "luajit=@v2.1 --compat=all"
            compiler: gcc
            external: false
          - luaVersion: "luajit=@v2.1 --compat=all"
            compiler: gcc
            external: true
          - luaVersion: "lua=5.2"
            compiler: gcc
            external: false
          - luaVersion: "lua=5.2"
            compiler: gcc
            external: true
          - luaVersion: "lua=5.2"
            compiler: g++
            external: true
    steps:
      - uses: actions/checkout@v2
      - name: install Lua
        run: |
          pip3 install --user hererocks
          ~/.local/bin/hererocks old --${{ matrix.luaVersion }}
          test -e old/bin/lua || (cd old/bin && ln -s luajit* lua)
          ~/.local/bin/hererocks new --lua=5.3
      - name: compile C modules
        run: |
          export CC=${{ matrix.compiler }} CFLAGS="-Wall -Wextra -Ic-api -O2 -fPIC"
          export DEF="" SRC=""
          if [ "${{ matrix.external }}" = true ]; then DEF="-DCOMPAT53_PREFIX=compat53" SRC="c-api/compat-5.3.c"; fi
          ${CC} ${CFLAGS} -Iold/include ${DEF} -shared -o old/testmod.so tests/testmod.c ${SRC}
          ${CC} ${CFLAGS} -Inew/include ${DEF} -shared -o new/testmod.so tests/testmod.c ${SRC}
          ${CC} ${CFLAGS} -Iold/include ${DEF} -shared -o old/compat53.so ltablib.c lutf8lib.c lstrlib.c liolib.c ${SRC}
      - name: run test scripts
        run: |
          (cd old && bin/lua ../tests/test.lua) > old.txt
          (cd new && bin/lua ../tests/test.lua) > new.txt
      - name: compare script output
        run: diff old.txt new.txt || true