-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (39 loc) · 1.44 KB
/
ccpp-ubuntu-gcc.yml
File metadata and controls
51 lines (39 loc) · 1.44 KB
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
name: C/C++ CI (Ubuntu GCC)
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
env:
VCPKG_DEFAULT_HOST_TRIPLET: x64-linux-release
VCPKG_DEFAULT_TRIPLET: x64-linux-release
steps:
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- uses: lukka/get-cmake@latest
- name: List $RUNNER_WORKSPACE before vcpkg is setup
run: find $RUNNER_WORKSPACE
shell: bash
- name: Setup vcpkg
uses: lukka/run-vcpkg@main
id: runvcpkg
- name: List $RUNNER_WORKSPACE before build
run: find $RUNNER_WORKSPACE
shell: bash
- name: Prints output of run-vcpkg's action.
run: echo "root='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}', triplet='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_DEFAULT_TRIPLET_OUT }}' "
- name: Install dependencies
run: |
sudo apt-get install autoconf-archive '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
- name: Compiler check
run: g++ --version
- name: Run CMake
uses: lukka/run-cmake@v10
with:
configurePreset: 'ninja-gcc'
configurePresetAdditionalArgs: "['-DVCPKG_ROOT_TRIPLET=x64-linux-release']"
buildPreset: 'gcc'
- name: List $RUNNER_WORKSPACE after build
run: find $RUNNER_WORKSPACE
shell: bash