chore: update links #190
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
name: lua | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
style: | |
runs-on: ubuntu-22.04 | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: JohnnyMorganz/stylua-action@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --check . | |
version: "0.14.0" | |
- uses: jidicula/[email protected] | |
with: | |
clang-format-version: "17" | |
check-path: lua | |
test: | |
runs-on: ubuntu-22.04 | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: leafo/gh-actions-lua@v9 | |
with: | |
luaVersion: luajit-2.1.0-beta3 | |
- name: Symlink luajit | |
run: | | |
pushd .lua/bin | |
ln -s lua luajit | |
popd | |
- name: Build extension (release) | |
run: | | |
pushd lua/wincent/commandt/lib | |
make | |
popd | |
- name: Run unit tests (release) | |
run: bin/test | |
- name: Run stress tests (release, benchmarks) | |
run: TIMES=1 bin/benchmarks/matcher.lua | |
# Repeat the tests in DEBUG mode (ie. with `assert()` calls active). | |
- name: Build extension (debug) | |
run: | | |
pushd lua/wincent/commandt/lib | |
DEBUG=1 make | |
popd | |
- name: Run unit tests (debug) | |
run: bin/test | |
- name: Run stress tests (debug, benchmarks) | |
run: TIMES=1 bin/benchmarks/matcher.lua |