Skip to content

First github action

First github action #2

Workflow file for this run

name: ci_meson
on: [push]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: '3.x'
- run: pip install meson ninja
- run: meson setup builddir/
env:
CC: gcc
- run: meson test -C builddir/ -v
- uses: actions/upload-artifact@v1
if: failure()
with:
name: Linux_Meson_Testlog
path: builddir/meson-logs/testlog.txt
# macos:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v1
# - uses: actions/setup-python@v1
# with:
# python-version: '3.x'
# - run: brew install gcc
# - run: pip install meson ninja
# - run: meson setup builddir/
# env:
# CC: gcc
# - run: meson test -C builddir/ -v
# - uses: actions/upload-artifact@v1
# if: failure()
# with:
# name: MacOS_Meson_Testlog
# path: builddir/meson-logs/testlog.txt
#
# windows:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v1
# - uses: actions/setup-python@v1
# with:
# python-version: '3.x'
# - run: pip install meson ninja
# - run: meson setup builddir/
# env:
# CC: gcc
# - run: meson test -C builddir/ -v
# - uses: actions/upload-artifact@v1
# if: failure()
# with:
# name: Windows_Meson_Testlog
# path: builddir/meson-logs/testlog.txt