Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build with cmake #1

Open
wants to merge 3 commits into
base: cmake
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: cmake

on:
push:
branches:
- cmake
pull_request:

jobs:
linux:
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- name: Setup User
run: |
useradd -m builduser

- name: Install dependencies
run: |
pacman -Syu --noconfirm base-devel git bazel python

- uses: actions/checkout@v4
with:
submodules: true

- name: Build mozc_data.inc
run: |
cd src
chown -R builduser:builduser .
sudo -u builduser bazel build --config oss_linux --host_cxxopt=-Wno-uninitialized //data_manager/oss:mozc_data.inc

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: mozc_data.inc
path: |
bazel-bin/data_manager/oss/mozc_data.inc

- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
Loading