Skip to content

Commit

Permalink
Add GitHub actions build config.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpounds committed Sep 1, 2019
1 parent 93e9c54 commit b07ef4b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build
on: push
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
cxx:
- clang++
- cl.exe
- g++
include:
- os: ubuntu-18.04
cxx: clang++
run: "true"
- os: ubuntu-18.04
cxx: g++
run: "true"
- os: windows-2019
cxx: cl.exe
run: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"'
name: ${{ matrix.os }} - ${{ matrix.cxx }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: 2.x
- run: pip install scons
- run: ${{ matrix.run }}
- run: scons
env:
CXX: ${{ matrix.cxx }}
7 changes: 6 additions & 1 deletion Build/NTEnvironment.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ def __init__(self, **kw):

def ConfigureCompiler(self):
cxx = self.WhereIs(self['CXX'])
cxx_bin = os.path.basename(cxx).lower()
cxx = os.path.normpath(cxx)
cxx_bin = os.path.basename(cxx)
cxx_dir = os.path.dirname(cxx)

print "XXX: " + cxx
print "XXX: " + cxx_bin
print "XXX: " + cxx_dir

if cxx_bin.startswith("cl"):
common = cxx_dir + "\..\.."
if os.path.exists(common + "\Common\IDE"):
Expand Down

0 comments on commit b07ef4b

Please sign in to comment.