Skip to content

Commit 9847f66

Browse files
authored
CI: switch to Ubuntu 18.04 and 20.04
also simplify by using strategy:matrix:
1 parent 3f49a12 commit 9847f66

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

.github/workflows/ccpp.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
build-xenial:
11-
runs-on: ubuntu-16.04
10+
build-ubuntu:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-18.04, ubuntu-20.04]
1215
steps:
1316
- uses: actions/checkout@v2
1417
- name: install-deps
@@ -20,18 +23,3 @@ jobs:
2023
cmake --build build
2124
- name: install
2225
run: sudo cmake --install ${{ github.workspace }}/build
23-
24-
build-latest:
25-
runs-on: ubuntu-latest
26-
steps:
27-
- uses: actions/checkout@v2
28-
- name: install-deps
29-
run: sudo apt install libyaml-cpp-dev libatasmart-dev cmake
30-
- name: build
31-
run: |
32-
mkdir build
33-
cmake -B build
34-
cmake --build build
35-
- name: install
36-
run: sudo cmake --install ${{ github.workspace }}/build
37-

0 commit comments

Comments
 (0)