aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2020-09-08 17:10:03 -0700
committerHaibo Huang <hhb@google.com>2020-09-10 22:20:42 +0000
commitbffa8499cb8ce3cc4366055be8fe62d501d6a8e5 (patch)
tree648dfaada5799a6227dd5f1af43d89ed8d71d96d /.github/workflows
parente4e474780d90ed6166f7113a7464371baa275007 (diff)
downloadplatform_external_libxkbcommon-master.tar.gz
platform_external_libxkbcommon-master.tar.bz2
platform_external_libxkbcommon-master.zip
Upgrade libxkbcommon to xkbcommon-1.0.0HEADmaster
1. Run meson build locally: meson config -Denable-x11=false -Denable-wayland=false -Denable-docs=false 2. Copy over generated parser.h / parser.c 3. Copy over config.h, and remove defines for not supported functions. Change-Id: Id7f3c822c1d958fa541685344961507bcfa03b17
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/main.yml94
1 files changed, 94 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..308f584
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,94 @@
+name: CI
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ linux:
+ runs-on: ubuntu-18.04
+ strategy:
+ matrix:
+ compiler: [clang, gcc]
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v1
+ with:
+ python-version: '3.7'
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip meson
+ sudo apt update -y
+ sudo env DEBIAN_FRONTEND=noninteractive apt install -y \
+ doxygen libxcb-xkb-dev valgrind ninja-build \
+ libwayland-dev wayland-protocols bison graphviz
+ - name: Setup
+ run: |
+ meson setup build
+ env:
+ CC: ${{ matrix.compiler }}
+ - name: Build
+ run: |
+ meson compile -C build
+ - name: Test
+ run:
+ meson test -C build --print-errorlogs --setup=valgrind --no-suite python-tests
+
+ macos:
+ runs-on: macos-10.15
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v1
+ with:
+ python-version: '3.7'
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip meson
+ brew install doxygen bison ninja
+ brew link bison --force
+ env:
+ HOMEBREW_NO_AUTO_UPDATE: 1
+ HOMEBREW_NO_INSTALL_CLEANUP: 1
+ - name: Setup
+ run: |
+ PATH="/usr/local/opt/bison/bin:${PATH}" meson setup -Denable-wayland=false -Denable-x11=false -Denable-xkbregistry=false build
+ - name: Build
+ run: |
+ PATH="/usr/local/opt/bison/bin:${PATH}" meson compile -C build
+ - name: Test
+ run:
+ meson test -C build --print-errorlogs
+
+ windows:
+ runs-on: windows-2019
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v1
+ with:
+ python-version: '3.7'
+ - name: Install dependencies
+ shell: powershell
+ run: |
+ python -m pip install --upgrade pip meson
+ Invoke-WebRequest -Uri https://github.com/ninja-build/ninja/releases/download/v1.10.1/ninja-win.zip -OutFile ninja.zip
+ Invoke-WebRequest -Uri https://github.com/lexxmark/winflexbison/releases/download/v2.5.23/win_flex_bison-2.5.23.zip -OutFile win_flex_bison.zip
+ Expand-Archive -Path win_flex_bison.zip -DestinationPath bin
+ Expand-Archive -Path ninja.zip -DestinationPath bin
+ Write-Output ("::add-path::" + (Get-Location) + "./bin")
+ - name: Setup
+ shell: cmd
+ run: |
+ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
+ meson setup -Denable-wayland=false -Denable-x11=false -Denable-docs=false -Denable-xkbregistry=false build
+ env:
+ CC: cl
+ - name: Build
+ shell: cmd
+ run: |
+ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
+ meson compile -C build
+ - name: Test
+ run:
+ meson test -C build --print-errorlogs