Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c689a21
add `egui` boiler plate from the `eframe_template` repo
antbern May 15, 2024
2500b98
add basic CI config
antbern May 15, 2024
6f550d5
rename App
antbern May 15, 2024
f0adbdf
add graphics system from slamrs
antbern Jun 8, 2024
697f614
bump deps
antbern Jun 8, 2024
974f246
add drawing of simple map
antbern Jun 30, 2024
fcc4545
bump deps
antbern Jun 30, 2024
f542ff8
add loading of preset and draw start and goal
antbern Jun 30, 2024
3e55787
draw neighbors of hovered cell
antbern Jun 30, 2024
16b6e69
add pathfinder
antbern Jun 30, 2024
6b5dfc5
fix output
antbern Jun 30, 2024
fec64da
add renderer for drawing textures
antbern Jun 30, 2024
0f9adfc
update egui to `v0.28`
antbern Jul 15, 2024
d6b348c
cleanup, allow changing start and goal
antbern Jul 15, 2024
7738676
add rectangle selection for edit mode
antbern Jul 15, 2024
31b504b
enable transparency
antbern Jul 15, 2024
af50592
remember last map position
antbern Jul 15, 2024
43526c6
add feature to drop a background image while in edit mode
antbern Jul 15, 2024
bc7db67
add feature to edit the cell size based on the background
antbern Jul 15, 2024
f281c1d
add automatic filling of map based on selected background color
antbern Jul 15, 2024
97e18dd
make it possible to exit pixel selection using escape
antbern Jul 15, 2024
d205ac4
add background image opacity
antbern Jul 15, 2024
f5c2193
add global opacity for grid
antbern Jul 15, 2024
499ad22
fix inverted y in pixel value selection, add slider to select between…
antbern Jul 15, 2024
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
100 changes: 100 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
on: [pull_request, workflow_dispatch]

name: CI

env:
# --cfg=web_sys_unstable_apis is required to enable the web_sys clipboard API which egui_web uses
# https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.Clipboard.html
# https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html
RUSTFLAGS: -D warnings --cfg=web_sys_unstable_apis
RUSTDOCFLAGS: -D warnings

jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo check --all-features

check_wasm:
name: Check wasm32
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- run: cargo check --all-features --lib --target wasm32-unknown-unknown

test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev
- run: cargo test --lib

fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy -- -D warnings

trunk:
name: trunk
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.76.0
target: wasm32-unknown-unknown
override: true
- name: Download and install Trunk binary
run: wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
- name: Build
run: ./trunk build frontend/index.html

build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
TARGET: x86_64-unknown-linux-musl
- os: ubuntu-latest
TARGET: x86_64-unknown-linux-gnu
- os: windows-latest
TARGET: x86_64-pc-windows-msvc

steps:
- name: Building ${{ matrix.TARGET }}
run: echo "${{ matrix.TARGET }}"

- uses: actions/checkout@master
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.TARGET }}

- run: cargo build --release --target=${{ matrix.TARGET }}


Loading