Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a Solaris VM test #3885

Draft
wants to merge 4 commits into
base: dev
Choose a base branch
from
Draft
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
55 changes: 55 additions & 0 deletions .github/workflows/solaris.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Run Solaris tests

# This test runs within a Solaris VM.
# It is very slow.
# Consequently, we only want to run it on demand.
# The trigger is the feature branch name.

on:
push:
branches:
- '*sun*'
- '*Sun*'
- '*solaris*'
- '*Solaris*'

jobs:
test:
runs-on: ubuntu-latest
name: solaris-vm test
env:
EX_TOKEN: "ex_value"
steps:
- uses: actions/checkout@v4
- name: Test in Solaris
id: test
uses: vmactions/solaris-vm@v1.0.1
with:
envs: 'EX_TOKEN'
usesh: true
prepare: |
pkgutil -y -i socat
release: "11.4-gcc"
run: |
if [ -n "test" ]; then
echo "false"
fi
if [ "test" ]; then
echo "test"
fi
pwd
ls -lah
whoami
env
psrinfo -vp
cat /etc/release
psrinfo -v
echo "::memstat" | mdb -k
gcc -v
CC=gcc CFLAGS="-Werror -O1" gmake -j check
pkg install cmake
cmake --version
rm -rf cmakebuild install
mkdir -p cmakebuild install
cd cmakebuild; cmake -Wdev -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-Werror -O0" -DCMAKE_INSTALL_PREFIX=install ../build/cmake; cd ..
cmake --build cmakebuild --target install -- -j V=1
1 change: 0 additions & 1 deletion build/cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ project(zstd
VERSION "${zstd_VERSION_MAJOR}.${zstd_VERSION_MINOR}.${zstd_VERSION_PATCH}"
LANGUAGES C # Main library is in C
ASM # And ASM
CXX # Testing contributed code also utilizes CXX
)

message(STATUS "ZSTD VERSION: ${zstd_VERSION}")
Expand Down
2 changes: 1 addition & 1 deletion build/cmake/CMakeModules/AddZstdCompilationFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function(EnableCompilerFlag _flag _C _CXX _LD)
endfunction()

macro(ADD_ZSTD_COMPILATION_FLAGS)
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" OR MINGW) #Not only UNIX but also WIN32 for MinGW
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" OR MINGW) # Not only UNIX but also WIN32 for MinGW
# It's possible to select the exact standard used for compilation.
# It's not necessary, but can be employed for specific purposes.
# Note that zstd source code is compatible with both C++98 and above
Expand Down
6 changes: 5 additions & 1 deletion build/cmake/contrib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
# in the COPYING file in the root directory of this source tree).
# ################################################################

project(contrib)
project(contrib
LANGUAGES C # Main library is in C
ASM # And ASM
CXX # pzstd, gen_html
)

add_subdirectory(pzstd)
add_subdirectory(gen_html)
Loading