Skip to content

Commit

Permalink
CI: switch to Ubuntu 18.04 and 20.04
Browse files Browse the repository at this point in the history
also simplify by using strategy:matrix:
  • Loading branch information
vmatare committed Sep 22, 2021
1 parent 3f49a12 commit 9847f66
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ on:
branches: [ master ]

jobs:
build-xenial:
runs-on: ubuntu-16.04
build-ubuntu:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: install-deps
Expand All @@ -20,18 +23,3 @@ jobs:
cmake --build build
- name: install
run: sudo cmake --install ${{ github.workspace }}/build

build-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install-deps
run: sudo apt install libyaml-cpp-dev libatasmart-dev cmake
- name: build
run: |
mkdir build
cmake -B build
cmake --build build
- name: install
run: sudo cmake --install ${{ github.workspace }}/build

0 comments on commit 9847f66

Please sign in to comment.