steps:
- name: Build Gwion
- uses: fennecdjay/gwion-action@v4
+ uses: fennecdjay/gwion-action@v5
with:
- USE: ${{ matrix.double }}
- RUN: true
+ use: ${{ matrix.double }}
+ run: true
env:
CC: ${{ matrix.cc }}
CFLAGS: -fsanitize=address -fno-omit-frame-pointer
+name: Linux
-name: MacOS
-
-on: [push]
+on:
+ push:
+ branches:
+ - '**'
+ - '!gh-pages'
jobs:
build:
- name: ${{ matrix.cc }} ${{ matrix.double && 'double' || ''}}
+ name: ${{ matrix.cc }} ${{ matrix.double && 'double' || 'float'}}
runs-on: macos-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
strategy:
double: [0, 1]
steps:
- - uses: actions/checkout@v1
- - name: submodules
- run: git submodule update --init util ast
- - name: make
- env:
- USE_DOUBLE: ${{ matrix.double }}
- CFLAGS: -fsanitize=address -fno-omit-frame-pointer
- LDFLAGS: -fsanitize=address -fno-omit-frame-pointer
- run: make CC=${{ matrix.cc }} USE_DOUBLE=${{ matrix.double }}
- - name: make test
+ - name: Build Gwion
+ uses: fennecdjay/gwion-action@v5
+ with:
+ use: ${{ matrix.double }}
+ run: true
env:
+ CC: ${{ matrix.cc }}
+ CFLAGS: -fsanitize=address -fno-omit-frame-pointer
+ LDFLAGS: -fsanitize=address -fno-omit-frame-pointer
VALGRIND: NO_VALGRIND
USE_MEMCHECK: 0
SEVERITY: 3
- run: make test
+name: Linux
-name: Windows
-
-on: [push]
+on:
+ push:
+ branches:
+ - '**'
+ - '!gh-pages'
jobs:
build:
+ name: ${{ matrix.cc }} ${{ matrix.double && 'double' || 'float'}}
runs-on: windows-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
strategy:
matrix:
+ cc: [gcc, clang]
double: [0, 1]
steps:
- - uses: actions/checkout@v1
- - name: deps
- run: git submodule update --init util ast
- - name: build
+ - name: Build Gwion
+ uses: fennecdjay/gwion-action@v5
+ with:
+ use: ${{ matrix.double }}
+ run: true
env:
- CFLAGS: -DBUILD_ON_WINDOWS
- BUILD_ON_WINDOWS: 1
- USE_DOUBLE: ${{ matrix.double }}
- run: make CC=$(which gcc) USE_DOUBLE=${{ matrix.double }}
- - name: List dir after make
- run: |
- ls
- - name: Export Script Parameter
- run: |
- echo "::set-env name=test_dir::${{ runner.temp }}"
- echo "export GWION_TEST_DIR=${{ runner.temp }}" > ~/.bashrc
- echo "export GWION_TEST_DIR=${{ runner.temp }}" > ~/.bashenv
- echo "export VALGRIND=NO_VALGRIND" >> ~/.bashrc
- echo "export VALGRIND=NO_VALGRIND" >> ~/.bashenv
- echo "export SEVERITY=3" >> ~/.bashrc
- echo "export SEVERITY=3" >> ~/.bashenv
- - name: test
- run: |
- mkdir tmp
- $env:GWION_TEST_DIR="."
- gwion.exe
- gwion.exe examples/array_lit.gw
-# bash -c "export VALGRIND=NO_VALGRIND; export SEVERITY=3; export PRG=./gwion.exe; make test"
+ CC: ${{ matrix.cc }}
+ CFLAGS: -fsanitize=address -fno-omit-frame-pointer
+ LDFLAGS: -fsanitize=address -fno-omit-frame-pointer
+ VALGRIND: NO_VALGRIND
+ USE_MEMCHECK: 0
+ SEVERITY: 3