File: windows.yml

package info (click to toggle)
kimageannotator 0.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,904 kB
  • sloc: cpp: 21,502; makefile: 16; ansic: 13
file content (51 lines) | stat: -rw-r--r-- 1,212 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: windows

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    runs-on: windows-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v2

    - name: Set up build variables
      run: bash ./.github/scripts/setup_build_variables.sh

    - name: Set up windows build variables
      run: bash ./.github/scripts/windows/setup_windows_build_variables.sh

    - name: Install Qt
      uses: jurplel/install-qt-action@v2
      with:
        version: '5.15.2'
        host: 'windows'
        install-deps: 'true'
        arch: 'win64_msvc2019_64'

    - name: Set up nmake
      uses: ilammy/msvc-dev-cmd@v1

    - name: Set up kColorPicker
      run: bash ./.github/scripts/setup_kColorPicker.sh

    - name: Set up GoogleTest
      run: bash ./.github/scripts/setup_googleTest.sh

    - name: Add GoogleTest bin dir to PATH
      uses: myci-actions/export-env-var-powershell@1
      with:
        name: PATH
        value: $env:PATH;$env:INSTALL_PREFIX/bin

    - name: Build
      run: bash ./.github/scripts/build_kImageAnnotator.sh

    - name: Test
      working-directory: ${{github.workspace}}/build/tests
      run: ctest --extra-verbose