|
@@ -2,22 +2,7 @@ name: CMake
|
|
|
|
|
|
|
|
on:
|
|
on:
|
|
|
push:
|
|
push:
|
|
|
- paths:
|
|
|
|
|
- - '.github/workflows/cmake.yml'
|
|
|
|
|
- - 'src/**'
|
|
|
|
|
- - 'CMakeModules/**'
|
|
|
|
|
- - CMakeLists.txt
|
|
|
|
|
- - 'protocols/**'
|
|
|
|
|
- branches: [ main ]
|
|
|
|
|
tags: [ 'v*' ]
|
|
tags: [ 'v*' ]
|
|
|
- pull_request:
|
|
|
|
|
- paths:
|
|
|
|
|
- - '.github/workflows/cmake.yml'
|
|
|
|
|
- - 'src/**'
|
|
|
|
|
- - 'CMakeModules/**'
|
|
|
|
|
- - CMakeLists.txt
|
|
|
|
|
- - 'protocols/**'
|
|
|
|
|
- branches: [ main ]
|
|
|
|
|
workflow_dispatch:
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
@@ -25,7 +10,7 @@ jobs:
|
|
|
name: Formatting check
|
|
name: Formatting check
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
steps:
|
|
steps:
|
|
|
- - uses: actions/checkout@v4
|
|
|
|
|
|
|
+ - uses: actions/checkout@v7
|
|
|
- name: Run clang-format style check for C/C++ programs.
|
|
- name: Run clang-format style check for C/C++ programs.
|
|
|
uses: jidicula/clang-format-action@v4.18.0
|
|
uses: jidicula/clang-format-action@v4.18.0
|
|
|
with:
|
|
with:
|
|
@@ -47,13 +32,13 @@ jobs:
|
|
|
runs-on: ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
|
steps:
|
|
|
- - uses: actions/checkout@v3
|
|
|
|
|
|
|
+ - uses: actions/checkout@v7
|
|
|
with:
|
|
with:
|
|
|
submodules: true
|
|
submodules: true
|
|
|
|
|
|
|
|
# cache some build information
|
|
# cache some build information
|
|
|
- name: ccache
|
|
- name: ccache
|
|
|
- uses: hendrikmuhs/ccache-action@v1.2
|
|
|
|
|
|
|
+ uses: hendrikmuhs/ccache-action@v1.2.24
|
|
|
with:
|
|
with:
|
|
|
key: ${{ github.job }}-${{ matrix.os }}
|
|
key: ${{ github.job }}-${{ matrix.os }}
|
|
|
|
|
|
|
@@ -95,18 +80,18 @@ jobs:
|
|
|
runs-on: ubuntu-24.04
|
|
runs-on: ubuntu-24.04
|
|
|
|
|
|
|
|
steps:
|
|
steps:
|
|
|
- - uses: actions/checkout@v3
|
|
|
|
|
|
|
+ - uses: actions/checkout@v7
|
|
|
with:
|
|
with:
|
|
|
submodules: true
|
|
submodules: true
|
|
|
|
|
|
|
|
- name: ccache
|
|
- name: ccache
|
|
|
- uses: hendrikmuhs/ccache-action@v1.2
|
|
|
|
|
|
|
+ uses: hendrikmuhs/ccache-action@v1.2.24
|
|
|
with:
|
|
with:
|
|
|
key: ${{ github.job }}-ubuntu-24.04-${{ matrix.build_type }}-${{ matrix.variant }}
|
|
key: ${{ github.job }}-ubuntu-24.04-${{ matrix.build_type }}-${{ matrix.variant }}
|
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
|
- name: Initialize CodeQL
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
# Initializes the CodeQL tools for scanning.
|
|
|
- uses: github/codeql-action/init@v3
|
|
|
|
|
|
|
+ uses: github/codeql-action/init@v4
|
|
|
if: ${{ matrix.build_type == 'Debug' }}
|
|
if: ${{ matrix.build_type == 'Debug' }}
|
|
|
with:
|
|
with:
|
|
|
languages: 'cpp'
|
|
languages: 'cpp'
|
|
@@ -122,13 +107,13 @@ jobs:
|
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
|
- name: Perform CodeQL Analysis
|
|
|
if: ${{ matrix.build_type == 'Debug' }}
|
|
if: ${{ matrix.build_type == 'Debug' }}
|
|
|
- uses: github/codeql-action/analyze@v3
|
|
|
|
|
|
|
+ uses: github/codeql-action/analyze@v4
|
|
|
|
|
|
|
|
- name: Package
|
|
- name: Package
|
|
|
if: ${{ matrix.build_type == 'Release' }}
|
|
if: ${{ matrix.build_type == 'Release' }}
|
|
|
run: tools/package_release.sh build linux-wallpaperengine-${{ matrix.variant }}-ubuntu-24.04-x86_64 "$RUNNER_TEMP"
|
|
run: tools/package_release.sh build linux-wallpaperengine-${{ matrix.variant }}-ubuntu-24.04-x86_64 "$RUNNER_TEMP"
|
|
|
|
|
|
|
|
- - uses: actions/upload-artifact@v4
|
|
|
|
|
|
|
+ - uses: actions/upload-artifact@v7
|
|
|
if: ${{ matrix.build_type == 'Release' }}
|
|
if: ${{ matrix.build_type == 'Release' }}
|
|
|
with:
|
|
with:
|
|
|
name: linux-wallpaperengine-${{ matrix.variant }}
|
|
name: linux-wallpaperengine-${{ matrix.variant }}
|
|
@@ -160,7 +145,7 @@ jobs:
|
|
|
- name: Install dependencies
|
|
- name: Install dependencies
|
|
|
run: ${{ matrix.install }}
|
|
run: ${{ matrix.install }}
|
|
|
|
|
|
|
|
- - uses: actions/checkout@v4
|
|
|
|
|
|
|
+ - uses: actions/checkout@v7
|
|
|
with:
|
|
with:
|
|
|
submodules: true
|
|
submodules: true
|
|
|
|
|
|
|
@@ -173,7 +158,7 @@ jobs:
|
|
|
- name: Package
|
|
- name: Package
|
|
|
run: tools/package_release.sh build linux-wallpaperengine-${{ matrix.variant }}-${{ matrix.distro }}-x86_64 "$RUNNER_TEMP"
|
|
run: tools/package_release.sh build linux-wallpaperengine-${{ matrix.variant }}-${{ matrix.distro }}-x86_64 "$RUNNER_TEMP"
|
|
|
|
|
|
|
|
- - uses: actions/upload-artifact@v4
|
|
|
|
|
|
|
+ - uses: actions/upload-artifact@v7
|
|
|
with:
|
|
with:
|
|
|
name: linux-wallpaperengine-${{ matrix.variant }}-${{ matrix.distro }}
|
|
name: linux-wallpaperengine-${{ matrix.variant }}-${{ matrix.distro }}
|
|
|
path: ${{ runner.temp }}/linux-wallpaperengine-${{ matrix.variant }}-${{ matrix.distro }}-x86_64.tar.gz
|
|
path: ${{ runner.temp }}/linux-wallpaperengine-${{ matrix.variant }}-${{ matrix.distro }}-x86_64.tar.gz
|
|
@@ -186,9 +171,9 @@ jobs:
|
|
|
permissions:
|
|
permissions:
|
|
|
contents: write
|
|
contents: write
|
|
|
steps:
|
|
steps:
|
|
|
- - uses: actions/checkout@v4
|
|
|
|
|
|
|
+ - uses: actions/checkout@v7
|
|
|
|
|
|
|
|
- - uses: actions/download-artifact@v4
|
|
|
|
|
|
|
+ - uses: actions/download-artifact@v8
|
|
|
with:
|
|
with:
|
|
|
path: release
|
|
path: release
|
|
|
merge-multiple: true
|
|
merge-multiple: true
|
|
@@ -214,12 +199,12 @@ jobs:
|
|
|
runs-on: ubuntu-24.04
|
|
runs-on: ubuntu-24.04
|
|
|
|
|
|
|
|
steps:
|
|
steps:
|
|
|
- - uses: actions/checkout@v3
|
|
|
|
|
|
|
+ - uses: actions/checkout@v7
|
|
|
with:
|
|
with:
|
|
|
submodules: true
|
|
submodules: true
|
|
|
|
|
|
|
|
- name: ccache
|
|
- name: ccache
|
|
|
- uses: hendrikmuhs/ccache-action@v1.2
|
|
|
|
|
|
|
+ uses: hendrikmuhs/ccache-action@v1.2.24
|
|
|
with:
|
|
with:
|
|
|
key: ${{ github.job }}-ubuntu-24.04-${{ matrix.build_type }}
|
|
key: ${{ github.job }}-ubuntu-24.04-${{ matrix.build_type }}
|
|
|
|
|
|