From: Jérémie Astor Date: Fri, 21 Feb 2020 19:24:22 +0000 (+0100) Subject: :wrench: Update X-Git-Tag: nightly~1804 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=43ae0bd2d2d931507f951a1f326f4d82d91a1524;p=gwion.git :wrench: Update --- diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 326411ff..37187b08 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -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 }} diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index a7e3d930..942d8a1f 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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 diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 12635ccd..1ad34ae3 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -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 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 4b2a2a06..a314c3ec 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -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