-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (49 loc) · 1.77 KB
/
linux-release.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Linux release
on:
release:
types:
- created
jobs:
linux:
name: Linux Py${{ matrix.PYTHON_VERSION }}
runs-on: ubuntu-latest
env:
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
RUNNER_OS: "ubuntu"
strategy:
fail-fast: false
matrix:
PYTHON_VERSION: ["3.6", "3.7", "3.8", "3.9"]
steps:
- name: Checkout branch
uses: actions/checkout@v1
- name: Install latest Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Print Rust version
shell: bash -l {0}
run: rustc --version
- name: Install miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
activate-environment: test
channels: conda-forge,defaults
python-version: ${{ matrix.PYTHON_VERSION }}
- name: Install build/test dependencies
shell: bash -l {0}
run: pip install maturin toml pytest
- name: Build and publish pysyntect
shell: bash -l {0}
env:
MATURIN_PASSWORD: ${{ secrets.MATURIN_PASSWORD }}
MATURIN_USERNAME: ${{ secrets.MATURIN_USERNAME }}
run: |
SKIP_SDIST=$([ $PYTHON_VERSION == "3.9" -a $RUNNER_OS == "Linux" ] && echo "" || echo "--no-sdist")
echo $PYTHON_VERSION
echo $RUNNER_OS
echo $SKIP_SDIST
maturin publish -i $(which python) -u $MATURIN_USERNAME $SKIP_SDIST