2024-07-02 23:47:26 +08:00
|
|
|
name: "Build and check Lexilla on macOS"
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
2024-09-04 19:01:58 +08:00
|
|
|
runs-on: macos-latest
|
2024-07-02 23:47:26 +08:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
cpp_compiler: [clang++]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Scintilla source
|
|
|
|
run: |
|
|
|
|
(cd .. && wget --no-verbose https://www.scintilla.org/scintilla500.zip)
|
|
|
|
(cd .. && unzip scintilla500.zip)
|
|
|
|
- name: Unit Test
|
2024-09-04 19:01:58 +08:00
|
|
|
run: (cd test/unit && make DEBUG=1 CXX=${{matrix.cpp_compiler}} --jobs=$(getconf _NPROCESSORS_ONLN) test)
|
2024-07-02 23:47:26 +08:00
|
|
|
- name: Build Lexilla
|
2024-09-04 19:01:58 +08:00
|
|
|
run: (cd src && make DEBUG=1 CXX=${{matrix.cpp_compiler}} --jobs=$(getconf _NPROCESSORS_ONLN))
|
2024-07-02 23:47:26 +08:00
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: liblexilla.dylib
|
|
|
|
path: bin/liblexilla.dylib
|
|
|
|
- name: Test lexing and folding
|
2024-09-04 19:01:58 +08:00
|
|
|
run: (cd test && make DEBUG=1 CXX=${{matrix.cpp_compiler}} --jobs=$(getconf _NPROCESSORS_ONLN) test)
|
2024-07-02 23:47:26 +08:00
|
|
|
- name: CheckLexilla C Example
|
2024-09-04 19:01:58 +08:00
|
|
|
run: (cd examples/CheckLexilla && make DEBUG=1 --jobs=$(getconf _NPROCESSORS_ONLN) check)
|
2024-07-02 23:47:26 +08:00
|
|
|
- name: SimpleLexer Example
|
2024-09-04 19:01:58 +08:00
|
|
|
run: (cd examples/SimpleLexer && make DEBUG=1 CXX=${{matrix.cpp_compiler}} --jobs=$(getconf _NPROCESSORS_ONLN) check)
|