build.yml 981 字节
Newer Older
P
Peter Pan 已提交
1 2 3 4 5 6 7 8 9
name: Build
on: [push, pull_request]
jobs:
  build:
    name: build
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest]
P
Peter Pan 已提交
10
        python-version: ['3.5']
P
Peter Pan 已提交
11
        node-version: ['14']
P
Peter Pan 已提交
12 13 14 15 16 17 18 19 20 21 22 23 24
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup Python
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
      - name: Setup Node
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}
      - name: Install requirements
        run: |
P
Peter Pan 已提交
25 26
          pip install -U wheel
          pip install -U setuptools
P
Peter Pan 已提交
27
          pip install -r requirements.txt
P
Peter Pan 已提交
28 29
        env:
          PIP_DISABLE_PIP_VERSION_CHECK: 1
P
Peter Pan 已提交
30 31 32 33 34 35 36 37
      - name: Build whl
        run: |
          python setup.py bdist_wheel
      - name: Upload whl
        uses: actions/upload-artifact@v2
        with:
          name: VisualDL
          path: dist/*.whl