- Introduced new Options structure that are shared by Reranker and St… #262
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: CI for Linux | |
# https://github.com/google/mozc/blob/master/docs/build_mozc_in_docker.md | |
# Run on push. | |
on: push | |
permissions: read-all | |
# Prevent previous workflows from running. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2204-Readme.md | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Setup | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libibus-1.0-dev qt6-base-dev libgl-dev | |
# | |
# Unset the Android NDK setting to skip the unnecessary configuration. | |
echo "ANDROID_NDK_HOME=" >> $GITHUB_ENV | |
# | |
# Work around https://bugreports.qt.io/browse/QTBUG-86080 for Ubuntu 22.04 | |
echo "PKG_CONFIG_PATH=${PWD}/docker/ubuntu22.04/qt6-core-pkgconfig:${PKG_CONFIG_PATH}" >> $GITHUB_ENV | |
- name: bazel build | |
working-directory: ./src | |
run: | | |
bazel build --config oss_linux package | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: mozc.zip | |
path: src/bazel-bin/unix/mozc.zip | |
if-no-files-found: warn | |
test: | |
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2204-Readme.md | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Setup | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libibus-1.0-dev qt6-base-dev libgl-dev | |
# | |
# Unset the Android NDK setting to skip the unnecessary configuration. | |
echo "ANDROID_NDK_HOME=" >> $GITHUB_ENV | |
# | |
# Work around https://bugreports.qt.io/browse/QTBUG-86080 for Ubuntu 22.04 | |
echo "PKG_CONFIG_PATH=${PWD}/docker/ubuntu22.04/qt6-core-pkgconfig:${PKG_CONFIG_PATH}" >> $GITHUB_ENV | |
- name: bazel test | |
working-directory: ./src | |
run: | | |
bazel test ... --config oss_linux --build_tests_only |