Skip to content

[sfst] Use WeightConvert to convert SignedLog64Weight to Real64Weight #190

[sfst] Use WeightConvert to convert SignedLog64Weight to Real64Weight

[sfst] Use WeightConvert to convert SignedLog64Weight to Real64Weight #190

Workflow file for this run

# 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 (x64 Linux)"
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-x64-linux-cmake:
runs-on: ubuntu-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 Python dependendcies
run: |
python3 -m pip install --break-system-packages absl-py cython
- name: Install System dependencies
run: |
sudo apt-get update
sudo apt-get install -y bison flex
- 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"