Fixed OS detection logic to allow compiling with MYSYS cmake on Windows #407
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: Linting and style checking | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare | |
run: | | |
sudo apt-get update | |
sudo apt-get install luarocks | |
sudo luarocks install luacheck | |
- name: Lint | |
run: make lint | |
clangformat: | |
name: clangformat | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare clang-format | |
run: | | |
sudo apt-get update | |
sudo apt-get install clang-format | |
- name: Format | |
run: make format | |
stylua: | |
name: stylua | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: JohnnyMorganz/stylua-action@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
version: latest | |
# CLI arguments | |
args: --color always --check lua/ |