Add missing build dependencies

This commit is contained in:
Tindy X 2021-03-23 18:15:01 +08:00
parent 60813e516a
commit de288d7622
No known key found for this signature in database
GPG Key ID: C6AD413169968D58
6 changed files with 8 additions and 4 deletions

View File

@ -55,7 +55,7 @@ jobs:
- uses: msys2/setup-msys2@v2 - uses: msys2/setup-msys2@v2
with: with:
update: true update: true
install: base-devel git mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-libevent mingw-w64-x86_64-pcre2 install: base-devel git mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-libevent mingw-w64-x86_64-pcre2 patch
msystem: MINGW64 msystem: MINGW64
path-type: inherit path-type: inherit
- name: Build - name: Build
@ -80,7 +80,7 @@ jobs:
- uses: msys2/setup-msys2@v2 - uses: msys2/setup-msys2@v2
with: with:
update: true update: true
install: base-devel git mingw-w64-i686-gcc mingw-w64-i686-cmake mingw-w64-i686-libevent mingw-w64-i686-pcre2 install: base-devel git mingw-w64-i686-gcc mingw-w64-i686-cmake mingw-w64-i686-libevent mingw-w64-i686-pcre2 patch
msystem: MINGW32 msystem: MINGW32
path-type: inherit path-type: inherit
- name: Build - name: Build

View File

@ -93,7 +93,7 @@ jobs:
export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start' export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start'
export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --" export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --"
export msys2+=" -msys2 -c "\"\$@"\" --" export msys2+=" -msys2 -c "\"\$@"\" --"
$msys2 pacman --sync --noconfirm --needed base-devel git mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-libevent mingw-w64-x86_64-pcre2 $msys2 pacman --sync --noconfirm --needed base-devel git mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-libevent mingw-w64-x86_64-pcre2 patch
taskkill //IM gpg-agent.exe //F taskkill //IM gpg-agent.exe //F
export PATH=/C/tools/msys64/mingw64/bin:$PATH export PATH=/C/tools/msys64/mingw64/bin:$PATH
export MAKE=make export MAKE=make
@ -127,7 +127,7 @@ jobs:
export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start' export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start'
export mingw32="$msys2 -mingw32 -full-path -here -c "\"\$@"\" --" export mingw32="$msys2 -mingw32 -full-path -here -c "\"\$@"\" --"
export msys2+=" -msys2 -c "\"\$@"\" --" export msys2+=" -msys2 -c "\"\$@"\" --"
$msys2 pacman --sync --noconfirm --needed base-devel git mingw-w64-i686-gcc mingw-w64-i686-cmake mingw-w64-i686-libevent mingw-w64-i686-pcre2 $msys2 pacman --sync --noconfirm --needed base-devel git mingw-w64-i686-gcc mingw-w64-i686-cmake mingw-w64-i686-libevent mingw-w64-i686-pcre2 patch
taskkill //IM gpg-agent.exe //F taskkill //IM gpg-agent.exe //F
export PATH=/C/tools/msys64/mingw64/bin:$PATH export PATH=/C/tools/msys64/mingw64/bin:$PATH
export MAKE=make export MAKE=make

View File

@ -7,6 +7,7 @@ RUN apk add --no-cache --virtual .build-tools git g++ build-base linux-headers c
apk add --no-cache --virtual .build-deps curl-dev rapidjson-dev libevent-dev pcre2-dev yaml-cpp-dev && \ apk add --no-cache --virtual .build-deps curl-dev rapidjson-dev libevent-dev pcre2-dev yaml-cpp-dev && \
git clone https://github.com/ftk/quickjspp --depth=1 && \ git clone https://github.com/ftk/quickjspp --depth=1 && \
cd quickjspp && \ cd quickjspp && \
git submodule update --init && \
cmake -DCMAKE_BUILD_TYPE=Release . && \ cmake -DCMAKE_BUILD_TYPE=Release . && \
make -j4 && \ make -j4 && \
install -m644 quickjs/libquickjs.a /usr/lib && \ install -m644 quickjs/libquickjs.a /usr/lib && \

View File

@ -27,6 +27,7 @@ cd ..
git clone https://github.com/PerMalmberg/libcron --depth=1 git clone https://github.com/PerMalmberg/libcron --depth=1
cd libcron cd libcron
git submodule update --init
cmake -DCMAKE_BUILD_TYPE=Release . cmake -DCMAKE_BUILD_TYPE=Release .
make -j4 make -j4
install -m644 libcron/out/Release/liblibcron.a /usr/lib install -m644 libcron/out/Release/liblibcron.a /usr/lib

View File

@ -27,6 +27,7 @@ cd ..
git clone https://github.com/PerMalmberg/libcron --depth=1 git clone https://github.com/PerMalmberg/libcron --depth=1
cd libcron cd libcron
git submodule update --init
cmake -DCMAKE_BUILD_TYPE=Release . cmake -DCMAKE_BUILD_TYPE=Release .
make -j4 make -j4
install -d /usr/local/include/libcron/ install -d /usr/local/include/libcron/

View File

@ -25,6 +25,7 @@ cd ..
git clone https://github.com/PerMalmberg/libcron --depth=1 git clone https://github.com/PerMalmberg/libcron --depth=1
cd libcron cd libcron
git submodule update --init
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release . cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release .
make -j4 make -j4
install -m644 libcron/out/Release/liblibcron.a "$MINGW_PREFIX/lib" install -m644 libcron/out/Release/liblibcron.a "$MINGW_PREFIX/lib"