Skip to content

Commit

Permalink
night
Browse files Browse the repository at this point in the history
  • Loading branch information
danpf committed Nov 15, 2023
1 parent 5c65820 commit e474ed0
Showing 1 changed file with 29 additions and 15 deletions.
44 changes: 29 additions & 15 deletions .github/workflows/cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,51 @@ jobs:
matrix:
include:
- os: ubuntu-22.04
cc: "gcc"
cxx: "g++"
cc: gcc
cxx: g++
shell: bash
- os: ubuntu-18.04
env: ARCH=x86
cc: "gcc-4.8"
cxx: "g++-4.8"
cc: gcc-4.8
cxx: g++-4.8
shell: bash
- os: ubuntu-22.04
env: EMSCRIPTEN=ON
cc: "gcc"
cxx: "g++"
cc: gcc
cxx: g++
shell: bash
- os: ubuntu-22.04
cc: "clang"
cxx: "clang++"
cc: clang
cxx: clang++
shell: bash
- os: ubuntu-22.04
env: CMAKE_EXTRA="-DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS='-march=native'"
cc: "gcc"
cxx: "g++"
cc: gcc
cxx: g++
shell: bash
- os: macos-latest
cc: "clang"
cxx: "clang++"
cc: clang
cxx: clang++
shell: bash
- os: windows-latest
cc: "gcc"
cxx: "g++"
cc: gcc
cxx: g++
shell: 'msys2 {0}'
runs-on: ${{ matrix.os }}
defaults:
run:
shell: ${{ matrix.shell }}

steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0

- name: install mingw
uses: msys2/setup-msys2@v2
if: matrix.os == 'windows-latest'

- name: Install Dependencies
run: |
if [ "${{ matrix.env }}" = "ARCH=x86" ]; then
Expand All @@ -64,7 +78,7 @@ jobs:
mkdir build && cd build
export CC=${{matrix.cc}}
export CXX=${{matrix.cxx}}
cmake -Dmmtf_build_examples=ON -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=debug ..
${{matrix.env}} cmake -Dmmtf_build_examples=ON -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=debug ..
make -j2
echo "lol"
ls
Expand Down

0 comments on commit e474ed0

Please sign in to comment.