Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

Commit

Permalink
tidy up preparing for pr
Browse files Browse the repository at this point in the history
  • Loading branch information
sebranchett committed Mar 30, 2020
1 parent 2bc3dca commit bc76e3e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 67 deletions.
72 changes: 27 additions & 45 deletions .github/workflows/actions.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,43 +26,46 @@ jobs:
fail-fast: false
matrix:
name: [
# ubuntu-gcc,
# ubuntu-clang,
# macOS-gcc,
# macOS-clang,
# windows-gcc,
windows-clang,
ubuntu-gcc,
ubuntu-clang,
macOS-gcc,
macOS-clang,
windows-gcc,
# windows-clang,
]

include:
# - name: ubuntu-gcc
# os: ubuntu-latest
# compiler: gcc
- name: ubuntu-gcc
os: ubuntu-latest
compiler: gcc

# - name: ubuntu-clang
# os: ubuntu-latest
# compiler: clang

# - name: macOS-gcc
# os: macOS-latest
# compiler: gcc
- name: ubuntu-clang
os: ubuntu-latest
compiler: clang

# - name: macOS-clang
# os: macOS-latest
# compiler: clang
- name: macOS-gcc
os: macOS-latest
compiler: gcc

# - name: windows-gcc
# os: windows-latest
# compiler: gcc
- name: macOS-clang
os: macOS-latest
compiler: clang

- name: windows-clang
- name: windows-gcc
os: windows-latest
compiler: clang
compiler: gcc

# - name: windows-clang
# os: windows-latest
# compiler: clang

steps:
- uses: actions/checkout@v1

# - name: Install clang on Windows
# This step leads to the error "C POSIX libraries not found on system.
# Please (re)install development environment." from
# external/CMake/add_boost.cmake
# if: ( contains(matrix.os, 'windows') &&
# contains(matrix.compiler, 'clang') )
# shell: powershell
Expand All @@ -71,25 +74,6 @@ jobs:
# scoop install llvm --global
# # Scoop modifies the PATH so we make the modified PATH global.
# echo "::set-env name=PATH::$env:PATH"
# # echo "::set-env name=POSIX_WIN::/c/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/x86_64-w64-mingw32/include"

- name: Install clang on Windows
if: ( contains(matrix.os, 'windows') &&
contains(matrix.compiler, 'clang') )
shell: powershell
run: |
choco install llvm
echo "::set-env name=PATH::$env:PATH"
# echo "::add-path::c/Program Files/LLVM/bin"
# echo 'SEB after add-path'
# echo $env:PATH
echo 'SEB refresh the env vars'
refreshenv
echo 'SEB new PATH after llvm installation'
echo $env:PATH
echo 'SEB here are all the env vars'
dir env:
asdf

- name: Set Compiler Environment
shell: bash
Expand Down Expand Up @@ -134,8 +118,6 @@ jobs:
# See https://github.com/actions/virtual-environments/issues/10
# and https://stackoverflow.com/questions/3016448/
# how-can-i-get-cmake-to-find-my-alternative-boost-installation
echo 'SEB here is my PATH in CMake action'
echo $PATH
cmake -G "MinGW Makefiles" -DBoost_NO_BOOST_CMAKE=TRUE -DCMAKE_SH="CMAKE_SH-NOTFOUND" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -B . -S ../tudatBundle
- name: Build
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/vsenv.bat

This file was deleted.

4 changes: 0 additions & 4 deletions external/CMake/add_boost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ set(BoostCacheDir "${BOOST_INCLUDEDIR}/build")
file(MAKE_DIRECTORY "${BOOST_INCLUDEDIR}")
file(MAKE_DIRECTORY "${BoostCacheDir}")

if(IS_DIRECTORY "$ENV{POSIX_WIN}")
file(COPY "$ENV{POSIX_WIN}" DESTINATION "${BOOST_INCLUDEDIR}")
endif()

# Force using static libraries as the build libraries are not installed to the system
# or the libs dir added to the path.
set(Boost_USE_STATIC_LIBS ON)
Expand Down

0 comments on commit bc76e3e

Please sign in to comment.