-
Notifications
You must be signed in to change notification settings - Fork 4
105 lines (90 loc) · 3.23 KB
/
build.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: Build
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
BUILD_TYPE: debug
CTEST_OUTPUT_ON_FAILURE: 1
jobs:
build-cmake:
name: Build with CMake
runs-on: ubuntu-latest
container: archlinux:base-devel
steps:
- uses: actions/checkout@v3
- name: install deps
run: |
pacman -Syu --noconfirm cmake pkg-config ninja clang mold llvm git
shell: bash
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCOS_INSTALLER_BUILD_TESTS=ON
- name: Build & Test
# Build your program with the given configuration
run: |
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
cd ${{github.workspace}}/build
./gucc/tests/test-initcpio
./gucc/tests/test-pacmanconf
shell: bash
build-cmake_withoutdev:
name: Build with CMake (DEVENV OFF)
runs-on: ubuntu-latest
container: archlinux:base-devel
steps:
- uses: actions/checkout@v3
- name: install deps
run: |
pacman -Syu --noconfirm cmake pkg-config ninja clang mold llvm git
shell: bash
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_DEVENV=OFF
- name: Build
# Build your program with the given configuration
run: |
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
shell: bash
build-meson:
name: Build with Meson
runs-on: ubuntu-latest
container: archlinux:base-devel
steps:
- uses: actions/checkout@v3
- name: install deps
run: |
pacman -Syu --noconfirm pkg-config ninja meson clang mold llvm git
shell: bash
- name: Configure Meson
run: meson setup --buildtype=${{env.BUILD_TYPE}} -Dbuild_tests=true ${{github.workspace}}/build
- name: Build & Test
# Build your program with the given configuration
run: |
meson compile -C ${{github.workspace}}/build
cd ${{github.workspace}}/build
./gucc/tests/test-initcpio
./gucc/tests/test-pacmanconf
shell: bash
build-meson_withoutdev:
name: Build with Meson (DEVENV OFF)
runs-on: ubuntu-latest
container: archlinux:base-devel
steps:
- uses: actions/checkout@v3
- name: install deps
run: |
pacman -Syu --noconfirm pkg-config ninja meson clang mold llvm git
shell: bash
- name: Configure CMake
run: meson setup --buildtype=${{env.BUILD_TYPE}} -Dbuild_tests=true -Ddevenv=false ${{github.workspace}}/build
- name: Build
# Build your program with the given configuration
run: |
meson compile -C ${{github.workspace}}/build
shell: bash