Skip to content

Migrate the build system#49

Merged
Moe-hacker merged 2 commits intoRuriOSS:mainfrom
lin1328:ci
Mar 15, 2026
Merged

Migrate the build system#49
Moe-hacker merged 2 commits intoRuriOSS:mainfrom
lin1328:ci

Conversation

@lin1328
Copy link
Contributor

@lin1328 lin1328 commented Mar 12, 2026

  • Remove legacy build files: Makefile, config.mk.in, test/Makefile, test/check_flag.c
  • Add Makefile.am and update configure.ac for Autotools
  • CMake improvements:
    • Fix unconditional dependency checking
    • Remove hardcoded paths
    • Use CMAKE_BUILD_TYPE instead of ENABLE_DEBUG
  • Add version.h.in for version management
    • Auto-generated by both Autotools and CMake
  • Update .gitignore for Autotools and CMake artifacts
    • Note: The version.h generated by the build system is not excluded (build.c might need it)
  • Fix the link in test-root.sh pointing to the repo
  • Add CI/CD workflow example

project(ruri LANGUAGES C VERSION 3.9.3)
# Avoid Pollution Reserve Config 'CMAKE_'

if(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT CMAKE_SYSTEM_NAME STREQUAL "Android")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Macos:?

OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET
RESULT_VARIABLE GIT_RESULT
TIMEOUT 5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

timeout?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prevent processes from hanging unexpectedly

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CheckFlagCommonConfig The imported module automatically generates minimal test files internally, with no need for additional references

@Moe-hacker Moe-hacker merged commit e1b1464 into RuriOSS:main Mar 15, 2026
16 checks passed
@DreamConnected
Copy link

我去,这是一次大更新啊。我觉得我们更应该优化构建脚本,10分钟太恐怖了🥺

@dabao1955
Copy link
Contributor

我去,这是一次大更新啊。我觉得我们更应该优化构建脚本,10分钟太恐怖了🥺

是这样的

@Moe-hacker
Copy link
Member

我去,这是一次大更新啊。我觉得我们更应该优化构建脚本,10分钟太恐怖了🥺

跨架构跑就是慢吧,我在M4上跑构建只需要不到两秒。

@Moe-hacker
Copy link
Member

我去,这是一次大更新啊。我觉得我们更应该优化构建脚本,10分钟太恐怖了🥺

我刚还史诗级加强了build.c,现在我们有将近2k行的构建系统了

@DreamConnected
Copy link

我去,这是一次大更新啊。我觉得我们更应该优化构建脚本,10分钟太恐怖了🥺

我刚还史诗级加强了build.c,现在我们有将近2k行的构建系统了

ruri不能没有build.c,就像西方不能没有耶路撒冷

@lin1328 lin1328 deleted the ci branch March 16, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants