|
13 | 13 |
|
14 | 14 | strategy:
|
15 | 15 | matrix:
|
16 |
| - version: [5.1.5, 5.2.4, 5.3.6, 5.4.3] |
| 16 | + version: [5.1.5, 5.2.4, 5.3.6, 5.4.7] |
17 | 17 |
|
18 | 18 | steps:
|
19 | 19 | - name: Build PUC-Rio Lua ${{ matrix.version }}
|
|
30 | 30 | run: |
|
31 | 31 | cd "lua-${LUA_VERSION}"
|
32 | 32 | sudo make install
|
33 |
| - - uses: actions/checkout@v2 |
| 33 | + - uses: actions/checkout@v4 |
34 | 34 | - name: Install build dependencies
|
35 | 35 | run: source .github/install_deps.bash
|
36 | 36 | - name: Build lgi and the test suite
|
@@ -59,30 +59,27 @@ jobs:
|
59 | 59 | name: Test on LuaJIT
|
60 | 60 | runs-on: ubuntu-latest
|
61 | 61 |
|
62 |
| - strategy: |
63 |
| - matrix: |
64 |
| - version: [2.0.5] |
65 |
| - |
66 | 62 | steps:
|
67 |
| - - name: Build LuaJIT ${{ matrix.version }} |
68 |
| - env: |
69 |
| - LUAJIT_VERSION: ${{ matrix.version }} |
70 |
| - LSAN_OPTIONS: exitcode=0 |
71 |
| - run: | |
72 |
| - wget "https://luajit.org/download/LuaJIT-${LUAJIT_VERSION}.tar.gz" |
73 |
| - tar xzvf "LuaJIT-${LUAJIT_VERSION}.tar.gz" |
74 |
| - cd "LuaJIT-${LUAJIT_VERSION}" |
75 |
| - make CC='gcc -g' |
| 63 | + - name: Set environment variable to hold LuaJIT checkout directory |
| 64 | + run: echo "LUAJIT_CHECKOUT=$(uuidgen)" >> "${{ github.env }}" |
| 65 | + - name: Checkout LuaJIT from github mirror |
| 66 | + uses: actions/checkout@v4 |
| 67 | + with: |
| 68 | + repository: LuaJIT/LuaJIT |
| 69 | + path: "${{ env.LUAJIT_CHECKOUT }}" |
| 70 | + - name: Build LuaJIT |
| 71 | + run: make -C "${{ env.LUAJIT_CHECKOUT }}" CC='gcc -g' |
76 | 72 | - name: Install LuaJIT ${{ matrix.version }}
|
77 |
| - env: |
78 |
| - LUAJIT_VERSION: ${{ matrix.version }} |
79 | 73 | run: |
|
80 |
| - cd "LuaJIT-${LUAJIT_VERSION}" |
81 |
| - sudo make install |
| 74 | + sudo make -C "${{ env.LUAJIT_CHECKOUT }}" install |
82 | 75 | sudo ln -frs /usr/local/bin/luajit-* /usr/local/bin/lua
|
83 | 76 | sudo ln -frs /usr/local/lib/libluajit-*.a /usr/local/lib/liblua.a
|
84 | 77 | sudo ln -frs /usr/local/include/luajit-*/* /usr/local/include/
|
85 |
| - - uses: actions/checkout@v2 |
| 78 | + - name: Set LUA_VERSION environment variable from LuaJIT's pkg-config file |
| 79 | + run: | |
| 80 | + lua_version=$(PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" pkg-config --variable=abiver luajit); |
| 81 | + echo "LUA_VERSION=${lua_version}" >> "${{ github.env }}" |
| 82 | + - uses: actions/checkout@v4 |
86 | 83 | - name: Install build dependencies
|
87 | 84 | run: source .github/install_deps.bash
|
88 | 85 | - name: Build lgi and the test suite
|
|
100 | 97 | env:
|
101 | 98 | LSAN_OPTIONS: suppressions=${{ github.workspace }}/.github/lsan.supp
|
102 | 99 | UBSAN_OPTIONS: print_stacktrace=1:report_error_type=1:halt_on_error=1:suppressions=${{ github.workspace }}/.github/ubsan.supp
|
103 |
| - LUA_VERSION: ${{ matrix.version }} |
104 | 100 | run: |
|
105 | 101 | source .github/find_asan_ubsan.bash "lgi/corelgilua51.so"
|
106 | 102 | source .github/test_make_install.bash
|
|
0 commit comments