fix: clean up workflow's configs

This commit is contained in:
saturneric 2024-07-29 14:19:06 +02:00
parent 8c35a697e3
commit c0e9ce9bc2
4 changed files with 9 additions and 29 deletions

View File

@ -15,15 +15,12 @@ on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '19 14 * * 2'
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Debug
EXECUTABLE_OUTPUT_PATH: ./
jobs:
analyze:
@ -38,9 +35,6 @@ jobs:
fail-fast: false
matrix:
language: [ 'cpp' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
steps:
- name: Checkout repository
@ -49,15 +43,10 @@ jobs:
lfs: 'false'
submodules: recursive
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
- name: Install Dependence
run: |
@ -102,8 +91,8 @@ jobs:
- name: Configure CMake && Build GpgFrontend
run: |
cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DGPGFRONTEND_BUILD_TYPE_TEST_UI=ON
cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DGPGFRONTEND_BUILD_TYPE_STABLE=ON
cmake --build ${{github.workspace}}/build --config {{$env.BUILD_TYPE}} -- -v
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3

View File

@ -4,8 +4,7 @@ on:
push:
branches: [ main, 'develop' ]
paths-ignore:
- 'resource/locale/template/**'
- 'manual/**'
- 'resource/lfs/locale/**'
- '**.md'
jobs:

View File

@ -4,20 +4,17 @@ on:
push:
branches: [ main, 'develop' ]
paths-ignore:
- 'resource/locale/**'
- 'manual/**'
- 'resource/lfs/locale/**'
- '**.md'
pull_request:
branches: [ main, 'develop' ]
paths-ignore:
- 'resource/locale/**'
- 'manual/**'
- 'resource/lfs/locale/**'
- '**.md'
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
EXECUTABLE_OUTPUT_PATH: ./
jobs:
build:

View File

@ -4,20 +4,17 @@ on:
push:
branches: [ main, 'develop' ]
paths-ignore:
- 'resource/locale/**'
- 'manual/**'
- 'resource/lfs/locale/**'
- '**.md'
pull_request:
branches: [ main, 'develop' ]
paths-ignore:
- 'resource/locale/**'
- 'manual/**'
- 'resource/lfs/locale/**'
- '**.md'
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
# Customize the CMake build type here (Release, Debug, etc.)
BUILD_TYPE: Release
EXECUTABLE_OUTPUT_PATH: ./
jobs:
build:
@ -252,8 +249,6 @@ jobs:
--team-id ${{secrets.APPLE_DEVELOPER_TEAM_ID}} \
--password ${{secrets.APPLE_DEVELOPER_ID_SECRET}} \
${{github.workspace}}/build/GpgFrontend-${{env.sha_short}}-x86_64.zip
echo "BUILD_TYPE_LOWER=$(echo ${BUILD_TYPE} | tr '[:upper:]' '[:lower:]')" >> ${GITHUB_ENV}
echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> ${GITHUB_ENV}
if: matrix.os == 'macos-13' || matrix.os == 'macos-12' || matrix.os == 'macos-14'
@ -292,7 +287,7 @@ jobs:
run: |
cd $(echo "/${{github.workspace}}" | sed 's/\\/\//g' | sed 's/://')
mkdir -p build/artifacts/modules
cp -r modules/build/artifacts/* build/artifacts/modules
cp -r modules/build/artifacts/bin/* build/artifacts/modules
cd build
windeployqt-qt6 --force ./artifacts/GpgFrontend.exe
echo "BUILD_TYPE_LOWER=${BUILD_TYPE,,}" >> ${GITHUB_ENV}