This commit is contained in:
Georgi Gerganov
2021-02-27 20:09:43 +02:00
parent 16f6ae928c
commit a8d53d0377

View File

@@ -2,197 +2,196 @@ name: CI
on: [push] on: [push]
jobs: jobs:
ubuntu-18_04-gcc: ubuntu-18_04-gcc:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
strategy: strategy:
matrix: matrix:
build: [Debug, Release] build: [Debug, Release]
steps: steps:
- name: Clone - name: Clone
uses: actions/checkout@v1 uses: actions/checkout@v1
with: with:
submodules: recursive submodules: recursive
- name: Dependencies - name: Dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install build-essential xorg-dev libglu1-mesa-dev sudo apt-get install build-essential xorg-dev libglu1-mesa-dev
sudo apt-get install cmake; sudo apt-get install cmake;
sudo apt-get install libsdl2-dev; sudo apt-get install libsdl2-dev;
- name: Configure - name: Configure
run: cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }} run: cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
- name: Build - name: Build
run: | run: |
make make
ctest --output-on-failure ctest --output-on-failure
ubuntu-18_04-python: ubuntu-18_04-python:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
strategy: strategy:
matrix: matrix:
python-version: [3.5, 3.6, 3.7, 3.8] python-version: [3.5, 3.6, 3.7, 3.8]
steps: steps:
- name: Clone - name: Clone
uses: actions/checkout@v1 uses: actions/checkout@v1
with: with:
submodules: recursive submodules: recursive
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Dependencies - name: Dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install build-essential sudo apt-get install build-essential
sudo apt-get install cmake; sudo apt-get install cmake;
- name: Configure - name: Configure
run: cmake . -DGGWAVE_SUPPORT_PYTHON=ON -DGGWAVE_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=${{ matrix.build }} run: cmake . -DGGWAVE_SUPPORT_PYTHON=ON -DGGWAVE_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=${{ matrix.build }}
- name: Build - name: Build
run: | run: |
make make
ctest --output-on-failure ctest --output-on-failure
ubuntu-18_04-gcc-sanitized: ubuntu-18_04-gcc-sanitized:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
strategy: strategy:
matrix: matrix:
sanitizer: [ADDRESS, THREAD, UNDEFINED] sanitizer: [ADDRESS, THREAD, UNDEFINED]
steps: steps:
- name: Clone - name: Clone
uses: actions/checkout@v1 uses: actions/checkout@v1
with: with:
submodules: recursive submodules: recursive
- name: Dependencies - name: Dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install build-essential sudo apt-get install build-essential
sudo apt-get install cmake; sudo apt-get install cmake;
- name: Configure - name: Configure
run: cmake . -DCMAKE_BUILD_TYPE=Debug -DGGWAVE_BUILD_EXAMPLES=OFF -DGGWAVE_SANITIZE_${{ matrix.sanitizer }}=ON run: cmake . -DCMAKE_BUILD_TYPE=Debug -DGGWAVE_BUILD_EXAMPLES=OFF -DGGWAVE_SANITIZE_${{ matrix.sanitizer }}=ON
- name: Build - name: Build
run: | run: |
make make
ctest --output-on-failure ctest --output-on-failure
ubuntu-18_04-clang: ubuntu-18_04-clang:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
strategy: strategy:
matrix: matrix:
build: [Release] build: [Release]
steps: steps:
- name: Clone - name: Clone
uses: actions/checkout@v1 uses: actions/checkout@v1
with: with:
submodules: recursive submodules: recursive
- name: Dependencies - name: Dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install build-essential xorg-dev libglu1-mesa-dev sudo apt-get install build-essential xorg-dev libglu1-mesa-dev
sudo apt-get install cmake; sudo apt-get install cmake;
sudo apt-get install libsdl2-dev; sudo apt-get install libsdl2-dev;
- name: Configure - name: Configure
run: cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang run: cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang
- name: Build - name: Build
run: | run: |
make make
ctest --output-on-failure ctest --output-on-failure
macOS-10_14-clang: macOS-10_14-clang:
runs-on: macOS-10.14 runs-on: macOS-10.14
strategy: strategy:
matrix: matrix:
build: [Release] build: [Release]
steps: steps:
- name: Clone - name: Clone
uses: actions/checkout@v1 uses: actions/checkout@v1
with: with:
submodules: recursive submodules: recursive
- name: Dependencies - name: Dependencies
run: | run: |
brew update brew update
brew install sdl2 brew install sdl2
- name: Configure - name: Configure
run: cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }} run: cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
- name: Build - name: Build
run: | run: |
make make
ctest --output-on-failure ctest --output-on-failure
emscripten: Emscripten:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
strategy: strategy:
matrix: matrix:
build: [Release] build: [Release]
steps: steps:
- name: Clone - name: Clone
uses: actions/checkout@v1 uses: actions/checkout@v1
with: with:
submodules: recursive submodules: recursive
- name: Dependencies - name: Dependencies
run: | run: |
wget -q https://github.com/emscripten-core/emsdk/archive/master.tar.gz wget -q https://github.com/emscripten-core/emsdk/archive/master.tar.gz
tar -xvf master.tar.gz tar -xvf master.tar.gz
emsdk-master/emsdk update emsdk-master/emsdk update
emsdk-master/emsdk install latest emsdk-master/emsdk install latest
emsdk-master/emsdk activate latest emsdk-master/emsdk activate latest
- name: Configure - name: Configure
run: echo "tmp" run: echo "tmp"
- name: Build - name: Build
run: | run: |
pushd emsdk-master pushd emsdk-master
source ./emsdk_env.sh source ./emsdk_env.sh
popd popd
emcmake cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }} emcmake cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
make && ctest --output-on-failure make && ctest --output-on-failure
jobs: windows-msys2:
windows-msys2: runs-on: windows-latest
runs-on: windows-latest defaults:
defaults: run:
run: shell: msys2 {0}
shell: msys2 {0} steps:
steps: - uses: actions/checkout@v2
- uses: actions/checkout@v2 - uses: msys2/setup-msys2@v2
- uses: msys2/setup-msys2@v2 with:
with: msystem: MINGW64
msystem: MINGW64 update: true
update: true install: cmake make mingw-w64-x86_64-dlfcn mingw-w64-x86_64-gcc mingw-w64-x86_64-SDL2
install: cmake make mingw-w64-x86_64-dlfcn mingw-w64-x86_64-gcc mingw-w64-x86_64-SDL2
- name: Configure - name: Configure
run: cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }} run: cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
- name: Build - name: Build
run: | run: |
make make
ctest --output-on-failure ctest --output-on-failure