forked from treble-ai/pyduckling
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial fork of PyDuckling built against the latest version of Meta's…
… Duckling (#1) This is a fork of the original pyduckling-native library. There are differences to the original: * Build against the latest version of [Duckling](https://github.com/facebook/duckling) * Supported Python versions range from 3.8 to 3.12 * x86_64 Linux only, but contributions welcome if you dare to take on the challenge Internally some other things have changed as well: * Updated to latest Maturin v1.4.0 * Adapted Rust code to work with latest Maturin/Rust compiler * Removed `GHC_VERSION` constant since Duckling will always be build with the same GHC version as the corresponding Duckling version * Introduced Docker-based build pipeline * Publish packages as manylinux/musllinux wheels * Minor changes to various Markdown files
- Loading branch information
Showing
42 changed files
with
1,240 additions
and
853 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Dockerfile | ||
.cache |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build | ||
on: | ||
push: {} | ||
pull_request: {} | ||
release: | ||
types: [ published ] | ||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- name: Cache build dependencies | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-build-deps | ||
with: | ||
key: ${{ runner.os }}-build-${{ env.cache-name }} | ||
path: | | ||
.cache | ||
duckling-ffi/.stack-work | ||
- name: Run build script | ||
run: | | ||
./build.sh | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wheels | ||
path: | | ||
target/wheels/*.tar.gz | ||
target/wheels/*.whl | ||
publish: | ||
needs: build-and-test | ||
if: github.event_name == 'release' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download wheels | ||
uses: actions/download-artifact@v4 | ||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
packages-dir: target/wheels/ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.