Skip to content

fix :: testRpmZero → testRpmDropToZero 수정 #1

fix :: testRpmZero → testRpmDropToZero 수정

fix :: testRpmZero → testRpmDropToZero 수정 #1

Workflow file for this run

name: Release
on:
push:
tags: ['v*']
jobs:
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
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
release:
name: Release (ARM64)
needs: test
runs-on: ubuntu-24.04-arm
permissions:
contents: write
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: Build release binary
run: |
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build --parallel
- name: Prepare 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
curl -L https://github.com/${{ github.repository }}/releases/latest/download/install.sh \
-o install.sh
curl -L https://github.com/${{ github.repository }}/releases/latest/download/cluster-arm64 \
-o cluster-arm64
sudo bash 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