Skip to content

Commit

Permalink
Update CI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
chocolacula committed Jul 19, 2023
1 parent 38856fa commit fc7d3b5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Install generator
run: |
wget -O gen.zip https://github.com/chocolacula/easy_reflection_cpp/releases/download/2.9.0/er_gen-ubuntu22-x64.zip
wget -O gen.zip https://github.com/chocolacula/easy_reflection_cpp/releases/download/3.0.0/er_gen-ubuntu22-x64.zip
unzip gen.zip -d output
chmod +x output/er_gen
Expand Down
3 changes: 2 additions & 1 deletion cmake/tools.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ endfunction()
function(disable_attribute_warnings)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_compile_options("-Wno-attributes")
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# matches Clang and AppleClang
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
add_compile_options("-Wno-unknown-attributes")
endif()
endfunction()
Expand Down
2 changes: 1 addition & 1 deletion generator/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ struct [[er::reflect]] Config {

struct Templates {
std::string header;
[[er::reflect("enum")]] std::string for_enum;
[[er::alias("enum")]] std::string for_enum;
std::string object;
} templates;

Expand Down
2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reflection-cpp",
"version": "2.9.0",
"version": "3.0.0",
"default-features": [
"library"
],
Expand Down

0 comments on commit fc7d3b5

Please sign in to comment.