Skip to content

Commit

Permalink
fix(ci): properly utilize the installed version of clang
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Apr 15, 2024
1 parent 9fd3725 commit 44e485b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-macosx-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
with:
ref: ${{ github.ref }}
- name: Install C/C++ Compiler
id: install_cc
uses: rlalik/setup-cpp-compiler@master
with:
compiler: clang-latest
Expand Down Expand Up @@ -63,11 +64,11 @@ jobs:
luarocks --verbose pack tree-sitter-orgmode
- name: "[HACK]: Set default compiler flags for MacOS systems"
run: |
luarocks config --scope=system -- variables.LIBFLAG "-bundle -undefined dynamic_lookup -all_load -std=c++11"
luarocks config --lua-version=5.1 --scope=system -- variables.LIBFLAG "-bundle -undefined dynamic_lookup -all_load -std=c++11"
- name: Install `tree-sitter-norg` Package
env:
CC: clang
CXX: clang++
CC: ${{ steps.install_cc.outputs.cc }}
CXX: ${{ steps.install_cc.outputs.cxx }}
run: |
luarocks --verbose --local --lua-version=5.1 install tree-sitter-norg
luarocks --verbose pack tree-sitter-norg
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/build-macosx-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
with:
ref: ${{ github.ref }}
- name: Install C/C++ Compiler
id: install_cc
uses: rlalik/setup-cpp-compiler@master
with:
compiler: clang-latest
Expand Down Expand Up @@ -63,11 +64,11 @@ jobs:
luarocks --verbose pack tree-sitter-orgmode
- name: "[HACK]: Set default compiler flags for MacOS systems"
run: |
luarocks config --scope=system -- variables.LIBFLAG "-bundle -undefined dynamic_lookup -all_load -std=c++11"
luarocks config --lua-version=5.1 --scope=system -- variables.LIBFLAG "-bundle -undefined dynamic_lookup -all_load -std=c++11"
- name: Install `tree-sitter-norg` Package
env:
CC: clang
CXX: clang++
CC: ${{ steps.install_cc.outputs.cc }}
CXX: ${{ steps.install_cc.outputs.cxx }}
run: |
luarocks --verbose --local --lua-version=5.1 install tree-sitter-norg
luarocks --verbose pack tree-sitter-norg
Expand Down

0 comments on commit 44e485b

Please sign in to comment.