-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.08 KB
/
ccompile.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
name: "Compile Project on Linux and MacOS"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test-linux-macos:
strategy:
fail-fast: false
matrix:
os-version: [ ubuntu-latest, macos-latest ]
compiler: [ latest, gcc-latest, clang, clang-11, clang++-12, clang++-14, clang++-15 ]
exclude:
- os-version: macos-latest
compiler: latest
- os-version: macos-latest
compiler: gcc-latest
- os-version: macos-latest
compiler: gcc
runs-on: ${{ matrix.os-version }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Compiler
id: install_cc
uses: rlalik/setup-cpp-compiler@master
with:
compiler: ${{ matrix.compiler }}
- name: Check Compiler
shell: bash
env:
CC: ${{ steps.install_cc.outputs.cc }}
CXX: ${{ steps.install_cc.outputs.cxx }}
run: |
$CC --version
$CXX --version
- name: Build
run: make