2023-06-07 06:57:23 +02:00
|
|
|
name: Ubuntu CXX
|
2021-12-02 03:14:19 +01:00
|
|
|
on: push
|
2021-08-26 00:22:11 +02:00
|
|
|
|
|
|
|
|
jobs:
|
2021-12-02 03:14:19 +01:00
|
|
|
Release:
|
2021-08-26 00:22:11 +02:00
|
|
|
runs-on: ubuntu-latest
|
2021-12-02 03:14:19 +01:00
|
|
|
env:
|
|
|
|
|
BUILD_TYPE: Release
|
2025-10-22 02:44:47 +02:00
|
|
|
strategy:
|
|
|
|
|
matrix:
|
|
|
|
|
cxxstd:
|
|
|
|
|
- 11
|
|
|
|
|
- 17
|
2021-08-26 00:22:11 +02:00
|
|
|
steps:
|
2025-10-22 02:44:47 +02:00
|
|
|
- name: Cloning
|
2025-10-24 21:05:30 +02:00
|
|
|
uses: actions/checkout@v5
|
2021-08-26 00:22:11 +02:00
|
|
|
- name: Install packages
|
2021-11-12 03:06:37 +01:00
|
|
|
run: |
|
|
|
|
|
sudo apt-get update -qq
|
2021-12-01 07:52:57 +01:00
|
|
|
sudo apt-get install cmake gcc g++ ninja-build -qq
|
2021-08-26 00:22:11 +02:00
|
|
|
- name: Configure CMake
|
2025-10-22 02:44:47 +02:00
|
|
|
run: cmake -B "${{github.workspace}}/build" -DRAGEPHOTO_CXX_STANDARD=${{matrix.cxxstd}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -GNinja
|
2021-08-26 00:22:11 +02:00
|
|
|
- name: Build
|
2025-10-22 02:44:47 +02:00
|
|
|
run: cmake --build "${{github.workspace}}/build" --config ${{env.BUILD_TYPE}}
|
2021-09-04 17:24:22 +02:00
|
|
|
- name: Install
|
2025-10-22 02:44:47 +02:00
|
|
|
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
|
2025-10-24 21:05:30 +02:00
|
|
|
uses: actions/upload-artifact@v5
|
2021-12-01 09:04:10 +01:00
|
|
|
with:
|
2025-10-22 02:44:47 +02:00
|
|
|
name: Ubuntu C++${{matrix.cxxstd}}
|
2025-10-24 21:05:30 +02:00
|
|
|
path: ${{github.workspace}}/install/
|