Skip to content

Commit

Permalink
fix: clean up workflow's configs
Browse files Browse the repository at this point in the history
  • Loading branch information
saturneric committed Jul 29, 2024
1 parent 8c35a69 commit c0e9ce9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 29 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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: |
Expand Down Expand Up @@ -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
3 changes: 1 addition & 2 deletions .github/workflows/doxygen-genration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
push:
branches: [ main, 'develop' ]
paths-ignore:
- 'resource/locale/template/**'
- 'manual/**'
- 'resource/lfs/locale/**'
- '**.md'

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/release-qt5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit c0e9ce9

Please sign in to comment.