release 1.1.0 (#132) #339
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }} | |
cancel-in-progress: true | |
jobs: | |
x86_64: | |
runs-on: windows-2022 | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: msys2/setup-msys2@v2 | |
with: | |
msystem: MINGW64 | |
path-type: minimal | |
update: false | |
install: >- | |
mingw-w64-x86_64-gcc | |
mingw-w64-x86_64-cmake | |
mingw-w64-x86_64-ninja | |
git | |
make | |
autoconf | |
automake | |
libtool | |
mingw-w64-x86_64-python | |
mingw-w64-x86_64-python-pip | |
mingw-w64-x86_64-python-build | |
mingw-w64-x86_64-python-cffi | |
- name: cmake configure | |
run: | | |
cmake -DCMAKE_BUILD_TYPE=Release -B build -G "Ninja" . | |
- name: build libsodium | |
run: | | |
cd deps/libsodium | |
./configure "CFLAGS=-DSODIUM_STATIC=1 -O2 -Wno-cpp" --disable-dependency-tracking --prefix=/d/a/ecc/ecc/build/libsodium --disable-ssp --disable-shared --without-pthreads | |
make -j2 | |
make install | |
cd ../.. | |
- name: build blst | |
run: | | |
cd deps/blst | |
./build.sh -O2 | |
cd ../.. | |
- name: c build | |
run: | | |
cmake --build build --config Release --parallel 2 | |
cp build/libecc-jvm.dll bindings/jvm/ | |
objdump -p build/libecc.dll | grep DLL | |
- name: c tests | |
run: | | |
cd build | |
ctest -C "Release" --rerun-failed --output-on-failure | |
cd .. | |
- name: jvm tests | |
run: | | |
objdump -p build/libecc-jvm.dll | grep DLL | |
cd bindings/jvm | |
./gradlew test | |
cd ../.. | |
- name: python wheel | |
run: | | |
cd bindings/python | |
python3 cffi_build.py | |
python3 -m build --wheel | |
cd ../.. | |
- name: python tests | |
run: | | |
cd bindings/python | |
python3 -m unittest | |
cd ../.. | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ecc-windows-x86_64 | |
path: | | |
build/libecc.dll | |
build/libecc-jvm.dll | |
bindings/python/src/libecc/_libecc_cffi.*.pyd | |
retention-days: 10 |