diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 68630aed627..f19ae6b80d7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ env: jobs: build: runs-on: ubuntu-latest - timeout-minutes: 60 + timeout-minutes: 30 strategy: matrix: # gcc, clang-8, clang-9 removed for reduce number of jobs @@ -58,7 +58,7 @@ jobs: CC: ${{ matrix.CC }} CONFIGURE_FLAGS: CC=${{ matrix.CC }} --enable-debug --enable-Werror --enable-buildbot ${{ matrix.RENEWAL }} ${{ matrix.HTTPLIB }} ${{ matrix.CLIENT_TYPE }} ${{ matrix.SANITIZER }} ${{ matrix.PACKET_VERSION }} --enable-epoll steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 with: fetch-depth: 1 diff --git a/.github/workflows/clang15_test.yml b/.github/workflows/clang15_test.yml index 2d1591a49c0..8076fdcc81c 100644 --- a/.github/workflows/clang15_test.yml +++ b/.github/workflows/clang15_test.yml @@ -12,7 +12,7 @@ env: jobs: build: runs-on: ubuntu-latest - timeout-minutes: 60 + timeout-minutes: 30 strategy: matrix: CC: [clang-15] @@ -55,7 +55,7 @@ jobs: CONFIGURE_FLAGS: CC=${{ matrix.CC }} --enable-debug --enable-Werror --enable-buildbot ${{ matrix.RENEWAL }} ${{ matrix.HTTPLIB }} ${{ matrix.CLIENT_TYPE }} ${{ matrix.SANITIZER }} ${{ matrix.PACKET_VERSION }} PACKET_VERSION: ${{ matrix.PACKET_VERSION }} steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 with: fetch-depth: 1 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b13f58b3276..206cb5505dc 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. @@ -31,14 +31,14 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/controller.yml b/.github/workflows/controller.yml index 1eeebf5d317..2b5cc80f00d 100644 --- a/.github/workflows/controller.yml +++ b/.github/workflows/controller.yml @@ -35,10 +35,6 @@ jobs: needs: build if: ${{ !failure() && !cancelled() }} uses: ./.github/workflows/gccold2.yml - gccold3: - needs: build - if: ${{ !failure() && !cancelled() }} - uses: ./.github/workflows/gccold3.yml gccsnapshot_test: needs: build if: ${{ !failure() && !cancelled() }} diff --git a/.github/workflows/gcc_test.yml b/.github/workflows/gcc_test.yml index 857c8a3d123..99b75637ed4 100644 --- a/.github/workflows/gcc_test.yml +++ b/.github/workflows/gcc_test.yml @@ -12,7 +12,7 @@ env: jobs: build: runs-on: ubuntu-latest - timeout-minutes: 60 + timeout-minutes: 30 strategy: matrix: CC: [gcc] @@ -55,7 +55,7 @@ jobs: CONFIGURE_FLAGS: CC=${{ matrix.CC }} --enable-debug --enable-Werror --enable-buildbot ${{ matrix.RENEWAL }} ${{ matrix.HTTPLIB }} ${{ matrix.CLIENT_TYPE }} ${{ matrix.SANITIZER }} ${{ matrix.PACKET_VERSION }} --enable-lto PACKET_VERSION: ${{ matrix.PACKET_VERSION }} steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 with: fetch-depth: 1 diff --git a/.github/workflows/gccold1.yml b/.github/workflows/gccold1.yml index 9501ed00159..495666e666c 100644 --- a/.github/workflows/gccold1.yml +++ b/.github/workflows/gccold1.yml @@ -12,7 +12,7 @@ env: jobs: build: runs-on: ubuntu-latest - timeout-minutes: 60 + timeout-minutes: 30 strategy: matrix: CC: ["gcc-10", "gcc-9"] @@ -55,7 +55,7 @@ jobs: CC: ${{ matrix.CC }} CONFIGURE_FLAGS: CC=${{ matrix.CC }} --enable-debug --enable-Werror --enable-buildbot ${{ matrix.RENEWAL }} ${{ matrix.HTTPLIB }} ${{ matrix.CLIENT_TYPE }} ${{ matrix.SANITIZER }} ${{ matrix.PACKET_VERSION }} --enable-epoll steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 with: fetch-depth: 1 diff --git a/.github/workflows/gccold2.yml b/.github/workflows/gccold2.yml index c8cb601c8d1..7f9c5840a2e 100644 --- a/.github/workflows/gccold2.yml +++ b/.github/workflows/gccold2.yml @@ -12,7 +12,7 @@ env: jobs: build: runs-on: ubuntu-latest - timeout-minutes: 60 + timeout-minutes: 30 strategy: matrix: CC: ["gcc-8", "gcc-7"] @@ -55,7 +55,7 @@ jobs: CC: ${{ matrix.CC }} CONFIGURE_FLAGS: CC=${{ matrix.CC }} --enable-debug --enable-Werror --enable-buildbot ${{ matrix.RENEWAL }} ${{ matrix.HTTPLIB }} ${{ matrix.CLIENT_TYPE }} ${{ matrix.SANITIZER }} ${{ matrix.PACKET_VERSION }} --enable-epoll steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 with: fetch-depth: 1 diff --git a/.github/workflows/gccold3.yml b/.github/workflows/gccold3.yml deleted file mode 100644 index 07cd76ce035..00000000000 --- a/.github/workflows/gccold3.yml +++ /dev/null @@ -1,84 +0,0 @@ -name: gcc_old3 - -on: workflow_call - -env: - MYSQL_DATABASE: 'ragnarok' - MYSQL_USER: 'ragnarok' - MYSQL_PASSWORD: 'ragnarok' - MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' - DEBIAN_COMMON_PACKAGES: make zlib1g-dev libpcre3-dev git python3 libzstd-dev - SKIP_VALIDATE_INTERFACES: "skip" - -jobs: - build: - runs-on: ubuntu-latest - timeout-minutes: 60 - strategy: - matrix: - CC: ["gcc-6", "gcc-5", "gcc-4.8"] - RENEWAL: [""] - CLIENT_TYPE: ["", "--enable-packetver-re", "--enable-packetver-zero"] - HTTPLIB: ["", "--with-http_parser=llhttp"] - SANITIZER: ["--disable-manager --enable-sanitize=full"] - PACKET_VERSION: ["--enable-packetver=20100105", "--enable-packetver=20171018"] - LTO: [""] - exclude: - - PACKET_VERSION: "--enable-packetver=20100105" - CLIENT_TYPE: "--enable-packetver-zero" - - # github.head_ref will stop previous runs in the same PR (if in a PR) - # github.run_id is a fallback when outside a PR (e.g. every merge in master will run, and previous won't stop) - concurrency: - group: gccold3-${{ github.head_ref || github.run_id }}_${{ matrix.CC }}_${{ matrix.RENEWAL }}_${{ matrix.CLIENT_TYPE }}_${{ matrix.HTTPLIB }}_${{ matrix.SANITIZER }}_${{ matrix.PACKET_VERSION}}_${{ matrix.LTO }} - cancel-in-progress: true - - container: - image: ubuntu:18.04 - services: - mariadb: - image: mariadb:latest - ports: - - 33306:3306 - env: - MYSQL_DATABASE: 'ragnarok' - MYSQL_USER: 'ragnarok' - MYSQL_PASSWORD: 'ragnarok' - MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' - options: >- - --health-cmd="healthcheck.sh --connect --innodb_initialized" - --health-interval=5s - --health-timeout=2s - --health-retries=3 - env: - INSTALL_PACKAGES: ${{ matrix.CC }} mariadb-client libmariadbclient-dev-compat - SQLHOST: mariadb - CC: ${{ matrix.CC }} - CONFIGURE_FLAGS: CC=${{ matrix.CC }} --enable-debug --enable-Werror --enable-buildbot ${{ matrix.RENEWAL }} ${{ matrix.HTTPLIB }} ${{ matrix.CLIENT_TYPE }} ${{ matrix.SANITIZER }} ${{ matrix.PACKET_VERSION }} --enable-epoll - steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 - - - name: info - run: | - uname -a - - - name: install packages - run: | - ./tools/ci/retry.sh apt-get update - ./tools/ci/retry.sh apt-get install -y -qq $INSTALL_PACKAGES $DEBIAN_COMMON_PACKAGES - - - name: init database - run: | - ./tools/ci/travis.sh importdb ragnarok ragnarok ragnarok $SQLHOST - - - name: get plugins - run: | - ./tools/ci/travis.sh getplugins || true - - - name: build - run: | - ./tools/ci/travis.sh build $CONFIGURE_FLAGS - - # for run default config will show warnings diff --git a/.github/workflows/gccsnapshot_test.yml b/.github/workflows/gccsnapshot_test.yml index f25e938d1b4..f2631a03f0f 100644 --- a/.github/workflows/gccsnapshot_test.yml +++ b/.github/workflows/gccsnapshot_test.yml @@ -12,7 +12,7 @@ env: jobs: build: runs-on: ubuntu-latest - timeout-minutes: 60 + timeout-minutes: 30 strategy: matrix: CC: [gcc] @@ -55,7 +55,7 @@ jobs: CONFIGURE_FLAGS: CC=${{ matrix.CC }} --enable-debug --enable-Werror --enable-buildbot ${{ matrix.RENEWAL }} ${{ matrix.HTTPLIB }} ${{ matrix.CLIENT_TYPE }} ${{ matrix.SANITIZER }} ${{ matrix.PACKET_VERSION }} --enable-lto PACKET_VERSION: ${{ matrix.PACKET_VERSION }} steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 with: fetch-depth: 1 diff --git a/.github/workflows/hwsapibot.yml b/.github/workflows/hwsapibot.yml index 6b39d8c405b..38311d29760 100644 --- a/.github/workflows/hwsapibot.yml +++ b/.github/workflows/hwsapibot.yml @@ -15,7 +15,7 @@ jobs: group: hwsapibot cancel-in-progress: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: info run: | diff --git a/.github/workflows/macos_latest.yml b/.github/workflows/macos_latest.yml index 02e2a86734d..394c5697886 100644 --- a/.github/workflows/macos_latest.yml +++ b/.github/workflows/macos_latest.yml @@ -7,13 +7,13 @@ env: MYSQL_USER: 'ragnarok' MYSQL_PASSWORD: 'ragnarok' MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' - MACOS_COMMON_PACKAGES: make zlib pcre mysql mysql-client mysql-connector-c + MACOS_COMMON_PACKAGES: make zlib pcre mysql mysql-client SQLHOST: 'localhost' jobs: build: runs-on: macos-latest - timeout-minutes: 60 + timeout-minutes: 30 strategy: matrix: CC: [clang] diff --git a/.github/workflows/macos_m1.yml b/.github/workflows/macos_m1.yml index f4dbfa29454..7874a2e5c23 100644 --- a/.github/workflows/macos_m1.yml +++ b/.github/workflows/macos_m1.yml @@ -7,13 +7,13 @@ env: MYSQL_USER: 'ragnarok' MYSQL_PASSWORD: 'ragnarok' MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' - MACOS_COMMON_PACKAGES: make zlib pcre mysql mysql-client mysql-connector-c + MACOS_COMMON_PACKAGES: make zlib pcre mysql mysql-client SQLHOST: 'localhost' jobs: build: runs-on: macos-14 - timeout-minutes: 60 + timeout-minutes: 30 strategy: matrix: CC: [clang] diff --git a/.github/workflows/mariadb.yml b/.github/workflows/mariadb.yml index b16e1312f92..14e8ce739d1 100644 --- a/.github/workflows/mariadb.yml +++ b/.github/workflows/mariadb.yml @@ -12,7 +12,7 @@ env: jobs: build: runs-on: ubuntu-latest - timeout-minutes: 60 + timeout-minutes: 30 strategy: matrix: CC: [gcc] @@ -53,7 +53,7 @@ jobs: CONFIGURE_FLAGS: CC=${{ matrix.CC }} --enable-debug --enable-Werror --enable-buildbot ${{ matrix.RENEWAL }} ${{ matrix.HTTPLIB }} ${{ matrix.CLIENT_TYPE }} ${{ matrix.SANITIZER }} ${{ matrix.PACKET_VERSION }} PACKET_VERSION: ${{ matrix.PACKET_VERSION }} steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 with: fetch-depth: 1 diff --git a/.github/workflows/mysql.yml b/.github/workflows/mysql.yml index 2136cbec31d..3342cf35361 100644 --- a/.github/workflows/mysql.yml +++ b/.github/workflows/mysql.yml @@ -12,7 +12,7 @@ env: jobs: build: runs-on: ubuntu-latest - timeout-minutes: 60 + timeout-minutes: 30 strategy: matrix: CC: [gcc] @@ -49,7 +49,7 @@ jobs: CONFIGURE_FLAGS: CC=${{ matrix.CC }} --enable-debug --enable-Werror --enable-buildbot ${{ matrix.RENEWAL }} ${{ matrix.HTTPLIB }} ${{ matrix.CLIENT_TYPE }} ${{ matrix.SANITIZER }} ${{ matrix.PACKET_VERSION }} PACKET_VERSION: ${{ matrix.PACKET_VERSION }} steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 with: fetch-depth: 1 diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml index e883e1afe04..def194f4e07 100644 --- a/.github/workflows/tools.yml +++ b/.github/workflows/tools.yml @@ -22,7 +22,7 @@ jobs: container: image: debian:unstable steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 with: fetch-depth: 1 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 7669990bf90..391cf307217 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -11,7 +11,7 @@ env: jobs: build: runs-on: windows-latest - timeout-minutes: 60 + timeout-minutes: 30 strategy: matrix: CC: [msbuild]