fix compiler setup

This commit is contained in:
Jonathan Guzmán 2023-02-12 15:47:11 -06:00
parent 69076e87cb
commit e8a052eaa0
No known key found for this signature in database
GPG Key ID: C2956F1668BA042A

View File

@ -54,18 +54,16 @@ jobs:
- name: extra_path
shell: bash
run: echo "${{matrix.config.extra_path}}" >> $GITHUB_PATH
- name: configure
shell: cmake -P {0}
run: |
set(ENV{CC} ${{matrix.config.cc}})
set(ENV{CXX} ${{matrix.config.cxx}})
set(ENV{C_LD} ${{matrix.config.c_ld}})
set(ENV{CXX_LD} ${{matrix.config.cxx_ld}})
- name: install prerequisites
run: |
# asuming that python and pip are already installed
pip3 install meson ninja
- name: setup meson project
env: # set proper compilers and linkers for meson
CC: ${{matrix.config.cc}}
CXX: ${{matrix.config.cxx}}
C_LD: ${{matrix.config.c_ld}}
CXX_LD: ${{matrix.config.cxx_ld}}
run: |
# setup the build directory with tests and examples enabled
meson setup builddir -DSQLITECPP_BUILD_TESTS=true -DSQLITECPP_BUILD_EXAMPLES=true --force-fallback-for=sqlite3