Update rust CI
This commit is contained in:
parent
2f61592ff9
commit
bfb5875eb9
|
@ -56,38 +56,27 @@ jobs:
|
||||||
default: true
|
default: true
|
||||||
|
|
||||||
- name: '🛠️ Add msbuild to PATH'
|
- name: '🛠️ Add msbuild to PATH'
|
||||||
if: contains(matrix.config.name, 'win')
|
if: contains(matrix.config.os, 'win')
|
||||||
uses: microsoft/setup-msbuild@v1.0.3
|
uses: microsoft/setup-msbuild@v1.0.3
|
||||||
with:
|
with:
|
||||||
vs-version: '16.5'
|
vs-version: '16.5'
|
||||||
|
|
||||||
- name: '🛠️ Win build dependencies'
|
- name: '🛠️ Win build dependencies'
|
||||||
if: contains(matrix.config.name, 'win')
|
if: contains(matrix.config.os, 'win')
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
choco install ninja cmake
|
choco install ninja cmake
|
||||||
|
|
||||||
- name: '🚧 Cargo test'
|
- name: '🚧 Cargo test'
|
||||||
|
if: "!startsWith(github.ref, 'refs/tags')"
|
||||||
|
env:
|
||||||
|
QNICORN_VERSION: dev
|
||||||
run: |
|
run: |
|
||||||
cd bindings/rust && cargo test
|
cd bindings/rust && cargo test
|
||||||
|
|
||||||
# - name: '📤 Upload artifact'
|
- name: '📦 Cargo Publish'
|
||||||
# uses: actions/upload-artifact@v2
|
if: startsWith(github.ref, 'refs/tags') && contains(matrix.config.os, 'ubuntu')
|
||||||
# with:
|
env:
|
||||||
# path: ${{ github.workspace }}/bindings/python/dist/*
|
TOKEN: ${{ secrets.cratesio_pass }}
|
||||||
|
run: |
|
||||||
# publish:
|
cd bindings/rust && cargo login $TOKEN && cargo test && cargo publish
|
||||||
# needs: [build]
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# if: startsWith(github.ref, 'refs/tags')
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/download-artifact@v2
|
|
||||||
# with:
|
|
||||||
# name: artifact
|
|
||||||
# path: dist
|
|
||||||
|
|
||||||
# - name: '📦 Publish distribution to PyPI'
|
|
||||||
# uses: pypa/gh-action-pypi-publish@master
|
|
||||||
# with:
|
|
||||||
# user: __token__
|
|
||||||
# password: ${{ secrets.pypi_pass }}
|
|
Loading…
Reference in New Issue