nightly-pip #620
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: nightly-pip | |
on: | |
push: | |
branches: | |
- master | |
- nightly | |
schedule: | |
# minute (0-59) | |
# hour (0-23) | |
# day of the month (1-31) | |
# month (1-12) | |
# day of the week (0-6) | |
# nightly build at 23:50 UTC time every day | |
- cron: "50 23 * * *" | |
workflow_dispatch: | |
jobs: | |
nightly-pip: | |
# see https://github.com/actions/virtual-environments/blob/win19/20210525.0/images/win/Windows2019-Readme.md | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.os }} ${{ matrix.python-version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
key: ${{ matrix.os }}-${{ matrix.python-version }} | |
# see https://github.com/microsoft/setup-msbuild | |
- name: Add msbuild to PATH | |
if: startsWith(matrix.os, 'windows') | |
uses: microsoft/[email protected] | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install Python dependencies | |
run: | | |
pip3 install -qq wheel twine dataclasses numpy typing_extensions setuptools | |
- name: Display CMake version | |
run: | | |
cmake --version | |
cmake --help | |
- name: Install kaldifst | |
shell: bash | |
run: | | |
export CMAKE_CXX_COMPILER_LAUNCHER=ccache | |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" | |
cmake --version | |
pip3 install --verbose -U kaldifst | |
- name: Display kaldifst version | |
shell: bash | |
run: | | |
python3 -c "import kaldifst; print(kaldifst.__version__)" |