Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
55 changes: 55 additions & 0 deletions .github/workflows/connect_four.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Connect Four CI

on:
push:
branches: [main, develop]
paths:
- 'examples/connect_four/**'
- '.github/workflows/connect_four.yml'
pull_request:
branches: [main, develop]
paths:
- 'examples/connect_four/**'
- '.github/workflows/connect_four.yml'

env:
CARGO_TERM_COLOR: always

jobs:
ci:
name: CI
runs-on: macos-latest
defaults:
run:
working-directory: examples/connect_four
steps:
- uses: actions/checkout@v4

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32v1-none
components: rustfmt, clippy

- name: Cache dependencies
uses: Swatinem/rust-cache@v2
with:
workspaces: examples/connect_four

- name: Check formatting
run: cargo fmt --check

- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Build
run: cargo build

- name: Test
run: cargo test

- name: Install Stellar CLI
run: brew install stellar-cli

- name: Stellar contract build
run: stellar contract build
55 changes: 55 additions & 0 deletions .github/workflows/minesweeper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Minesweeper CI

on:
push:
branches: [main, develop]
paths:
- 'examples/minesweeper/**'
- '.github/workflows/minesweeper.yml'
pull_request:
branches: [main, develop]
paths:
- 'examples/minesweeper/**'
- '.github/workflows/minesweeper.yml'

env:
CARGO_TERM_COLOR: always

jobs:
ci:
name: CI
runs-on: macos-latest
defaults:
run:
working-directory: examples/minesweeper
steps:
- uses: actions/checkout@v4

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32v1-none
components: rustfmt, clippy

- name: Cache dependencies
uses: Swatinem/rust-cache@v2
with:
workspaces: examples/minesweeper

- name: Check formatting
run: cargo fmt --check

- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Build
run: cargo build

- name: Test
run: cargo test

- name: Install Stellar CLI
run: brew install stellar-cli

- name: Stellar contract build
run: stellar contract build
30 changes: 30 additions & 0 deletions examples/connect_four/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[package]
name = "connect_four"
version = "0.1.0"
edition = "2021"
description = "Connect Four on-chain game using Cougr-Core ECS framework on Stellar Soroban"
license = "MIT OR Apache-2.0"

[lib]
crate-type = ["cdylib", "rlib"]

[dependencies]
soroban-sdk = "25.1.0"
cougr-core = { path = "../../" }

[dev-dependencies]
soroban-sdk = { version = "25.1.0", features = ["testutils"] }

[profile.release]
opt-level = "z"
overflow-checks = true
debug = 0
strip = "symbols"
debug-assertions = false
panic = "abort"
codegen-units = 1
lto = true

[profile.release-with-logs]
inherits = "release"
debug-assertions = true
Loading
Loading