]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Update
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Fri, 21 Feb 2020 19:24:22 +0000 (20:24 +0100)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Fri, 21 Feb 2020 19:27:08 +0000 (20:27 +0100)
.github/workflows/coverage.yml
.github/workflows/linux.yml
.github/workflows/macos.yml
.github/workflows/windows.yml

index 326411ffca27c60e9b07f713792edb90cfa95a4b..37187b081a1e124d859689865cbbc4cc54731031 100644 (file)
@@ -17,7 +17,8 @@ jobs:
     if: "!contains(github.event.head_commit.message, '[skip ci]')"
 
     steps:
-    - uses: fennecdjay/gwion-action@v5
+    - name: Build Gwion
+      uses: fennecdjay/gwion-action@v5
       with:
         dir: .
         ref: ${{ github.ref }}
index a7e3d930997c8552a365522704baa37e12209a8a..942d8a1f84338cda8a0f10409a5320de87b3ffec 100644 (file)
@@ -18,10 +18,10 @@ jobs:
 
     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
index 12635ccdb0a37a65f2d2eb3caa41dd2d26406e1f..1ad34ae36067862f6f504c76b7a400af6a38eac5 100644 (file)
@@ -1,11 +1,14 @@
+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:
@@ -14,18 +17,15 @@ jobs:
         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
index 4b2a2a06514a77672dc7f6b71279919e45b64bd7..a314c3ec426b7ea7eeabc16a174aeefc3d20da53 100644 (file)
@@ -1,42 +1,31 @@
+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