[sfst] Use WeightConvert to convert SignedLog64Weight to Real64Weight
#177
Workflow file for this run
This file contains hidden or 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
| # Copyright 2026 The OpenGrm Authors. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| # See https://github.com/actions/runner-images. | |
| name: "CMake (arm64 macOS)" | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| concurrency: | |
| group: ${{github.workflow }}-${{github.head_ref || github.ref}} | |
| cancel-in-progress: ${{github.ref != 'main'}} | |
| # This gives read-only access to the token. | |
| permissions: read-all | |
| jobs: | |
| build-and-test-arm64-macos-cmake: | |
| runs-on: macos-latest | |
| timeout-minutes: 120 | |
| env: | |
| cache-name: ${{github.job}} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set Build Parallelism | |
| run: | | |
| echo "NPROC=$(getconf _NPROCESSORS_ONLN)" >> $GITHUB_ENV | |
| - name: Setup Python | |
| uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6 | |
| - name: Check Python | |
| run: python --version | |
| - name: Install dependendcies | |
| run: | | |
| brew install --display-times bison | |
| echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH | |
| python3 -m pip install --break-system-packages absl-py cython | |
| - name: Setup ccache | |
| uses: hendrikmuhs/ccache-action@1bbbcda0748b3e340dee71a314fa68ffcbd6df79 # v1.2.21 | |
| with: | |
| key: cmake-cache-${{env.cache-name}} | |
| - name: Configure | |
| run: >- | |
| cmake -S . -B build | |
| -DCMAKE_BUILD_TYPE=Dev | |
| -DCMAKE_C_COMPILER_LAUNCHER=ccache | |
| -DCMAKE_CXX_COMPILER_LAUNCHER=ccache | |
| -DOPENGRM_ENABLE_BIN=ON -DOPENGRM_BUILD_TESTS=ON -DBUILD_SHARED_LIBS=ON | |
| -DOPENGRM_ENABLE_BAUMWELCH=ON -DOPENGRM_ENABLE_SFST=ON | |
| -DOPENGRM_ENABLE_NGRAM=ON -DOPENGRM_ENABLE_THRAX=ON -DOPENGRM_ENABLE_PYNINI=ON | |
| - name: Build | |
| run: | | |
| cmake --build build -j "$NPROC" | |
| - name: Test | |
| run: | | |
| ctest --test-dir build --output-on-failure -j "$NPROC" |