Skip to content

Commit 9a64fc0

Browse files
committed
Another GHA
1 parent 421715c commit 9a64fc0

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed

.github/workflows/wslcxx.yml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
#
4+
# http://go.microsoft.com/fwlink/?LinkID=615560
5+
6+
name: 'CMake (WSL -std)'
7+
8+
on:
9+
push:
10+
branches: [ "main" ]
11+
pull_request:
12+
branches: [ "main" ]
13+
paths-ignore:
14+
- '*.md'
15+
- LICENSE
16+
- '.azuredevops/*'
17+
- '.nuget/*'
18+
- build/*.ps1
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
24+
strategy:
25+
fail-fast: false
26+
27+
matrix:
28+
build_type: [x64-Debug-Linux, x64-Release-Linux]
29+
gcc: [12, 13, 14]
30+
# x64-Debug-NI-Linux, x64-Release-NI-Linux trigger issue with GCC
31+
32+
steps:
33+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34+
35+
- name: Clone test repository
36+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
37+
with:
38+
repository: walbourn/directxmathtest
39+
path: Tests
40+
ref: main
41+
42+
- uses: seanmiddleditch/gha-setup-ninja@3b1f8f94a2f8254bd26914c4ab9474d4f0015f67 # v6
43+
44+
- name: 'Configure CMake (C++17)'
45+
working-directory: ${{ github.workspace }}/Tests
46+
run: cmake --preset=${{ matrix.build_type }}
47+
env:
48+
CC: gcc-${{ matrix.gcc }}
49+
CXX: g++-${{ matrix.gcc }}
50+
51+
- name: 'Build (C++17)'
52+
working-directory: ${{ github.workspace }}/Tests
53+
run: cmake --build out/build/${{ matrix.build_type }}
54+
55+
- name: 'Clean up'
56+
working-directory: ${{ github.workspace }}
57+
run: rm -rf out
58+
59+
- name: 'Configure CMake (C++11)'
60+
working-directory: ${{ github.workspace }}/Tests
61+
run: cmake --preset=${{ matrix.build_type }} -DBUILD_CXX11=ON
62+
env:
63+
CC: gcc-${{ matrix.gcc }}
64+
CXX: g++-${{ matrix.gcc }}
65+
66+
- name: 'Build (C++11)'
67+
working-directory: ${{ github.workspace }}/Tests
68+
run: cmake --build out/build/${{ matrix.build_type }}
69+
70+
- name: 'Clean up'
71+
working-directory: ${{ github.workspace }}
72+
run: rm -rf out
73+
74+
- name: 'Configure CMake (C++14)'
75+
working-directory: ${{ github.workspace }}/Tests
76+
run: cmake --preset=${{ matrix.build_type }} -DBUILD_CXX14=ON
77+
env:
78+
CC: gcc-${{ matrix.gcc }}
79+
CXX: g++-${{ matrix.gcc }}
80+
81+
- name: 'Build (C++14)'
82+
working-directory: ${{ github.workspace }}/Tests
83+
run: cmake --build out/build/${{ matrix.build_type }}
84+
85+
- name: 'Clean up'
86+
working-directory: ${{ github.workspace }}
87+
run: rm -rf out
88+
89+
- name: 'Configure CMake (C++20)'
90+
working-directory: ${{ github.workspace }}/Tests
91+
run: cmake --preset=${{ matrix.build_type }} -DBUILD_CXX20=ON
92+
env:
93+
CC: gcc-${{ matrix.gcc }}
94+
CXX: g++-${{ matrix.gcc }}
95+
96+
- name: 'Build (C++20)'
97+
working-directory: ${{ github.workspace }}/Tests
98+
run: cmake --build out/build/${{ matrix.build_type }}

0 commit comments

Comments
 (0)