forked from google/mozc
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (60 loc) · 1.94 KB
/
linux.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
runs-on: ubuntu-24.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
- name: bazel build
working-directory: ./src
env:
USE_BAZEL_VERSION: "7.4.1"
run: |
bazel build --config oss_linux package --config release_build
- 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/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
runs-on: ubuntu-24.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
- name: bazel test
working-directory: ./src
env:
USE_BAZEL_VERSION: "7.4.1"
run: |
bazel test ... --config oss_linux --build_tests_only -c dbg