From 858f58486c729a4946aa8c88f28c83e4d0b76b17 Mon Sep 17 00:00:00 2001 From: Han Yeong-woo Date: Fri, 31 May 2024 01:46:25 +0900 Subject: [PATCH] Bump actions --- .github/workflows/build_and_deploy.yml | 34 +++++++++---------- .../workflows/build_and_deploy_downloader.yml | 4 +-- .github/workflows/cargo-deny.yml | 2 +- .github/workflows/download_test.yml | 2 +- .github/workflows/generate_document.yml | 10 +++--- .github/workflows/java_lint.yml | 2 +- .github/workflows/labeler.yml | 2 +- .github/workflows/python_lint.yml | 4 +-- .github/workflows/test.yml | 34 +++++++++---------- .github/workflows/typos.yml | 4 +-- _typos.toml | 5 +++ 11 files changed, 54 insertions(+), 49 deletions(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 01ddfc434..aecd7dca8 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -178,9 +178,9 @@ jobs: env: ASSET_NAME: voicevox_core-${{ matrix.artifact_name }}-${{ needs.config.outputs.version }} steps: - - uses: actions/checkout@v3 # 製品版ではない場合 + - uses: actions/checkout@v4 # 製品版ではない場合 if: ${{ !inputs.is_production }} - - uses: actions/checkout@v3 # 製品版の場合 + - uses: actions/checkout@v4 # 製品版の場合 if: inputs.is_production with: fetch-depth: 0 # 全履歴取得 @@ -196,7 +196,7 @@ jobs: ) > /dev/null 2>&1 - name: Set up Python 3.8 if: matrix.whl_local_version - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" architecture: ${{ contains(matrix.artifact_name,'x86') && 'x86' || 'x64' }} @@ -220,7 +220,7 @@ jobs: echo "AR_${{ matrix.target }}=llvm-ar" >> "$GITHUB_ENV" - name: Checkout VOICEVOX RESOURCE if: inputs.is_production - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: VOICEVOX/voicevox_resource ref: ${{ env.VOICEVOX_RESOURCE_VERSION }} @@ -316,7 +316,7 @@ jobs: 7z a "../${{ env.ASSET_NAME }}.zip" "${{ env.ASSET_NAME }}" - name: Upload to Release if: fromJson(needs.config.outputs.deploy) && !contains(matrix.target, 'ios') - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: prerelease: true tag_name: ${{ env.VERSION }} @@ -325,7 +325,7 @@ jobs: target_commitish: ${{ github.sha }} - name: Upload Python whl to Release if: fromJson(needs.config.outputs.deploy) && matrix.whl_local_version - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: prerelease: true tag_name: ${{ env.VERSION }} @@ -349,7 +349,7 @@ jobs: IOS_AARCH64_PATH: artifact/voicevox_core-aarch64-apple-ios ASSET_NAME: voicevox_core-ios-xcframework-cpu-${{ needs.config.outputs.version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: name: voicevox_core-x86_64-apple-ios @@ -363,10 +363,10 @@ jobs: name: voicevox_core-aarch64-apple-ios path: ${{ env.IOS_AARCH64_PATH }} - name: Create xcframework - id: create-xcframework + id: create-xcframework run: | build_util/make_ios_xcframework.bash - echo "output_asset_path=${OUTPUT_ASSET_PATH}" >> "$GITHUB_OUTPUT" + echo "output_asset_path=${OUTPUT_ASSET_PATH}" >> "$GITHUB_OUTPUT" env: OUTPUT_ASSET_PATH: artifact/voicevox_core-ios-xcframework-cpu - name: Archive artifact @@ -375,7 +375,7 @@ jobs: 7z a "../../${{ env.ASSET_NAME }}.zip" "voicevox_core.xcframework" - name: Upload to Release if: fromJson(needs.config.outputs.deploy) - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: prerelease: true tag_name: ${{ env.VERSION }} @@ -389,10 +389,10 @@ jobs: env: ASSET_NAME: model-${{ needs.config.outputs.version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Checkout VOICEVOX FAT RESOURCE if: inputs.is_production - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: VOICEVOX/voicevox_fat_resource ref: ${{ env.VOICEVOX_FAT_RESOURCE_VERSION }} @@ -412,7 +412,7 @@ jobs: 7z a "../${{ env.ASSET_NAME }}.zip" "${{ env.ASSET_NAME }}" - name: Upload to Release if: fromJson(needs.config.outputs.deploy) - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: prerelease: true tag_name: ${{ env.VERSION }} @@ -425,7 +425,7 @@ jobs: if: ${{ !(github.event_name != 'release' && github.event_name != 'workflow_dispatch') }} # !env.IS_SIMPLE_TEST と同じ needs: [config, build_and_deploy] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Rust uses: ./.github/actions/rust-toolchain-from-file - name: Set up Java @@ -446,13 +446,13 @@ jobs: cargo set-version "$VERSION" -p voicevox_core_java_api - name: "Download artifact (android-arm64-cpu)" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: voicevox_core_java_api-android-arm64-cpu path: artifact/android-arm64-cpu - name: "Download artifact (android-x86_64-cpu)" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: voicevox_core_java_api-android-x86_64-cpu path: artifact/android-x86_64-cpu @@ -486,7 +486,7 @@ jobs: - name: Upload to Release if: fromJson(needs.config.outputs.deploy) - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: prerelease: true tag_name: ${{ env.VERSION }} diff --git a/.github/workflows/build_and_deploy_downloader.yml b/.github/workflows/build_and_deploy_downloader.yml index 9daeadea4..d1b9f4a21 100644 --- a/.github/workflows/build_and_deploy_downloader.yml +++ b/.github/workflows/build_and_deploy_downloader.yml @@ -69,7 +69,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install cross compiler for aarch64-unknown-linux-gnu if: matrix.target == 'aarch64-unknown-linux-gnu' @@ -104,7 +104,7 @@ jobs: - name: Upload to Release if: env.VERSION != '0.0.0' - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: prerelease: true tag_name: ${{ env.VERSION }} diff --git a/.github/workflows/cargo-deny.yml b/.github/workflows/cargo-deny.yml index cf600f535..cf2ae2e3d 100644 --- a/.github/workflows/cargo-deny.yml +++ b/.github/workflows/cargo-deny.yml @@ -9,7 +9,7 @@ jobs: cargo-deny: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install cargo-binstall uses: taiki-e/install-action@cargo-binstall - name: Install cargo-deny diff --git a/.github/workflows/download_test.yml b/.github/workflows/download_test.yml index 2a1190e40..9f953534a 100644 --- a/.github/workflows/download_test.yml +++ b/.github/workflows/download_test.yml @@ -184,7 +184,7 @@ jobs: runs-on: ${{ matrix.os }} name: ${{ matrix.name }}-${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Rust uses: ./.github/actions/rust-toolchain-from-file - name: Get prerelease latest version diff --git a/.github/workflows/generate_document.yml b/.github/workflows/generate_document.yml index 37c39a1dd..531e800c3 100644 --- a/.github/workflows/generate_document.yml +++ b/.github/workflows/generate_document.yml @@ -11,13 +11,13 @@ jobs: generate_api_document: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - name: Set up Rust uses: ./.github/actions/rust-toolchain-from-file - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - name: Setup Java @@ -42,7 +42,7 @@ jobs: - name: cp crates/voicevox_core_c_api/include/voicevox_core.h run: cp crates/voicevox_core_c_api/include/voicevox_core.h docs/apis/c_api/doxygen/ - name: Generate doxygen document - uses: mattnotmitt/doxygen-action@v1.9.4 + uses: mattnotmitt/doxygen-action@v1.9.8 with: working-directory: "docs/apis/c_api/doxygen" - name: Build voicevox_core_python_api @@ -60,7 +60,7 @@ jobs: mkdir -p public/apis/java_api cp -r crates/voicevox_core_java_api/lib/build/docs/javadoc/* public/apis/java_api - name: Uplaod api document - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 if: ${{ github.ref_name == 'main' }} with: path: public @@ -78,4 +78,4 @@ jobs: steps: - name: Deploy to GitHub pages id: api - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/java_lint.yml b/.github/workflows/java_lint.yml index ad408e3a7..6b7ff9e46 100644 --- a/.github/workflows/java_lint.yml +++ b/.github/workflows/java_lint.yml @@ -21,7 +21,7 @@ jobs: java-lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-java@v4 with: java-version: "11" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 25d78ec6a..3299f1586 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -10,7 +10,7 @@ jobs: triage: runs-on: ubuntu-latest steps: - - uses: github/issue-labeler@v2.5 + - uses: github/issue-labeler@v3.4 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" configuration-path: .github/labeler.yml diff --git a/.github/workflows/python_lint.yml b/.github/workflows/python_lint.yml index 22449c391..486119e2c 100644 --- a/.github/workflows/python_lint.yml +++ b/.github/workflows/python_lint.yml @@ -21,8 +21,8 @@ jobs: python: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: "3.8" - name: Install Poetry diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d0639d045..cace94823 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: shellcheck: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Update ShellCheck run: | sudo apt-get update @@ -29,7 +29,7 @@ jobs: actionlint: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # ShellCheckとPyflakesをインストールしておくと、shell: bashとshell: pythonのコードを検査してくれるようになる # # 参考: @@ -40,7 +40,7 @@ jobs: sudo apt-get update sudo apt-get install -y shellcheck - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - name: Install Pyflakes @@ -53,7 +53,7 @@ jobs: validate-cargo-lock: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Rust uses: ./.github/actions/rust-toolchain-from-file - name: Validate Cargo.lock @@ -62,13 +62,13 @@ jobs: rust-lint: runs-on: windows-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Rust uses: ./.github/actions/rust-toolchain-from-file with: components: clippy,rustfmt - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - uses: Swatinem/rust-cache@v2 @@ -79,7 +79,7 @@ jobs: rust-unit-test: runs-on: windows-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Rust uses: ./.github/actions/rust-toolchain-from-file - uses: Swatinem/rust-cache@v2 @@ -124,9 +124,9 @@ jobs: include: ${{ fromJson(needs.rust-integration-test-strategy-matrix.outputs.includes) }} runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - name: Set up Rust @@ -140,7 +140,7 @@ jobs: c-header: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Rust uses: ./.github/actions/rust-toolchain-from-file - name: Install cargo-binstall @@ -187,7 +187,7 @@ jobs: artifact_name: linux-x64-cpu-cpp-shared runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Rust uses: ./.github/actions/rust-toolchain-from-file - name: Install cargo-binstall @@ -203,7 +203,7 @@ jobs: cp -v target/debug/libonnxruntime.*.dylib example/cpp/unix/voicevox_core/ || true - if: startsWith(matrix.os, 'mac') - uses: jwlawson/actions-setup-cmake@v1.13 + uses: jwlawson/actions-setup-cmake@v2 - name: Install build dependencies if: startsWith(matrix.os, 'ubuntu') run: | @@ -229,7 +229,7 @@ jobs: shell: pwsh steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Rust uses: ./.github/actions/rust-toolchain-from-file - name: Install cargo-binstall @@ -243,7 +243,7 @@ jobs: cp target/debug/voicevox_core.dll.lib example/cpp/windows/simple_tts/lib/x64/voicevox_core.lib - name: Add MSBuild to PATH - uses: microsoft/setup-msbuild@v1.0.2 + uses: microsoft/setup-msbuild@v2 - name: Restore NuGet packages working-directory: ${{env.GITHUB_WORKSPACE}} run: nuget restore ${{env.SOLUTION_FILE_PATH}} @@ -266,9 +266,9 @@ jobs: shell: bash working-directory: ./crates/voicevox_core_python_api steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - name: Set up Rust @@ -301,7 +301,7 @@ jobs: - os: ubuntu-latest runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Rust uses: ./.github/actions/rust-toolchain-from-file - name: Set up Java diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index a42e05dcf..f7ac45241 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: typos-action - uses: crate-ci/typos@v1.12.12 + uses: crate-ci/typos@v1.21.0 diff --git a/_typos.toml b/_typos.toml index b70ddc608..4c3b0f48b 100644 --- a/_typos.toml +++ b/_typos.toml @@ -1,6 +1,11 @@ # Files for typos # Instruction: https://github.com/marketplace/actions/typos-action#getting-started +[default] +extend-ignore-identifiers-re = [ + "\\bPNGs\\b", # https://github.com/crate-ci/typos/issues/745 +] + [default.extend-identifiers] NdArray="NdArray" # onnxruntime::session::NdArray