-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (33 loc) · 1.04 KB
/
Linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
on: [push, pull_request]
name: Linux Build
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
arch: ["x86_64", "i686"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: facebookresearch/fastText
ref: v0.9.2
path: fastText
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Build manylinux wheels
run: |
docker run --rm -v `pwd`:/io -w /io quay.io/pypa/manylinux2010_${{ matrix.arch }} sh manylinux.sh
ls -lrth dist/
- name: Publish manylinux package
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}