Skip to content
Draft
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
b565b68
test
fxgst Jun 6, 2025
88bd7ea
test
fxgst Jun 6, 2025
4c08791
test
fxgst Jun 6, 2025
3a47ef7
Revert "test"
fxgst Jun 6, 2025
842c5e0
test
fxgst Jun 6, 2025
faf9858
ubuntu
mraszyk Jun 6, 2025
df7e75c
apt
mraszyk Jun 6, 2025
ad1983a
libunwind
mraszyk Jun 6, 2025
5fa4ed4
dfx
mraszyk Jun 6, 2025
b4a4930
debug
mraszyk Jun 6, 2025
b171a20
error
mraszyk Jun 6, 2025
5f7252c
no RUST_LOG
mraszyk Jun 6, 2025
56b7210
step
mraszyk Jun 6, 2025
0eeae11
.
mraszyk Jun 6, 2025
8a67c51
enable concurrency
mraszyk Jun 6, 2025
f164796
.
mraszyk Jun 6, 2025
8e596f1
.
mraszyk Jun 6, 2025
59e4dc1
.
mraszyk Jun 6, 2025
315cb22
.
mraszyk Jun 6, 2025
d910506
.
mraszyk Jun 6, 2025
90ec4ce
.
mraszyk Jun 6, 2025
3f539e3
no concurrency
mraszyk Jun 6, 2025
67e5fd0
.
mraszyk Jun 6, 2025
2273205
.
mraszyk Jun 6, 2025
40348a7
.
mraszyk Jun 6, 2025
9d8a1d5
.
mraszyk Jun 6, 2025
63d05a6
.
mraszyk Jun 6, 2025
9129e1d
rust container
mraszyk Jun 6, 2025
7f7db57
.
mraszyk Jun 6, 2025
f354f9c
.
mraszyk Jun 6, 2025
1fc6b0d
.
mraszyk Jun 6, 2025
d10335e
.
mraszyk Jun 6, 2025
23a2689
.
mraszyk Jun 6, 2025
4665c21
dev-env
mraszyk Jun 6, 2025
2fa8bf9
.
mraszyk Jun 6, 2025
66913b0
.
mraszyk Jun 6, 2025
32810d5
.
mraszyk Jun 6, 2025
4182b9a
.
mraszyk Jun 6, 2025
fc7470b
llm
mraszyk Jun 6, 2025
80c560b
only llm
mraszyk Jun 6, 2025
fe3543c
no wallet
mraszyk Jun 6, 2025
5d81f22
trace deploy
mraszyk Jun 6, 2025
89b4eb7
one step
mraszyk Jun 6, 2025
ca60313
.
mraszyk Jun 6, 2025
2056bbf
.
mraszyk Jun 6, 2025
2eb9d65
.
mraszyk Jun 6, 2025
a004ead
.
mraszyk Jun 6, 2025
541496c
separate step
mraszyk Jun 6, 2025
a994c39
.
mraszyk Jun 6, 2025
156c1d0
.
mraszyk Jun 6, 2025
ddaea33
.
mraszyk Jun 6, 2025
ce27f99
.
mraszyk Jun 6, 2025
ceab1fe
repro
mraszyk Jun 6, 2025
884898e
for
mraszyk Jun 6, 2025
65ba920
curl -v
mraszyk Jun 6, 2025
7077b33
name
mraszyk Jun 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 35 additions & 26 deletions .github/workflows/ninja_pr_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
branches:
- master

concurrency:
group: ninja-pr-checks-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check-ninja-example-changes:
name: Filter projects
Expand All @@ -31,25 +27,25 @@ jobs:

examples=()
declare -A example_paths=(
["My Crypto Blog (Frontend)"]="hosting/my_crypto_blog"
["React (Frontend)"]="hosting/react"
["Motoko backend (Motoko)"]="motoko/backend_only"
["Daily Planner (Motoko)"]="motoko/daily_planner"
["EVM Block Explorer (Motoko)"]="motoko/evm_block_explorer"
["FileVault (Motoko)"]="motoko/filevault"
["Flying Ninja (Motoko)"]="motoko/flying_ninja"
["Hello World (Motoko)"]="motoko/hello_world"
# ["My Crypto Blog (Frontend)"]="hosting/my_crypto_blog"
# ["React (Frontend)"]="hosting/react"
# ["Motoko backend (Motoko)"]="motoko/backend_only"
# ["Daily Planner (Motoko)"]="motoko/daily_planner"
# ["EVM Block Explorer (Motoko)"]="motoko/evm_block_explorer"
# ["FileVault (Motoko)"]="motoko/filevault"
# ["Flying Ninja (Motoko)"]="motoko/flying_ninja"
# ["Hello World (Motoko)"]="motoko/hello_world"
["LLM Chatbot (Motoko)"]="motoko/llm_chatbot"
["Tokenmania (Motoko)"]="motoko/tokenmania"
["Who Am I (Motoko)"]="motoko/who_am_i"
["Rust backend (Rust)"]="rust/backend_only"
["Daily Planner (Rust)"]="rust/daily_planner"
["EVM Block Explorer (Rust)"]="rust/evm_block_explorer"
["Flying Ninja (Rust)"]="rust/flying_ninja"
["Hello World (Rust)"]="rust/hello_world"
["LLM Chatbot (Rust)"]="rust/llm_chatbot"
["Tokenmania (Rust)"]="rust/tokenmania"
["Who Am I (Rust)"]="rust/who_am_i"
# ["Tokenmania (Motoko)"]="motoko/tokenmania"
# ["Who Am I (Motoko)"]="motoko/who_am_i"
# ["Rust backend (Rust)"]="rust/backend_only"
# ["Daily Planner (Rust)"]="rust/daily_planner"
# ["EVM Block Explorer (Rust)"]="rust/evm_block_explorer"
# ["Flying Ninja (Rust)"]="rust/flying_ninja"
# ["Hello World (Rust)"]="rust/hello_world"
# ["LLM Chatbot (Rust)"]="rust/llm_chatbot"
# ["Tokenmania (Rust)"]="rust/tokenmania"
# ["Who Am I (Rust)"]="rust/who_am_i"
)

# Check if we should run all examples (workflow file changed) or just changed ones
Expand Down Expand Up @@ -87,6 +83,8 @@ jobs:
if: needs.check-ninja-example-changes.outputs.has_examples == 'true'
runs-on: ubuntu-24.04
container: ghcr.io/dfinity/icp-dev-env-slim:20
#container: ubuntu:24.04
#container: rust:1.83-slim-bookworm
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.check-ninja-example-changes.outputs.matrix) }}
Expand All @@ -95,14 +93,25 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install curl, libunwind-dev, and python3
run: apt update && apt install curl libunwind-dev python3 --yes

- name: Start server in the background
run: python3 -m http.server 8000 &

- name: Access server
run: |
for i in $(seq 0 20); do curl -v http://localhost:8000; sleep 1; done

- name: Install dfx # This is a temporary workaround. Dfx is already installed in the container, but it does not start in the next step if we don't install it here again.
uses: dfinity/setup-dfx@main
with:
dfx-version: "0.27.0"

- name: Start dfx and build project
- name: Set up
run: dfx start --background --verbose

- name: Deploy
working-directory: ${{ matrix.example.path }}
run: |
# Note: Running these commands in the same step and with verbose output magically fixes the 502 Bad Gateway issue in dfx/pocketic for the LLM Chatbot example
RUST_LOG=trace dfx start --background --verbose
dfx deploy
dfx deploy llm --no-wallet
Loading