28 lines
719 B
YAML
28 lines
719 B
YAML
name: Ubuntu
|
|
|
|
on:
|
|
push:
|
|
branches: [ test ]
|
|
pull_request:
|
|
branches: [ test ]
|
|
|
|
env:
|
|
BUILD_TYPE: Release
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
- name: Install packages
|
|
run: |
|
|
sudo apt-get update -qq
|
|
sudo apt-get install cmake git gcc g++ make ninja-build -qq
|
|
- name: Configure CMake
|
|
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -GNinja
|
|
- name: Build
|
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
|
- name: Install
|
|
run: sudo cmake --install ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|