Update tests.yml

extensions
Volodymyr Shymanskyy 4 years ago committed by GitHub
parent 121f681d97
commit 62ef44f24b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,48 +5,46 @@ on: [push, pull_request]
jobs: jobs:
build-linux: build-linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: build-linux-${{ matrix.config.target }}
timeout-minutes: 10 timeout-minutes: 10
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
compiler: [gcc, clang] compiler: [gcc, clang]
flags: ["", "-m32"] flags: ["", "-m32"]
build_type: ["-DCMAKE_BUILD_TYPE=Debug", ""] build_type: ["-DCMAKE_BUILD_TYPE=Debug", ""]
exclude: config:
- compiler: clang - {target: clang, cc: clang, }
build_type: "-DCMAKE_BUILD_TYPE=Debug" - {target: clang-x86, cc: clang, flags: -DCMAKE_C_FLAGS="-m32", install: "gcc-multilib" }
- {target: gcc, cc: gcc, }
- compiler: gcc # TODO: fails on numeric operations - {target: gcc-debug, cc: gcc, flags: -DCMAKE_BUILD_TYPE=Debug }
flags: "-m32" # TODO: fails on numeric operations
#- {target: gcc-x86, cc: gcc, flags: "-m32", install: "gcc-multilib" }
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install multilib - name: Install ${{ matrix.config.install }}
if: contains(matrix.flags, '-m32') if: ${{ matrix.config.install }}
run: | run: |
sudo apt update sudo apt update
sudo apt install gcc-multilib sudo apt install ${{ matrix.config.install }}
- name: Run CMake - name: Run CMake
env: env:
CC: ${{ matrix.compiler }} CC: ${{ matrix.config.cc }}
CFLAGS: ${{ matrix.flags }}
run: | run: |
mkdir build mkdir build
cd build cd build
cmake ${{ matrix.build_type }} .. cmake ${{ matrix.config.flags }} ..
- name: Build - name: Build
run: | run: |
cmake --build build cmake --build build
- name: Run spec tests - name: Run spec tests
run: | run: cd test && python3 run-spec-test.py
cd test
./run-spec-test.py
- name: Run WASI tests - name: Run WASI tests
run: | run: cd test && python3 run-wasi-test.py
cd test
./run-wasi-test.py
build-mac: build-mac:
runs-on: macos-latest runs-on: macos-latest

Loading…
Cancel
Save