Skip to content

Commit

Permalink
update ci, default build optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
colinxu2020 committed Jul 16, 2024
1 parent 184fd23 commit 13bf35b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@
exit(1)

from setuptools import Extension, find_packages, setup
from setuptools.command.build_py import build_py

try:
import tomllib
except ModuleNotFoundError:
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')

Expand Down

0 comments on commit 13bf35b

Please sign in to comment.