forked from GitHub/gf-core
Compare commits
11 Commits
build-pyth
...
try-to-bui
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec4625bc88 | ||
|
|
1166a49c26 | ||
|
|
64803cdd57 | ||
|
|
de1575cd31 | ||
|
|
32d73278af | ||
|
|
837e691643 | ||
|
|
0f4d13dd20 | ||
|
|
278397db20 | ||
|
|
f31a3496f5 | ||
|
|
b753912689 | ||
|
|
000fab7b52 |
91
.github/workflows/build-python-package.yml
vendored
91
.github/workflows/build-python-package.yml
vendored
@@ -4,7 +4,7 @@ name: Build & Publish Python Package
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [master,try-to-build-python-module-for-win]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_wheels:
|
build_wheels:
|
||||||
@@ -13,7 +13,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, macos-13]
|
os: [ubuntu-latest, macos-latest, macos-13, windows-latest]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -34,7 +34,7 @@ jobs:
|
|||||||
brew install libtool
|
brew install libtool
|
||||||
|
|
||||||
- name: Build wheels on Linux
|
- name: Build wheels on Linux
|
||||||
if: startsWith(matrix.os, 'macos') != true
|
if: startsWith(matrix.os, 'ubuntu')
|
||||||
env:
|
env:
|
||||||
CIBW_BEFORE_BUILD: cd src/runtime/c && autoreconf -i && ./configure && make && make install
|
CIBW_BEFORE_BUILD: cd src/runtime/c && autoreconf -i && ./configure && make && make install
|
||||||
run: |
|
run: |
|
||||||
@@ -47,56 +47,63 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m cibuildwheel src/runtime/python --output-dir wheelhouse
|
python -m cibuildwheel src/runtime/python --output-dir wheelhouse
|
||||||
|
|
||||||
|
- name: Build wheels on Windows
|
||||||
|
if: startsWith(matrix.os, 'windows')
|
||||||
|
# env:
|
||||||
|
# CIBW_BEFORE_BUILD: cd src/runtime/c && glibtoolize && autoreconf -i && ./configure && make && sudo make install
|
||||||
|
run: |
|
||||||
|
python -m cibuildwheel src/runtime/python --output-dir wheelhouse
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: wheel-${{ matrix.os }}
|
name: wheel-${{ matrix.os }}
|
||||||
path: ./wheelhouse
|
path: ./wheelhouse
|
||||||
|
|
||||||
build_sdist:
|
# build_sdist:
|
||||||
name: Build source distribution
|
# name: Build source distribution
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-python@v5
|
# - uses: actions/setup-python@v5
|
||||||
name: Install Python
|
# name: Install Python
|
||||||
with:
|
# with:
|
||||||
python-version: '3.10'
|
# python-version: '3.10'
|
||||||
|
|
||||||
- name: Build sdist
|
# - name: Build sdist
|
||||||
run: cd src/runtime/python && python setup.py sdist
|
# run: cd src/runtime/python && python setup.py sdist
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
# - uses: actions/upload-artifact@v4
|
||||||
with:
|
# with:
|
||||||
name: wheel-source
|
# name: wheel-source
|
||||||
path: ./src/runtime/python/dist/*.tar.gz
|
# path: ./src/runtime/python/dist/*.tar.gz
|
||||||
|
|
||||||
upload_pypi:
|
# upload_pypi:
|
||||||
name: Upload to PyPI
|
# name: Upload to PyPI
|
||||||
needs: [build_wheels, build_sdist]
|
# needs: [build_wheels, build_sdist]
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
|
# if: github.ref == 'refs/heads/master' && github.event_name == 'push'
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
# - name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
# uses: actions/setup-python@v5
|
||||||
with:
|
# with:
|
||||||
python-version: '3.x'
|
# python-version: '3.x'
|
||||||
|
|
||||||
- name: Install twine
|
# - name: Install twine
|
||||||
run: pip install twine
|
# run: pip install twine
|
||||||
|
|
||||||
- uses: actions/download-artifact@v4.1.7
|
# - uses: actions/download-artifact@v4.1.7
|
||||||
with:
|
# with:
|
||||||
pattern: wheel-*
|
# pattern: wheel-*
|
||||||
merge-multiple: true
|
# merge-multiple: true
|
||||||
path: ./dist
|
# path: ./dist
|
||||||
|
|
||||||
- name: Publish
|
# - name: Publish
|
||||||
env:
|
# env:
|
||||||
TWINE_USERNAME: __token__
|
# TWINE_USERNAME: __token__
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||||
run: |
|
# run: |
|
||||||
twine upload --verbose --non-interactive --skip-existing dist/*
|
# twine upload --verbose --non-interactive --skip-existing dist/*
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ Binary packages are available for Debian/Ubuntu, macOS, and Windows and include:
|
|||||||
- C run-time system
|
- C run-time system
|
||||||
- Python bindings to the C run-time system
|
- Python bindings to the C run-time system
|
||||||
|
|
||||||
[Binary packages on GitHub](https://github.com/GrammaticalFramework/gf-core/releases/tag/3.12)
|
[Binary packages on GitHub](https://github.com/GrammaticalFramework/gf-core/releases/tag/release-3.12)
|
||||||
|
|
||||||
#### Debian/Ubuntu
|
#### Debian/Ubuntu
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="refresh" content="0; URL=/download/index-3.11.html" />
|
<meta http-equiv="refresh" content="0; URL=/download/index-3.12.html" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
You are being redirected to <a href="index-3.12.html">the current version</a> of this page.
|
You are being redirected to <a href="index-3.12.html">the current version</a> of this page.
|
||||||
|
|||||||
2
gf.cabal
2
gf.cabal
@@ -349,7 +349,7 @@ library
|
|||||||
build-depends:
|
build-depends:
|
||||||
terminfo >=0.4.0 && < 0.5
|
terminfo >=0.4.0 && < 0.5
|
||||||
|
|
||||||
if impl(ghc >= 9.6.6)
|
if impl(ghc >= 9.6)
|
||||||
build-depends: unix >= 2.8 && < 2.9
|
build-depends: unix >= 2.8 && < 2.9
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|||||||
10
index.html
10
index.html
@@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
<a href="lib/doc/synopsis/index.html" class="btn btn-primary ml-3">
|
<a href="lib/doc/synopsis/index.html" class="btn btn-primary ml-3">
|
||||||
<i class="fab fa-readme mr-1"></i>
|
<i class="fab fa-readme mr-1"></i>
|
||||||
RGL Synopsis
|
RGL API
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -72,8 +72,12 @@
|
|||||||
<li><a href="doc/gf-developers.html">Developers Guide</a></li>
|
<li><a href="doc/gf-developers.html">Developers Guide</a></li>
|
||||||
<!-- <li><a href="/~hallgren/gf-experiment/browse/">Browse Source Code</a></li> -->
|
<!-- <li><a href="/~hallgren/gf-experiment/browse/">Browse Source Code</a></li> -->
|
||||||
<li>PGF library API:<br>
|
<li>PGF library API:<br>
|
||||||
<a href="http://hackage.haskell.org/package/gf/docs/PGF.html">Haskell</a> /
|
<ul>
|
||||||
<a href="doc/runtime-api.html">C runtime</a>
|
<li><a href="http://hackage.haskell.org/package/gf/docs/PGF.html">Haskell</a>
|
||||||
|
</li><li><a href="doc/runtime-api.html#python">Python</a>
|
||||||
|
</li><li><a href="doc/runtime-api.html">C runtime</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="http://hackage.haskell.org/package/gf/docs/GF.html">GF compiler API</a></li>
|
<li><a href="http://hackage.haskell.org/package/gf/docs/GF.html">GF compiler API</a></li>
|
||||||
<!-- <li><a href="src/ui/android/README">GF on Android (new)</a></li>
|
<!-- <li><a href="src/ui/android/README">GF on Android (new)</a></li>
|
||||||
|
|||||||
Reference in New Issue
Block a user