|
1 | | -{ |
2 | | - "name": "Build", |
3 | | - "on": { |
4 | | - "push": { |
5 | | - "branches-ignore": "gh-pages", |
6 | | - "tags-ignore": "*", |
7 | | - }, |
8 | | - "pull_request": null, |
9 | | - }, |
| 1 | +name: Build |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches-ignore: gh-pages |
| 5 | + tags-ignore: '*' |
| 6 | + pull_request: null |
10 | 7 |
|
11 | | - "jobs": { |
12 | | - "linux": { |
13 | | - "runs-on": "ubuntu-latest", |
14 | | - "strategy": { |
15 | | - "fail-fast": false, |
16 | | - "matrix": { |
17 | | - "name": ["debian-stable", "debian-heimdal", "centos-8", |
18 | | - "fedora-latest"], |
19 | | - "include": [ |
20 | | - { |
21 | | - "name": "debian-stable", |
22 | | - "distro": "debian:stable", |
23 | | - }, |
24 | | - { |
25 | | - "name": "debian-heimdal", |
26 | | - "distro": "debian:stable", |
27 | | - "krb5_ver": "heimdal", |
28 | | - }, |
29 | | - { |
30 | | - "name": "centos-8", |
31 | | - "distro": "centos:8", |
32 | | - }, |
33 | | - { |
34 | | - "name": "fedora-latest", |
35 | | - "distro": "fedora:latest", |
36 | | - "flake": "yes", |
37 | | - }, |
38 | | - ], |
39 | | - }, |
40 | | - }, |
41 | | - "steps": [ |
42 | | - { |
43 | | - "name": "Check out code", |
44 | | - "uses": "actions/checkout@v2", |
45 | | - }, |
46 | | - { |
47 | | - "name": "Build and test gssapi", |
48 | | - "run": "./ci/run-on-linux.sh ./ci/build.sh", |
49 | | - "env": { |
50 | | - "DISTRO": "${{ matrix.distro }}", |
51 | | - "KRB5_VER": "${{ matrix.krb5_ver }}", |
52 | | - "FLAKE": "${{ matrix.flake }}", |
53 | | - }, |
54 | | - }, |
55 | | - ], |
56 | | - }, |
| 8 | +jobs: |
| 9 | + linux: |
| 10 | + runs-on: ubuntu-latest |
| 11 | + strategy: |
| 12 | + fail-fast: false |
| 13 | + matrix: |
| 14 | + name: |
| 15 | + - debian-stable |
| 16 | + - debian-heimdal |
| 17 | + - centos-8 |
| 18 | + - fedora-latest |
| 19 | + include: |
| 20 | + - name: debian-stable |
| 21 | + distro: debian:stable |
| 22 | + - name: debian-heimdal |
| 23 | + distro: debian:stable |
| 24 | + krb5_ver: heimdal |
| 25 | + - name: centos-8 |
| 26 | + distro: centos:8 |
| 27 | + - name: fedora-latest |
| 28 | + distro: fedora:latest |
| 29 | + flake: 'yes' |
57 | 30 |
|
58 | | - "windows": { |
59 | | - "runs-on": "windows-latest", |
60 | | - "strategy": { |
61 | | - "fail-fast": false, |
62 | | - "matrix": { |
63 | | - "name": [ |
64 | | - "win-py-3.10", |
65 | | - "win-py-3.9", |
66 | | - "win-py-3.8", |
67 | | - "win-py-3.7", |
68 | | - "win-py-3.6", |
69 | | - ], |
70 | | - "arch": [ |
71 | | - "x64", |
72 | | - "x86" |
73 | | - ], |
74 | | - "include": [ |
75 | | - { |
76 | | - "name": "win-py-3.10", |
77 | | - "pyenv": "3.10", |
78 | | - }, |
79 | | - { |
80 | | - "name": "win-py-3.9", |
81 | | - "pyenv": "3.9", |
82 | | - }, |
83 | | - { |
84 | | - "name": "win-py-3.8", |
85 | | - "pyenv": "3.8", |
86 | | - }, |
87 | | - { |
88 | | - "name": "win-py-3.7", |
89 | | - "pyenv": "3.7", |
90 | | - }, |
91 | | - { |
92 | | - "name": "win-py-3.6", |
93 | | - "pyenv": "3.6", |
94 | | - }, |
95 | | - ], |
96 | | - }, |
97 | | - }, |
98 | | - "steps": [ |
99 | | - { |
100 | | - "name": "Check out code", |
101 | | - "uses": "actions/checkout@v2", |
102 | | - }, |
103 | | - { |
104 | | - "name": "Install the right python", |
105 | | - "uses": "actions/setup-python@v2", |
106 | | - "with": { |
107 | | - "python-version": "${{ matrix.pyenv }}", |
108 | | - "architecture": "${{ matrix.arch }}" |
109 | | - }, |
110 | | - }, |
111 | | - { |
112 | | - "name": "Build and test gssapi", |
113 | | - "shell": "bash", |
114 | | - "run": "./ci/build.sh", |
115 | | - "env": { "OS_NAME": "windows" }, |
116 | | - }, |
117 | | - ], |
118 | | - }, |
| 31 | + steps: |
| 32 | + - name: Check out code |
| 33 | + uses: actions/checkout@v2 |
119 | 34 |
|
120 | | - "macos-heimdal": { |
121 | | - "runs-on": "macos-latest", |
122 | | - "steps": [ |
123 | | - { |
124 | | - "name": "Check out code", |
125 | | - "uses": "actions/checkout@v2", |
126 | | - }, |
127 | | - { |
128 | | - "name": "Build and test gssapi", |
129 | | - "run": "./ci/build.sh", |
130 | | - "env": { "KRB5_VER": "heimdal" }, |
131 | | - }, |
132 | | - ], |
133 | | - }, |
134 | | - }, |
135 | | -} |
| 35 | + - name: Build and test gssapi |
| 36 | + run: ./ci/run-on-linux.sh ./ci/build.sh |
| 37 | + env: |
| 38 | + DISTRO: ${{ matrix.distro }} |
| 39 | + KRB5_VER: ${{ matrix.krb5_ver }} |
| 40 | + FLAKE: ${{ matrix.flake }} |
| 41 | + |
| 42 | + windows: |
| 43 | + runs-on: windows-latest |
| 44 | + strategy: |
| 45 | + fail-fast: false |
| 46 | + matrix: |
| 47 | + name: |
| 48 | + - win-py-3.10 |
| 49 | + - win-py-3.9 |
| 50 | + - win-py-3.8 |
| 51 | + - win-py-3.7 |
| 52 | + - win-py-3.6 |
| 53 | + arch: |
| 54 | + - x64 |
| 55 | + - x86 |
| 56 | + include: |
| 57 | + - name: win-py-3.10 |
| 58 | + pyenv: '3.10' |
| 59 | + - name: win-py-3.9 |
| 60 | + pyenv: '3.9' |
| 61 | + - name: win-py-3.8 |
| 62 | + pyenv: '3.8' |
| 63 | + - name: win-py-3.7 |
| 64 | + pyenv: '3.7' |
| 65 | + - name: win-py-3.6 |
| 66 | + pyenv: '3.6' |
| 67 | + |
| 68 | + steps: |
| 69 | + - name: Check out code |
| 70 | + uses: actions/checkout@v2 |
| 71 | + |
| 72 | + - name: Install the right python |
| 73 | + uses: actions/setup-python@v2 |
| 74 | + with: |
| 75 | + python-version: ${{ matrix.pyenv }} |
| 76 | + architecture: ${{ matrix.arch }} |
| 77 | + |
| 78 | + - name: Build and test gssapi |
| 79 | + shell: bash |
| 80 | + run: ./ci/build.sh |
| 81 | + env: |
| 82 | + OS_NAME: windows |
| 83 | + |
| 84 | + macos-heimdal: |
| 85 | + runs-on: macos-latest |
| 86 | + steps: |
| 87 | + - name: Check out code |
| 88 | + uses: actions/checkout@v2 |
| 89 | + |
| 90 | + - name: Build and test gssapi |
| 91 | + run: ./ci/build.sh |
| 92 | + env: |
| 93 | + KRB5_VER: heimdal |
0 commit comments