Skip to content

Commit

Permalink
First github action
Browse files Browse the repository at this point in the history
Signed-off-by: Frederik Bertling <[email protected]>
  • Loading branch information
Burtan committed Apr 27, 2024
1 parent d233951 commit a351cf3
Showing 1 changed file with 56 additions and 60 deletions.
116 changes: 56 additions & 60 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,67 +1,63 @@
name: ci_meson

on:
push:
paths:
- "**.cpp"
- "**.h"
pull_request:
paths:
- "**.cpp"
- "**.h"
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
- run: echo "Running"
# 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

0 comments on commit a351cf3

Please sign in to comment.