-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (39 loc) · 969 Bytes
/
ubuntu.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
name: Ubuntu
on:
push:
branches:
- master
- release/*
paths-ignore:
- docs/*
- README.md
pull_request:
paths-ignore:
- docs/*
- README.md
defaults:
run:
shell: bash
jobs:
gcc_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install gcc 11
run: |
sudo apt update
sudo apt install gcc-11 g++-11
- name: Install dependencies
run: |
sudo apt install libhidapi-dev libssl-dev
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake
working-directory: ${{github.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Release
env:
CC: gcc-11
CXX: g++-11
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --config Release