name: CI for Linux
# https://github.com/google/mozc/blob/master/docs/build_mozc_in_docker.md

# Run on push.
on: push

# 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/Ubuntu2004-Readme.md
    runs-on: ubuntu-20.04
    timeout-minutes: 60

    steps:
      - name: checkout
        uses: actions/checkout@v2
        with:
          submodules: 'recursive'

      - name: setup
        run: |
          sudo apt-get install -y libibus-1.0-dev qtbase5-dev libgtk2.0-dev libxcb-xfixes0-dev

      - name: build
        working-directory: ./src
        run: |
          bazel build --config oss_linux package

      - name: tests
        working-directory: ./src
        run: |
          bazel test --config oss_linux ... -- -net/... -third_party/...

name: CI for Linux
# https://github.com/google/mozc/blob/master/docs/build_mozc_in_docker.md

# Run on push.
on: push

# 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/Ubuntu2004-Readme.md
    runs-on: ubuntu-20.04
    timeout-minutes: 60

    steps:
      - name: checkout
        uses: actions/checkout@v2
        with:
          submodules: 'recursive'

      - name: setup
        run: |
          sudo apt-get update
          sudo apt-get install -y libibus-1.0-dev qtbase5-dev libgtk2.0-dev libxcb-xfixes0-dev

      - name: build
        working-directory: ./src
        run: |
          bazel build --config oss_linux package

      - name: tests
        working-directory: ./src
        run: |
          bazel test --config oss_linux ... -- -net/... -third_party/...

Fix an error of Linux CI.
Fix an error of Linux CI.

* Added 'apt-get update'.
* https://github.com/google/mozc/issues/554

PiperOrigin-RevId: 435267231
