-
-
Notifications
You must be signed in to change notification settings - Fork 534
50 lines (48 loc) · 1.86 KB
/
CI_archlinux.yml
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
name: ArchLinux
on:
push:
branches-ignore:
- 'l10n_**' # Push events to translation service branches (that begin with "l10n_")
# Sequence of patterns matched against refs/tags
tags:
- '*'
pull_request:
# Match all pull requests
jobs:
archlinux-latest-gcc:
strategy:
matrix:
include:
- name: ":LATEST (CMake) [GCC]"
cc: '/usr/bin/gcc'
cxx: '/usr/bin/g++'
- name: ":LATEST (CMake) [Clang]"
cc: '/usr/bin/clang'
cxx: '/usr/bin/clang++'
fail-fast: false
name: '${{ matrix.name }}'
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Prepare Git Repo for autorevision
run: cmake -P .ci/githubactions/prepare_git_repo.cmake
- name: Init Git Submodules
run: git submodule update --init --recursive
- name: Build the Docker image
run: |
cd docker/archlinux-latest/
docker build -t archlinux .
cd ../..
- name: CMake Configure
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
run: docker run --rm -e CC -e CXX -e "CI=true" -e GITHUB_WORKFLOW -e GITHUB_ACTIONS -e GITHUB_REPOSITORY -e "GITHUB_WORKSPACE=/code" -e GITHUB_SHA -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e MAKEFLAGS -v $(pwd):/code archlinux cmake '-H.' -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWZ_ENABLE_WARNINGS:BOOL=ON -G"Ninja"
- name: CMake Build
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
run: docker run --rm -e CC -e CXX -e "CI=true" -e GITHUB_WORKFLOW -e GITHUB_ACTIONS -e GITHUB_REPOSITORY -e "GITHUB_WORKSPACE=/code" -e GITHUB_SHA -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e MAKEFLAGS -v $(pwd):/code archlinux cmake --build build