-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (56 loc) · 1.48 KB
/
main.yml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: CI
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
jobs:
run:
name: check
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, ubuntu-20.04, windows-2022, windows-2019, macos-12, macos-11, macos-10.15]
steps:
- uses: actions/checkout@v3
- name: Print environment variables
run: env
- name: Python version
run: python3 --version
- name: Install dependencies
run: pip3 install -r requirements.txt
- name: Run pylint
run: |
pip3 install pylint
pylint install_cmake.py install_cmake_tests.py
- name: Run unit tests
run: python3 install_cmake_tests.py
- name: Install CMake (default)
uses: ./
- name: Install CMake RC (if available)
uses: ./
with:
release-candidate: true
- name: Install CMake 3.23.0
uses: ./
with:
version: 3.23.0
- name: Install CMake where version has quotes
uses: ./
with:
version: '3.23.0'
- name: Install CMake 3.20.0 (minimum)
uses: ./
with:
version: 3.20.0
- name: Install CMake 3.19.0 (not supported)
uses: ./
with:
version: 3.19.0
continue-on-error: true
- name: Install CMake fails with bad version option
uses: ./
with:
version: nonsense
continue-on-error: true