forked from caketop/python-starlark-go
-
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.
Until we can safely submit a PR to the original repo, we build a version that we need
- Loading branch information
Showing
2 changed files
with
71 additions
and
72 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 |
---|---|---|
|
@@ -3,6 +3,8 @@ name: Build wheels | |
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'build-support-struct' | ||
tags: | ||
- "v*" | ||
|
||
|
@@ -40,7 +42,7 @@ jobs: | |
matrix: | ||
# Windows isn't working right now: https://github.com/caketop/python-starlark-go/issues/4 | ||
os: [ubuntu-latest, macos-latest] | ||
cibw_python: ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*"] | ||
cibw_python: ["cp38-*"] | ||
cibw_arch: ["i686", "x86_64", "aarch64", "arm64"] | ||
include: | ||
- cibw_arch: arm64 | ||
|
@@ -56,9 +58,6 @@ jobs: | |
cibw_arch: i686 | ||
- os: macos-latest | ||
cibw_arch: aarch64 | ||
- os: macos-latest | ||
cibw_python: "cp37-*" | ||
cibw_arch: arm64 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -86,74 +85,74 @@ jobs: | |
path: wheelhouse/starlark_go-*.whl | ||
|
||
# Create a GitHub release | ||
github_release: | ||
name: Create GitHub release | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | ||
needs: [build_wheels, build_sdist] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- name: "✏️ Generate release changelog" | ||
id: changelog | ||
uses: heinrichreimer/[email protected] | ||
with: | ||
filterByMilestone: false | ||
onlyLastTag: true | ||
pullRequests: true | ||
prWoLabels: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
verbose: true | ||
|
||
- name: Create GitHub release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
body: ${{ steps.changelog.outputs.changelog }} | ||
files: dist/**/* | ||
# github_release: | ||
# name: Create GitHub release | ||
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | ||
# needs: [build_wheels, build_sdist] | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# contents: write | ||
|
||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 0 | ||
|
||
# - uses: actions/download-artifact@v3 | ||
# with: | ||
# name: artifact | ||
# path: dist | ||
|
||
# - name: "✏️ Generate release changelog" | ||
# id: changelog | ||
# uses: heinrichreimer/[email protected] | ||
# with: | ||
# filterByMilestone: false | ||
# onlyLastTag: true | ||
# pullRequests: true | ||
# prWoLabels: true | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# verbose: true | ||
|
||
# - name: Create GitHub release | ||
# uses: softprops/action-gh-release@v1 | ||
# with: | ||
# body: ${{ steps.changelog.outputs.changelog }} | ||
# files: dist/**/* | ||
|
||
# Test PyPI | ||
test_pypi_publish: | ||
name: Test publishing to PyPI | ||
needs: [build_wheels, build_sdist] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.TEST_PYPI_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
skip_existing: true | ||
# test_pypi_publish: | ||
# name: Test publishing to PyPI | ||
# needs: [build_wheels, build_sdist] | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - uses: actions/download-artifact@v3 | ||
# with: | ||
# name: artifact | ||
# path: dist | ||
|
||
# - uses: pypa/[email protected] | ||
# with: | ||
# user: __token__ | ||
# password: ${{ secrets.TEST_PYPI_TOKEN }} | ||
# repository_url: https://test.pypi.org/legacy/ | ||
# skip_existing: true | ||
|
||
# Publish to PyPI | ||
pypi_publish: | ||
name: Publish to PyPI | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | ||
needs: [build_wheels, build_sdist] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} | ||
# pypi_publish: | ||
# name: Publish to PyPI | ||
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | ||
# needs: [build_wheels, build_sdist] | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - uses: actions/download-artifact@v3 | ||
# with: | ||
# name: artifact | ||
# path: dist | ||
|
||
# - uses: pypa/[email protected] | ||
# with: | ||
# user: __token__ | ||
# password: ${{ secrets.PYPI_TOKEN }} |
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