Skip to content

Commit b07ef4b

Browse files
committed
Add GitHub actions build config.
1 parent 93e9c54 commit b07ef4b

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build
2+
on: push
3+
jobs:
4+
build:
5+
runs-on: ${{ matrix.os }}
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
cxx:
10+
- clang++
11+
- cl.exe
12+
- g++
13+
include:
14+
- os: ubuntu-18.04
15+
cxx: clang++
16+
run: "true"
17+
- os: ubuntu-18.04
18+
cxx: g++
19+
run: "true"
20+
- os: windows-2019
21+
cxx: cl.exe
22+
run: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"'
23+
name: ${{ matrix.os }} - ${{ matrix.cxx }}
24+
steps:
25+
- uses: actions/checkout@v1
26+
- uses: actions/setup-python@v1
27+
with:
28+
python-version: 2.x
29+
- run: pip install scons
30+
- run: ${{ matrix.run }}
31+
- run: scons
32+
env:
33+
CXX: ${{ matrix.cxx }}

Build/NTEnvironment.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@ def __init__(self, **kw):
1515

1616
def ConfigureCompiler(self):
1717
cxx = self.WhereIs(self['CXX'])
18-
cxx_bin = os.path.basename(cxx).lower()
18+
cxx = os.path.normpath(cxx)
19+
cxx_bin = os.path.basename(cxx)
1920
cxx_dir = os.path.dirname(cxx)
2021

22+
print "XXX: " + cxx
23+
print "XXX: " + cxx_bin
24+
print "XXX: " + cxx_dir
25+
2126
if cxx_bin.startswith("cl"):
2227
common = cxx_dir + "\..\.."
2328
if os.path.exists(common + "\Common\IDE"):

0 commit comments

Comments
 (0)