Update c-cpp.yml

This commit is contained in:
Vladimir Dubrovin 2026-03-27 18:25:52 +03:00
parent 46c714a87b
commit 408a734d43

View File

@ -32,15 +32,12 @@ jobs:
- name: Mac libraries - name: Mac libraries
if: ${{ startsWith(matrix.target, 'macos') }} if: ${{ startsWith(matrix.target, 'macos') }}
run: brew install pcre run: brew install pcre
- name: Test Mac PCRE
if: ${{ startsWith(matrix.target, 'macos') }}
run: echo "#include <pcre.h>\n int main(){return 0;}" | cc -x c -l pcre -o testpcre -
- name: ln Mac - name: ln Mac
if: ${{ startsWith(matrix.target, 'macos') }} if: ${{ startsWith(matrix.target, 'macos') }}
run: ln -s Makefile.FreeBSD Makefile run: ln -s Makefile.FreeBSD Makefile
- name: Mac variables - name: Mac variables
if: ${{ startsWith(matrix.target, 'macos') }} if: ${{ startsWith(matrix.target, 'macos') }}
run: echo "LDFLAGS=-L/usr/local/opt/openssl/lib -L/opt/homebrew/opt/openssl/lib" >> $GITHUB_ENV && echo "CFLAGS=-I/usr/local/opt/openssl/include -I/opt/homebrew/opt/openssl/include" >> $GITHUB_ENV run: echo "LDFLAGS=-L/usr/local/lib -L/usr/local/opt/openssl/lib -L/opt/homebrew/opt/openssl/lib" >> $GITHUB_ENV && echo "CFLAGS=-I/usr/local/include -I/usr/local/opt/openssl/include -I/opt/homebrew/opt/openssl/include" >> $GITHUB_ENV
- name: ln Windows - name: ln Windows
if: ${{ startsWith(matrix.target, 'windows') }} if: ${{ startsWith(matrix.target, 'windows') }}
run: copy Makefile.win Makefile run: copy Makefile.win Makefile