Skip to content

Commit

Permalink
Restore build-wheels-linux/macos.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
lidongze0629 committed Nov 30, 2022
1 parent 5c29ea2 commit f2e1576
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 64 deletions.
45 changes: 12 additions & 33 deletions .github/workflows/build-graphscope-wheels-linux.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,22 @@
name: Build GraphScope Wheels on Linux

#on:
#workflow_dispatch:
#schedule:
#The notifications for scheduled workflows are sent to the user who
#last modified the cron syntax in the workflow file.
#Trigger the workflow at 03:00(CST) every day.
#- cron: '00 19 * * *'
#push:
#tags:
#- "v*"

on:
# Trigger the workflow on push or pull request,
# but only for the main branch
workflow_dispatch:
schedule:
# The notifications for scheduled workflows are sent to the user who
# last modified the cron syntax in the workflow file.
# Trigger the workflow at 03:00(CST) every day.
- cron: '00 19 * * *'
push:
branches:
- main
paths-ignore:
- 'CONTRIBUTORS'
- 'LICENSE'
- 'NOTICE.txt'
- '**.md'
- '**.rst'
- 'docs/**'
- 'demo/**'
- 'scripts/**'
- 'tutorials/**'
pull_request:
branches:
- main
tags:
- "v*"

env:
REGISTRY: registry.cn-hongkong.aliyuncs.com

jobs:
build-wheels:
# if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope')
if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope')
runs-on: ubuntu-20.04

steps:
Expand Down Expand Up @@ -101,15 +81,14 @@ jobs:
packages_dir: upload_pypi/

- name: Publish distribution to PyPI
if: false
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
packages_dir: upload_pypi/

build-image:
# if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope')
if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope')
runs-on: ubuntu-20.04
needs: [build-wheels]

Expand Down Expand Up @@ -191,7 +170,7 @@ jobs:
sudo docker push ${{ env.REGISTRY }}/dataset:${tag}
ubuntu-python-test:
# if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope' }}
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope' }}
runs-on: ubuntu-20.04
needs: [build-wheels]
strategy:
Expand Down Expand Up @@ -241,7 +220,7 @@ jobs:
python3 -m pytest -s -v $(dirname $(python3 -c "import graphscope; print(graphscope.__file__)"))/tests/minitest
centos-test:
# if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope' }}
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope' }}
runs-on: ubuntu-20.04
needs: [build-wheels]
container:
Expand Down
42 changes: 11 additions & 31 deletions .github/workflows/build-graphscope-wheels-macos.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,19 @@
name: Build GraphScope Wheels on MacOS

#on:
#workflow_dispatch:
#schedule:
## The notifications for scheduled workflows are sent to the user who
## last modified the cron syntax in the workflow file.
## Trigger the workflow at 03:00(CST) every day.
#- cron: '00 19 * * *'
#push:
#tags:
#- "v*"

on:
# Trigger the workflow on push or pull request,
# but only for the main branch
workflow_dispatch:
schedule:
# The notifications for scheduled workflows are sent to the user who
# last modified the cron syntax in the workflow file.
# Trigger the workflow at 03:00(CST) every day.
- cron: '00 19 * * *'
push:
branches:
- main
paths-ignore:
- 'CONTRIBUTORS'
- 'LICENSE'
- 'NOTICE.txt'
- '**.md'
- '**.rst'
- 'docs/**'
- 'demo/**'
- 'scripts/**'
- 'tutorials/**'
pull_request:
branches:
- main
tags:
- "v*"

jobs:
build-wheels:
# if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope')
if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope')
runs-on: macos-10.15
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -80,7 +60,7 @@ jobs:
retention-days: 5

build-client-wheels:
# if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope')
if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope')
runs-on: macos-10.15
strategy:
matrix:
Expand Down Expand Up @@ -179,7 +159,7 @@ jobs:
packages_dir: upload_pypi/

python-test:
# if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope' }}
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope' }}
runs-on: macos-10.15
needs: [build-wheels, build-client-wheels]
strategy:
Expand Down

0 comments on commit f2e1576

Please sign in to comment.