Add unit system into dev branch #37
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: gkit-linux-build-test | |
| on: | |
| push: | |
| branches-ignore: [ "main" ] | |
| pull_request: | |
| branches-ignore: [ "main" ] | |
| jobs: | |
| build-and-test: | |
| name: Build and Test on Ubuntu-latest | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| preset: [ "linux-x86_64-gcc-debug", "linux-x86_64-gcc-noabi-debug", | |
| "linux-x86_64-llvm-debug", "linux-x86_64-llvm-noabi-debug" ] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| - name: Show build information | |
| run: | | |
| echo "π Starting build for gkit project" | |
| echo "Platform: ${{ runner.os }}" | |
| echo "Workflow: ${{ github.workflow }}" | |
| echo "Repository: ${{ github.repository }}" | |
| echo "Commit SHA: ${{ github.sha }}" | |
| - name: Install dependencies | |
| run: | | |
| echo "π¦ Installing Ubuntu dependencies..." | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| build-essential clang cmake ninja-build \ | |
| libasound2-dev libpulse-dev libx11-dev libxext-dev \ | |
| libxrandr-dev libxcursor-dev libxfixes-dev libxi-dev \ | |
| libxss-dev libxtst-dev libxkbcommon-dev libdrm-dev \ | |
| libgbm-dev libgl1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev \ | |
| libdbus-1-dev libibus-1.0-dev libudev-dev | |
| echo "β Ubuntu dependencies installed successfully" | |
| - name: Configure CMake | |
| run: | | |
| echo "βοΈ Configuring CMake for Linux..." | |
| echo "Using preset: ${{matrix.preset}}" | |
| cmake --preset ${{matrix.preset}} | |
| echo "β CMake configuration completed" | |
| - name: Configure and build project | |
| run: | | |
| echo "π¨ Building project on Linux..." | |
| BUILD_DIR="${{ github.workspace }}/build/${{matrix.preset}}" | |
| echo "Build directory: $BUILD_DIR" | |
| cmake --build $BUILD_DIR | |
| echo "β Linux build completed successfully" | |
| - name: Show build results | |
| run: | | |
| echo "π Build process completed!" | |
| echo "Platform: Linux(Ubuntu-latest)" | |
| echo "Job status: ${{ job.status }}" | |
| # List built files | |
| echo "π Built files:" | |
| find ${{ github.workspace }}/build -name "*.so" -o -name "*.dll" -o -name "*.a" -o -name "*.lib" 2>/dev/null || echo "No library files found" | |
| # Show disk usage | |
| echo "πΎ Disk usage:" | |
| du -sh ${{ github.workspace }}/build 2>/dev/null || echo "Build directory size info not available" |