From 13bf35b76edc4c4e3c964b2a08abfb5bda793bc5 Mon Sep 17 00:00:00 2001 From: Colinxu2020 Date: Tue, 16 Jul 2024 21:21:28 +0800 Subject: [PATCH] update ci, default build optimized --- .github/workflows/ci.yml | 19 ++++++++++--------- setup.py | 3 +-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53b9e6a..a532e35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,17 +76,18 @@ jobs: steps: - uses: actions/checkout@v4 - - # Used to host cibuildwheel - uses: actions/setup-python@v5 - - - name: Install cibuildwheel - run: python -m pip install cibuildwheel==2.19.2 - - - name: Build wheels - run: python -m cibuildwheel --output-dir wheelhouse + - name: Install dependencies + run: | + python -m pip install pdm + python -m pdm install --prod + - name: Build + run: | + python -m pdm build --no-sdist + env: + SLHDSA_BUILD_OPTIMIZED: "0" - uses: actions/upload-artifact@v4 with: name: slhdsa-unoptimized-wheels-${{ strategy.job-index }} - path: ./wheelhouse/*.whl + path: ./dist/*.whl diff --git a/setup.py b/setup.py index 49b15a3..3701f12 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,6 @@ exit(1) from setuptools import Extension, find_packages, setup -from setuptools.command.build_py import build_py try: import tomllib @@ -18,7 +17,7 @@ import tomli as tomllib -if os.getenv('SLHDSA_BUILD_OPTIMIZED', '0') == '1': +if os.getenv('SLHDSA_BUILD_OPTIMIZED', '1') == '1': mypyc_targets = [] print('Building Optimized Library')