|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: [push, pull_request] |
| 4 | + |
| 5 | +jobs: |
| 6 | + lua: |
| 7 | + strategy: |
| 8 | + fail-fast: false |
| 9 | + matrix: |
| 10 | + os: [linux, macos, macos-arm64] |
| 11 | + lua: [lua=5.1, lua=5.2, lua=5.3, lua=5.4, luajit=2.0, luajit=2.1] |
| 12 | + include: |
| 13 | + - os: linux |
| 14 | + runner: ubuntu-22.04 |
| 15 | + - os: macos |
| 16 | + runner: macos-13 |
| 17 | + - os: macos-arm64 |
| 18 | + runner: macos-14 |
| 19 | + exclude: |
| 20 | + - os: macos-arm64 |
| 21 | + lua: luajit=2.0 |
| 22 | + name: ${{ matrix.os }} (${{ matrix.lua }}) |
| 23 | + runs-on: ${{ matrix.runner }} |
| 24 | + steps: |
| 25 | + # Checks-out the repository under $GITHUB_WORKSPACE. |
| 26 | + - uses: actions/checkout@v4 |
| 27 | + - name: Install Lua (${{ matrix.lua }}) |
| 28 | + run: | |
| 29 | + pip install hererocks |
| 30 | + hererocks lua_install -r^ --${{ matrix.lua }} |
| 31 | + env: |
| 32 | + MACOSX_DEPLOYMENT_TARGET: 11.0 |
| 33 | + - name: Build lua-simdjson |
| 34 | + run: | |
| 35 | + source lua_install/bin/activate |
| 36 | + luarocks make |
| 37 | + # - name: Run tests |
| 38 | + # run: | |
| 39 | + # source lua_install/bin/activate |
| 40 | + # luarocks install lua-cjson2 |
| 41 | + # luarocks install busted |
| 42 | + # busted --verbose |
| 43 | + |
| 44 | + windows: |
| 45 | + strategy: |
| 46 | + fail-fast: false |
| 47 | + matrix: |
| 48 | + lua: [lua=5.1, lua=5.2, lua=5.3, lua=5.4, luajit=2.0, luajit=2.1] |
| 49 | + runs-on: windows-2022 |
| 50 | + steps: |
| 51 | + # Checks-out the repository under $GITHUB_WORKSPACE. |
| 52 | + - uses: actions/checkout@v4 |
| 53 | + - name: Install Lua (${{ matrix.lua }}) |
| 54 | + run: | |
| 55 | + pip install hererocks |
| 56 | + hererocks lua_install -r@3a142ce --${{ matrix.lua }} |
| 57 | + - name: Build lua-simdjson |
| 58 | + run: | |
| 59 | + .\lua_install\bin\activate |
| 60 | + luarocks make |
| 61 | + # - name: Run tests |
| 62 | + # run: | |
| 63 | + # .\lua_install\bin\activate |
| 64 | + # luarocks install lua-cjson2 |
| 65 | + # luarocks install busted |
| 66 | + # busted --verbose |
0 commit comments