-
Notifications
You must be signed in to change notification settings - Fork 0
ci: add riscv64 native build on RISE runners #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| name: Alt Arch Riscv64 | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build Mosquitto (riscv64) | ||
| runs-on: ubuntu-24.04-riscv | ||
| continue-on-error: true | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y build-essential cmake libssl-dev libcjson-dev \ | ||
| libsqlite3-dev libargon2-dev libreadline-dev docbook-xsl xsltproc \ | ||
| pkg-config | ||
|
|
||
| - name: Configure | ||
| run: | | ||
| mkdir build | ||
| cd build | ||
| cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_TESTS=OFF | ||
|
|
||
| - name: Build | ||
| run: | | ||
| cd build | ||
| time make -j$(nproc) | ||
|
|
||
| - name: Verify | ||
| run: | | ||
| ./build/src/mosquitto --version | ||
| ./build/client/mosquitto_pub --help 2>&1 | head -3 | ||
| ./build/client/mosquitto_sub --help 2>&1 | head -3 | ||
|
Comment on lines
+41
to
+42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: cat -n .github/workflows/alt-arch-riscv64.yml | head -60Repository: gounthar/mosquitto Length of output: 1384 🏁 Script executed: sed -n '35,50p' .github/workflows/alt-arch-riscv64.ymlRepository: gounthar/mosquitto Length of output: 349 Add Lines 41–42 pipe command output to Suggested fix - name: Verify
run: |
+ set -euo pipefail
./build/src/mosquitto --version
./build/client/mosquitto_pub --help 2>&1 | head -3
./build/client/mosquitto_sub --help 2>&1 | head -3
file ./build/src/mosquitto🤖 Prompt for AI Agents |
||
| file ./build/src/mosquitto | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not mask CI failures at job level.
Line 16 sets
continue-on-error: true, which can report success even when build/verify fails. That weakens PR protection for this new architecture path.🔧 Suggested fix
- continue-on-error: true📝 Committable suggestion
🤖 Prompt for AI Agents