Skip to content

Commit

Permalink
chore: Add release-drafter github action.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Nov 7, 2024
1 parent d0323a2 commit 08be2f3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
13 changes: 9 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ jobs:
python3-dev
python3-pip
python3-setuptools
- run: pip install cython
python3-venv
- run: python3 -m venv /tmp/path/to/venv
- run: . /tmp/path/to/venv/bin/activate && pip install cython
- run: git clone --depth=1 --recursive https://github.com/TokTok/c-toxcore
- run: cd c-toxcore;
. .github/scripts/flags-gcc.sh;
Expand All @@ -46,11 +48,14 @@ jobs:
-DMUST_BUILD_TOXAV=ON
- run: cd c-toxcore/_build && ninja install -j$(nproc)
- run: |
. /tmp/path/to/venv/bin/activate
export CFLAGS="-I$PWD/c-toxcore/_install/include -fsanitize=address,undefined"
export LDFLAGS="-L$PWD/c-toxcore/_install/lib -Wl,-rpath,$PWD/c-toxcore/_install/lib"
cython -I. $(find pytox -name "*.pyx")
python3 setup.py build_ext --inplace
- run: ASAN_OPTIONS=detect_leaks=0
LD_PRELOAD=libasan.so.6
PYTHONPATH=.
- run: |
. /tmp/path/to/venv/bin/activate
export ASAN_OPTIONS=detect_leaks=0
export LD_PRELOAD=libasan.so.6
export PYTHONPATH=.
python3 -m unittest $(find test -name "*_test.py")
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: release

on:
push:
branches: [master]
pull_request_target:
branches: [master]
types: [opened, reopened, synchronize]

jobs:
release:
uses: TokTok/ci-tools/.github/workflows/release-drafter.yml@master
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from distutils.core import Extension
from distutils.core import setup
from setuptools import Extension
from setuptools import setup

libraries = [
"toxcore",
Expand Down

0 comments on commit 08be2f3

Please sign in to comment.