From ee37265f8c38290f0707b966d6173bd5cc36c42b Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 18 Feb 2024 17:41:58 -0500 Subject: [PATCH 1/5] workflows: update `actions/checkout` to v4 (use nodejs20 runtime) Signed-off-by: Rui Chen --- .github/workflows/build-release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index ecf7091..f9231cf 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -11,7 +11,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 +19,7 @@ jobs: mkdir build cd build && cmake -DCMAKE_BUILD_TYPE=RELEASE .. make - + - name: run tests run: ./build/test/test_suite @@ -27,7 +27,7 @@ jobs: run: | cd build make package - + - name: upload artifacts uses: actions/upload-artifact@v3 with: @@ -41,7 +41,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,7 +54,7 @@ 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 From fe0ece396b6802237c455652a0d5d8460b7a0622 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 18 Feb 2024 17:45:37 -0500 Subject: [PATCH 2/5] bump actions/upload-artifact to v4 (use nodejs20 runtime) Signed-off-by: Rui Chen --- .github/workflows/build-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index f9231cf..5663a9d 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -29,7 +29,7 @@ jobs: make package - name: upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: release-packages path: ./build/sqlcheck-x86_64.* @@ -60,7 +60,7 @@ jobs: run: ./build/test/Release/test_suite.exe - name: upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: release-packages path: ./build/bin/Release/sqlcheck.* From 022b50a0853d9037b2a1eeb9c0665b15ed314859 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 18 Feb 2024 17:47:58 -0500 Subject: [PATCH 3/5] update workflow trigger Signed-off-by: Rui Chen --- .github/workflows/build-release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 5663a9d..6e06462 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: From b2a1cf8d2bb569e5b9702165757a9973bd7f584c Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 18 Feb 2024 17:48:38 -0500 Subject: [PATCH 4/5] only upload artifacts per `workflow_dispatch` builds Signed-off-by: Rui Chen --- .github/workflows/build-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 6e06462..65a45b9 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -35,6 +35,7 @@ jobs: make package - name: upload artifacts + if: github.event_name == 'workflow_dispatch' uses: actions/upload-artifact@v4 with: name: release-packages @@ -66,6 +67,7 @@ jobs: run: ./build/test/Release/test_suite.exe - name: upload artifacts + if: github.event_name == 'workflow_dispatch' uses: actions/upload-artifact@v4 with: name: release-packages From 68babc8c584b0dc834eaacb8c6cf38feb5831d47 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 18 Feb 2024 17:50:55 -0500 Subject: [PATCH 5/5] remove travis config Signed-off-by: Rui Chen --- .travis.yml | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 .travis.yml 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 -