libragephoto/.github/workflows/ubuntu.yml

27 lines
708 B
YAML
Raw Normal View History

2021-08-26 00:22:11 +02:00
name: Ubuntu
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install packages
2021-11-01 19:46:07 +01:00
run: sudo apt-get update -qq && sudo apt-get install cmake git gcc g++ make ninja-build -qq
2021-08-26 00:22:11 +02:00
- 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
2021-09-04 17:27:32 +02:00
run: sudo cmake --install ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}