Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,18 @@ name: C/C++ AntPickax CI
on:
push:
pull_request:

#
# CRON event is fire on every sunday(UTC).
#
schedule:
- cron: '0 15 * * 0'

#
# Manually triggering a workflow
#
workflow_dispatch:

#
# Jobs
#
Expand Down Expand Up @@ -72,6 +78,7 @@ jobs:
- rockylinux:8
- fedora:44
- fedora:43
- alpine:3.24
- alpine:3.23
- alpine:3.22
- alpine:3.21
Expand Down Expand Up @@ -152,7 +159,7 @@ jobs:
# <default tag flag>: If you want to use the created Docker image as the default image, specify "default".
#
imageinfo:
- alpine:3.23,alpine:3.23,alpine,default
- alpine:3.24,alpine:3.24,alpine,default
- ubuntu:26.04,ubuntu:26.04,ubuntu

#
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/ostypevars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,20 @@ elif echo "${CI_OSTYPE}" | grep -q -i "fedora:43"; then
PKG_EXT="rpm"
IS_OS_FEDORA=1

elif echo "${CI_OSTYPE}" | grep -q -i "alpine:3.24"; then
DIST_TAG="alpine/v3.24"
INSTALL_PKG_LIST="bash sudo alpine-sdk automake autoconf libtool groff util-linux-misc musl-locales ruby-dev procps"
INSTALLER_BIN="apk"
UPDATE_CMD="update"
UPDATE_CMD_ARG="--no-progress"
INSTALL_CMD="add"
INSTALL_CMD_ARG="--no-progress --no-cache"
INSTALL_AUTO_ARG=""
INSTALL_QUIET_ARG="-q"
PKG_OUTPUT_DIR="apk_build"
PKG_EXT="apk"
IS_OS_ALPINE=1

elif echo "${CI_OSTYPE}" | grep -q -i "alpine:3.23"; then
DIST_TAG="alpine/v3.23"
INSTALL_PKG_LIST="bash sudo alpine-sdk automake autoconf libtool groff util-linux-misc musl-locales ruby-dev procps"
Expand Down
6 changes: 3 additions & 3 deletions tests/cond_mttest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ typedef struct thread_param{
//---------------------------------------------------------
// Global Variables
//---------------------------------------------------------
static bool is_run = false;
static bool is_running = false;
static bool is_print = false;

static const char szCondName[]= "cond_mttest_condname";
Expand Down Expand Up @@ -311,7 +311,7 @@ static void* RunThread(void* param)
pParam->is_fin_init = true;

// wait to go(global flag)
while(!is_run){
while(!is_running){
nanosleep(&sleeptime, NULL);
}

Expand Down Expand Up @@ -440,7 +440,7 @@ int main(int argc, char** argv)
// run all child
//--------------------------------------------------
// start to run(global flag)
is_run = true;
is_running = true;

//--------------------------------------------------
// wait for all children is waiting status
Expand Down
4 changes: 2 additions & 2 deletions tests/fullocktest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ static bool mutex_deadlock_test(string& strtesttype, const char* procname, bool
static volatile bool exiter_thread_result = false;
static volatile bool waiter_thread_result = false;

static void* mutex_exiter_thread(void* param)
static void* mutex_exiter_thread(void*) // should be "void* param", but cppcheck puts constParameterCallback error.
{
exiter_thread_result = false;

Expand All @@ -852,7 +852,7 @@ static void* mutex_exiter_thread(void* param)
return NULL;
}

static void* mutex_waiter_thread(void* param)
static void* mutex_waiter_thread(void*) // should be "void* param", but cppcheck puts constParameterCallback error.
{
waiter_thread_result = false;

Expand Down