Skip to content

Windows: Test Encryption with the latest version of gpg4win #1112

Windows: Test Encryption with the latest version of gpg4win

Windows: Test Encryption with the latest version of gpg4win #1112

Workflow file for this run

---
name: Linux Build
# yamllint disable-line rule:truthy
on:
- push
jobs:
build:
name: ${{matrix.buildname}}
runs-on: ${{matrix.os}}
strategy:
matrix:
include:
- os: ubuntu-20.04
buildname: Linux-GCC
compiler: g++
coverage: true
compiler_flags: >-
--coverage
-fprofile-arcs
-ftest-coverage
-fprofile-abs-path
compiler_package: g++
with_qt6: false
- os: ubuntu-20.04
buildname: Linux-Clang
compiler: clang++
compiler_package: clang
with_qt6: false
- os: ubuntu-latest
buildname: Qt 6
compiler: g++
compiler_package: g++
with_qt6: true
steps:
- name: Checkout source code
uses: actions/checkout@v3
with:
submodules: false
fetch-depth: 1
- name: Enable ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ github.job }}-${{ matrix.os }}
- name: Set up ccache
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
- name: Install dependencies
uses: nick-invision/retry@v2
env:
WITH_QT6: '${{matrix.with_qt6}}'
with:
timeout_minutes: 10
retry_wait_seconds: 30
max_attempts: 3
command: >-
'${{github.workspace}}/utils/github/install-linux.sh'
'${{matrix.compiler_package}}'
- name: Build with CMake
uses: lukka/run-cmake@v10
with:
configurePreset: Debug
buildPreset: Debug
configurePresetAdditionalArgs: >-
[
'-DCMAKE_CXX_COMPILER=${{matrix.compiler}}',
'-DCMAKE_CXX_FLAGS=${{matrix.compiler_flags}}',
'-DCMAKE_C_FLAGS=${{matrix.compiler_flags}}',
'-DWITH_QT6=${{matrix.with_qt6}}'
]
- name: Create gnupg directory for tests
run: mkdir -p ~/.gnupg
- name: Run tests
working-directory: '${{runner.workspace}}/install/bin'
run: '${{github.workspace}}/utils/github/test-linux.sh'
- name: Update coverage
if: matrix.coverage
env:
COVERALLS_REPO_TOKEN: '${{secrets.COVERALLS_REPO_TOKEN}}'
run: >-
'${{github.workspace}}/utils/github/coverage-linux.sh'
'${{runner.workspace}}/build'