Skip to content

Commit 83d1f15

Browse files
authored
Merge branch 'master' into master
2 parents c1d72ec + 3025968 commit 83d1f15

16 files changed

+8412
-7889
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Source: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
2+
name: Tests on multiple platforms
3+
4+
on:
5+
push:
6+
pull_request:
7+
branches: [ "master" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ${{ matrix.os }}
13+
14+
strategy:
15+
fail-fast: false
16+
17+
matrix:
18+
include:
19+
- os: windows-latest
20+
compiler: ""
21+
- os: ubuntu-latest
22+
compiler: gcc
23+
- os: ubuntu-latest
24+
compiler: clang
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- uses: ilammy/msvc-dev-cmd@v1
30+
if: ${{ matrix.os == 'windows-latest' }}
31+
32+
- name: Build and run tests (Windows)
33+
if: ${{ matrix.os == 'windows-latest' }}
34+
run: |
35+
nmake -f Makefile.win64
36+
37+
Get-ChildItem "." -Filter '*.exe' |
38+
Foreach-Object {
39+
Write-Output "--- RUNNING $_ ---"
40+
Invoke-Expression $_
41+
Write-Output "--- done RUNNING $_ ---"
42+
}
43+
44+
working-directory: ${{ github.workspace }}/test
45+
shell: pwsh
46+
47+
- name: Build and run tests (Ubuntu)
48+
if: ${{ matrix.os == 'ubuntu-latest' }}
49+
run: |
50+
make -f Makefile.linux64.${{ matrix.compiler }}
51+
compiler=${{ matrix.compiler }}
52+
for f in $(find . -type f -name "*.cpp"); do
53+
if [[ -z "${f##*win.cpp}" ]]; then
54+
continue
55+
fi
56+
57+
f=${f%.cpp}
58+
59+
if [ ${compiler}="clang" ] && [[ $f == *virtual* ]]; then
60+
continue
61+
fi
62+
63+
echo "--- RUNNING $f ---"
64+
${f}
65+
echo "--- done RUNNING $f ---"
66+
done
67+
working-directory: ${{ github.workspace }}/test
68+
shell: bash

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.ccls-cache
2+
replit*

.replit

-2
This file was deleted.

0 commit comments

Comments
 (0)