Skip to content

Commit

Permalink
Release v1.16. (#38)
Browse files Browse the repository at this point in the history
* Release v1.16.

* Reduce number of test runs.
  • Loading branch information
csukuangfj authored Jun 4, 2022
1 parent 48d96b9 commit ae17334
Show file tree
Hide file tree
Showing 14 changed files with 164 additions and 9 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/nightly-tests-macos-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,24 @@ on:
- cron: "50 23 * * *"

jobs:
enable_nightly_build:
runs-on: ubuntu-latest
outputs:
enabled: ${{ steps.set-enabled.outputs.enabled }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set enabled
id: set-enabled
run: |
enabled=$(python scripts/github_actions/run-nightly-build.py)
echo "enabled: $enabled"
echo "::set-output name=enabled::${enabled}"
generate_build_matrix:
needs: enable_nightly_build
if: needs.enable_nightly_build.outputs.enabled == 'true'
# see https://github.com/pytorch/pytorch/pull/50633
runs-on: ubuntu-latest
outputs:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/nightly-tests-ubuntu-conda-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,24 @@ on:
- cron: "50 23 * * *"

jobs:
enable_nightly_build:
runs-on: ubuntu-latest
outputs:
enabled: ${{ steps.set-enabled.outputs.enabled }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set enabled
id: set-enabled
run: |
enabled=$(python scripts/github_actions/run-nightly-build.py)
echo "enabled: $enabled"
echo "::set-output name=enabled::${enabled}"
generate_build_matrix:
needs: enable_nightly_build
if: needs.enable_nightly_build.outputs.enabled == 'true'
# see https://github.com/pytorch/pytorch/pull/50633
runs-on: ubuntu-latest
outputs:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/nightly-tests-ubuntu-conda-cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,24 @@ on:
- cron: "50 23 * * *"

jobs:
enable_nightly_build:
runs-on: ubuntu-latest
outputs:
enabled: ${{ steps.set-enabled.outputs.enabled }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set enabled
id: set-enabled
run: |
enabled=$(python scripts/github_actions/run-nightly-build.py)
echo "enabled: $enabled"
echo "::set-output name=enabled::${enabled}"
generate_build_matrix:
needs: enable_nightly_build
if: needs.enable_nightly_build.outputs.enabled == 'true'
# see https://github.com/pytorch/pytorch/pull/50633
runs-on: ubuntu-latest
outputs:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/nightly-tests-ubuntu-pip-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,24 @@ on:
- cron: "50 23 * * *"

jobs:
enable_nightly_build:
runs-on: ubuntu-latest
outputs:
enabled: ${{ steps.set-enabled.outputs.enabled }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set enabled
id: set-enabled
run: |
enabled=$(python scripts/github_actions/run-nightly-build.py)
echo "enabled: $enabled"
echo "::set-output name=enabled::${enabled}"
generate_build_matrix:
needs: enable_nightly_build
if: needs.enable_nightly_build.outputs.enabled == 'true'
# see https://github.com/pytorch/pytorch/pull/50633
runs-on: ubuntu-latest
outputs:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/nightly-tests-ubuntu-pip-cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,24 @@ on:
- cron: "50 23 * * *"

jobs:
enable_nightly_build:
runs-on: ubuntu-latest
outputs:
enabled: ${{ steps.set-enabled.outputs.enabled }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set enabled
id: set-enabled
run: |
enabled=$(python scripts/github_actions/run-nightly-build.py)
echo "enabled: $enabled"
echo "::set-output name=enabled::${enabled}"
generate_build_matrix:
needs: enable_nightly_build
if: needs.enable_nightly_build.outputs.enabled == 'true'
# see https://github.com/pytorch/pytorch/pull/50633
runs-on: ubuntu-latest
outputs:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/nightly-tests-windows-pip-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,24 @@ on:
- cron: "50 23 * * *"

jobs:
enable_nightly_build:
runs-on: ubuntu-latest
outputs:
enabled: ${{ steps.set-enabled.outputs.enabled }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set enabled
id: set-enabled
run: |
enabled=$(python scripts/github_actions/run-nightly-build.py)
echo "enabled: $enabled"
echo "::set-output name=enabled::${enabled}"
generate_build_matrix:
needs: enable_nightly_build
if: needs.enable_nightly_build.outputs.enabled == 'true'
# see https://github.com/pytorch/pytorch/pull/50633
runs-on: ubuntu-latest
outputs:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/nightly-tests-windows-pip-cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,24 @@ on:
- cron: "50 23 * * *"

jobs:
enable_nightly_build:
runs-on: ubuntu-latest
outputs:
enabled: ${{ steps.set-enabled.outputs.enabled }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set enabled
id: set-enabled
run: |
enabled=$(python scripts/github_actions/run-nightly-build.py)
echo "enabled: $enabled"
echo "::set-output name=enabled::${enabled}"
generate_build_matrix:
needs: enable_nightly_build
if: needs.enable_nightly_build.outputs.enabled == 'true'
# see https://github.com/pytorch/pytorch/pull/50633
runs-on: ubuntu-latest
outputs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-tests-macos-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
id: set-matrix
run: |
# outputting for debugging purposes
python scripts/github_actions/generate_build_matrix.py
MATRIX=$(python scripts/github_actions/generate_build_matrix.py)
python scripts/github_actions/generate_build_matrix.py --test-only-latest-torch
MATRIX=$(python scripts/github_actions/generate_build_matrix.py --test-only-latest-torch)
echo "::set-output name=matrix::${MATRIX}"
run_tests_macos_cpu:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-tests-ubuntu-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
id: set-matrix
run: |
# outputting for debugging purposes
python scripts/github_actions/generate_build_matrix.py
MATRIX=$(python scripts/github_actions/generate_build_matrix.py)
python scripts/github_actions/generate_build_matrix.py --test-only-latest-torch
MATRIX=$(python scripts/github_actions/generate_build_matrix.py --test-only-latest-torch)
echo "::set-output name=matrix::${MATRIX}"
run_tests_ubuntu_cpu:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-tests-windows-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
id: set-matrix
run: |
# outputting for debugging purposes
python scripts/github_actions/generate_build_matrix.py
MATRIX=$(python scripts/github_actions/generate_build_matrix.py)
python scripts/github_actions/generate_build_matrix.py --test-only-latest-torch
MATRIX=$(python scripts/github_actions/generate_build_matrix.py --test-only-latest-torch)
echo "::set-output name=matrix::${MATRIX}"
run_tests_windows_cpu:
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ project(kaldifeat)

# remember to change the version in
# scripts/conda/kaldifeat/meta.yaml
set(kaldifeat_VERSION "1.15.4")
# scripts/conda-cpu/kaldifeat/meta.yaml
set(kaldifeat_VERSION "1.16")

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
Expand Down
2 changes: 1 addition & 1 deletion scripts/conda-cpu/kaldifeat/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: kaldifeat
version: "1.15.4"
version: "1.16"

source:
path: "{{ environ.get('KALDIFEAT_ROOT_DIR') }}"
Expand Down
2 changes: 1 addition & 1 deletion scripts/conda/kaldifeat/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: kaldifeat
version: "1.15.4"
version: "1.16"

source:
path: "{{ environ.get('KALDIFEAT_ROOT_DIR') }}"
Expand Down
35 changes: 35 additions & 0 deletions scripts/github_actions/run-nightly-build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/usr/bin/env python3
# Copyright 2022 Xiaomi Corp. (authors: Fangjun Kuang)

import subprocess
from datetime import datetime, timedelta


def get_last_commit_date() -> datetime:
date = (
subprocess.check_output(
[
"git",
"log",
"-1",
"--format=%ad",
"--date=unix",
]
)
.decode("ascii")
.strip()
)
return datetime.utcfromtimestamp(int(date))


def main():
last_commit_date_utc = get_last_commit_date()
now_utc = datetime.utcnow()
if last_commit_date_utc + timedelta(days=1) > now_utc:
print("true")
else:
print("false")


if __name__ == "__main__":
main()

0 comments on commit ae17334

Please sign in to comment.