Skip to content

Merge pull request #2 from symplely/master #2

Merge pull request #2 from symplely/master

Merge pull request #2 from symplely/master #2

Workflow file for this run

name: windows & linux
on: [push, pull_request]
jobs:
build:
name: ${{ matrix.target }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- target: amd64
flags: -O3 -fomit-frame-pointer
- target: x86
flags: -m32 -O3 -fomit-frame-pointer
steps:
- uses: actions/checkout@v3
- name: Prepare
run: |
sudo dpkg --add-architecture i386
sudo apt-get update -q -y
sudo apt-get install -y gcc-multilib g++-multilib valgrind libc6-dbg libc6-dbg:i386
- name: cmake build & test example
run: |
mkdir build
cd build
cmake ..
cmake --build .
cd bin
./chan_3
./primes
./testdelay 2
build-windows:
name: Windows (${{ matrix.arch }})
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
arch: [amd64, x86]
steps:
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- uses: actions/checkout@v3
- name: cmake build & test examples
run: |
mkdir build
cd build
cmake .. -D CMAKE_GENERATOR_PLATFORM=Win32
cmake --build .
cd bin/Debug
.\chan_1.exe
.\chan_2.exe
.\chan_3.exe
.\primes.exe
.\testdelay.exe 2