libragephoto/.github/workflows/ubuntu-c.yml

30 lines
872 B
YAML
Raw Normal View History

name: Ubuntu C
2021-08-26 00:22:11 +02:00
on: push
2021-08-26 00:22:11 +02:00
jobs:
Release:
2021-08-26 00:22:11 +02:00
runs-on: ubuntu-latest
env:
BUILD_TYPE: Release
2021-08-26 00:22:11 +02:00
steps:
2024-12-08 21:55:03 +01:00
- uses: actions/checkout@v4
with:
2021-08-26 00:22:11 +02:00
submodules: recursive
- name: Install packages
run: |
sudo apt-get update -qq
sudo apt-get install cmake gcc g++ 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}} -DRAGEPHOTO_C_LIBRARY=ON -GNinja
2021-08-26 00:22:11 +02:00
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Install
run: cmake --install ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --prefix ${{github.workspace}}/install/usr/local
2021-12-01 09:04:10 +01:00
- name: Upload
2024-12-08 21:55:03 +01:00
uses: actions/upload-artifact@v4
2021-12-01 09:04:10 +01:00
with:
name: Ubuntu
path: |
${{github.workspace}}/install/