forked from ROCm/rocm-cmake
-
Notifications
You must be signed in to change notification settings - Fork 1
executable file
·72 lines (68 loc) · 1.96 KB
/
test.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
71
name: rocm-cmake
on: [push, pull_request]
jobs:
cancel:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.6.0
with:
access_token: ${{ github.token }}
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade setuptools pip wheel
python -m pip install cget cmakelang[YAML]
- name: Run linter
run: |
cget build -T analyze -DSPHINX_EXECUTABLE=python3
# python isn't sphinx, but we won't be calling it anyway
test:
runs-on: ${{ matrix.platform }}
strategy:
max-parallel: 4
matrix:
platform:
- ubuntu-20.04
- macos-11
- windows-2019
cmake-version:
- 3.20.0
- 3.10.2
exclude:
- platform: windows-2019
cmake-version: 3.10.2
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.9
with:
cmake-version: ${{ matrix.cmake-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade setuptools pip wheel
python -m pip install cget ninja
python -m pip install -r doc/requirements.txt
python -m pip install -r test/docsphinx/docs/.sphinx/requirements.txt
- name: Install Doxygen
uses: ssciwr/doxygen-install@v1
- name: Run tests
run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
cmake --version
cget build --test
cget build -T doc
cget build -Cy --test -DROCM_CMAKE_GENERATOR=Ninja
cget build -T doc