fix :: mainwindow.cpp QTimer 헤더 누락 수정 #4
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: CI / Release | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ['v*'] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| # ──────────────────────────────────────────────────────────────────────────── | |
| # 빌드 & 테스트 (ARM64 네이티브 러너) | |
| # ──────────────────────────────────────────────────────────────────────────── | |
| test: | |
| name: Build & Test (ARM64) | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Qt6 & build tools | |
| run: | | |
| sudo apt-get update -q | |
| sudo apt-get install -y --no-install-recommends \ | |
| qt6-base-dev \ | |
| qt6-tools-dev \ | |
| cmake \ | |
| ninja-build \ | |
| can-utils | |
| - name: Configure (with tests) | |
| run: | | |
| cmake -B build -G Ninja \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DBUILD_TESTS=ON | |
| - name: Build | |
| run: cmake --build build --parallel | |
| - name: Run tests | |
| run: ctest --test-dir build --output-on-failure --timeout 30 | |
| # ──────────────────────────────────────────────────────────────────────────── | |
| # 릴리스 빌드 & GitHub Release 생성 (태그 푸시 시) | |
| # ──────────────────────────────────────────────────────────────────────────── | |
| release: | |
| name: Release (ARM64) | |
| needs: test | |
| runs-on: ubuntu-24.04-arm | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| permissions: | |
| contents: write # GitHub Release 생성 권한 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Qt6 & build tools | |
| run: | | |
| sudo apt-get update -q | |
| sudo apt-get install -y --no-install-recommends \ | |
| qt6-base-dev \ | |
| qt6-tools-dev \ | |
| cmake \ | |
| ninja-build | |
| - name: Read VERSION | |
| id: version | |
| run: echo "version=$(cat VERSION | tr -d '[:space:]')" >> "$GITHUB_OUTPUT" | |
| - name: Configure (release, no tests) | |
| run: | | |
| cmake -B build -G Ninja \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DBUILD_TESTS=OFF | |
| - name: Build | |
| run: cmake --build build --parallel | |
| - name: Prepare release artifact | |
| run: | | |
| cp build/apps/cluster/cluster cluster-arm64 | |
| chmod +x cluster-arm64 | |
| # 빌드 정보 기록 | |
| echo "version=${{ steps.version.outputs.version }}" > build-info.txt | |
| echo "commit=${{ github.sha }}" >> build-info.txt | |
| echo "built=$(date -u '+%Y-%m-%dT%H:%M:%SZ')" >> build-info.txt | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: "v${{ steps.version.outputs.version }}" | |
| body: | | |
| ## Car Cluster Unit v${{ steps.version.outputs.version }} | |
| ### 설치 방법 (Raspberry Pi) | |
| ```bash | |
| # 최신 바이너리 다운로드 | |
| curl -L https://github.com/${{ github.repository }}/releases/latest/download/cluster-arm64 \ | |
| -o /opt/cluster/cluster | |
| chmod +x /opt/cluster/cluster | |
| sudo systemctl restart cluster-kiosk | |
| ``` | |
| ### 최초 설치 | |
| ```bash | |
| git clone https://github.com/${{ github.repository }}.git | |
| cd CarEntertainmentClusterUnit | |
| sudo bash scripts/install.sh cluster-arm64 | |
| sudo reboot | |
| ``` | |
| files: | | |
| cluster-arm64 | |
| build-info.txt | |
| scripts/install.sh | |
| scripts/update.sh | |
| generate_release_notes: true | |
| make_latest: true |