-
Notifications
You must be signed in to change notification settings - Fork 1
/
matrix-p2.yml
30 lines (30 loc) · 1.21 KB
/
matrix-p2.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
name: Matrix Build Pattern 2
on:
push:
branches:
- test-matrix
jobs:
build:
strategy:
matrix:
cfg:
- { os: ubuntu-latest, name: GNU, cc: gcc, cpp: g++, platform: x32 }
- { os: ubuntu-latest, name: GNU, cc: gcc, cpp: g++, platform: x64 }
- { os: ubuntu-latest, name: Clang, cc: clang, cpp: clang++, platform: x32 }
- { os: ubuntu-latest, name: Clang, cc: clang, cpp: clang++, platform: x64 }
- { os: windows-2016, name: VS2017, cc: cl, cpp: cl, platform: x32 }
- { os: windows-2016, name: VS2017, cc: cl, cpp: cl, platform: x64 }
- { os: windows-2019, name: VS2019, cc: cl, cpp: cl, platform: x32 }
- { os: windows-2019, name: VS2019, cc: cl, cpp: cl, platform: x64 }
runs-on: ${{ matrix.cfg.os }}
steps:
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
- name: Build Project
run: |
echo "Build on ${{ matrix.cfg.os }}-${{ matrix.cfg.platform }}"
echo "name: ${{ matrix.cfg.name }}"
echo "cc: ${{ matrix.cfg.cc }}"
echo "cpp: ${{ matrix.cfg.cpp }}"