diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index ecf7091..65a45b9 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -2,6 +2,12 @@ name: build release artifacts on: workflow_dispatch: + push: + branches: + - master + pull_request: + branches: + - master jobs: build-linux-macos: @@ -11,7 +17,7 @@ jobs: os: ['ubuntu-latest', 'macos-latest'] fail-fast: false steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: run build run: | @@ -19,7 +25,7 @@ jobs: mkdir build cd build && cmake -DCMAKE_BUILD_TYPE=RELEASE .. make - + - name: run tests run: ./build/test/test_suite @@ -27,9 +33,10 @@ jobs: run: | cd build make package - + - name: upload artifacts - uses: actions/upload-artifact@v3 + if: github.event_name == 'workflow_dispatch' + uses: actions/upload-artifact@v4 with: name: release-packages path: ./build/sqlcheck-x86_64.* @@ -41,7 +48,7 @@ jobs: os: ['windows-latest'] fail-fast: false steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.1 @@ -54,13 +61,14 @@ jobs: mkdir build cd build cmake -DCMAKE_BUILD_TYPE=RELEASE .. - msbuild ALL_BUILD.vcxproj /t:Build /p:Configuration=Release + msbuild ALL_BUILD.vcxproj /t:Build /p:Configuration=Release - name: run tests run: ./build/test/Release/test_suite.exe - name: upload artifacts - uses: actions/upload-artifact@v3 + if: github.event_name == 'workflow_dispatch' + uses: actions/upload-artifact@v4 with: name: release-packages path: ./build/bin/Release/sqlcheck.* diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b9aa69a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,40 +0,0 @@ -sudo: false - -language: generic - -matrix: - include: - - os: linux - compiler: gcc - env: COMPILER=g++-4.9 CXX=g++-4.9 GCOV=gcov-4.9 - -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-4.9 - - python-pip - -before_install: - - pip install --user urllib3[secure] - - pip install --user cpp-coveralls - -script: - - ./bootstrap - - cd build - - cmake --version - - cmake -DCMAKE_BUILD_TYPE=COVERAGE .. - - make VERBOSE=1 - - make check - - g++-4.9 --version - - gcov-4.9 --version - - which gcov-4.9 - - which gcov - -after_success: - - coveralls --gcov /usr/bin/gcov-4.9 --root .. -E ".*external.*" -E ".*CMakeFiles.*" -E ".*test/.*.cpp.*" - -notifications: - email: false -