Skip to content

Commit

Permalink
Merge pull request #44 from lucasmerlin/flex-improvements
Browse files Browse the repository at this point in the history
egui_flex improvements and tests
  • Loading branch information
lucasmerlin authored Dec 19, 2024
2 parents 684182a + 49bb338 commit d809ff4
Show file tree
Hide file tree
Showing 81 changed files with 3,438 additions and 1,821 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.png filter=lfs diff=lfs merge=lfs -text
39 changes: 13 additions & 26 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on: [push, pull_request]
on: [ push, pull_request ]

env:
CARGO_TERM_COLOR: always
Expand All @@ -11,7 +11,7 @@ jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Install packages (Linux)
Expand All @@ -23,9 +23,13 @@ jobs:
execute_install_scripts: true

- uses: actions/checkout@v4
with:
lfs: true

- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-cargo-cache

- name: Clippy all-features
uses: actions-rs/cargo@v1
Expand All @@ -41,6 +45,8 @@ jobs:

- name: Test
uses: actions-rs/cargo@v1
# Snapshot tests currently only work on macos, since they require a gpu
if: ${{ matrix.os == 'macos-latest' }}
with:
command: test
args: --all-features --workspace
Expand All @@ -52,28 +58,9 @@ jobs:
command: doc
args: --lib --no-deps --all-features

miri:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Miri
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: miri

# Separate miri setup from run so that 'Miri Test'
# logs are clean.
- name: Setup Miri
uses: actions-rs/cargo@v1
with:
command: miri
args: setup

- name: Miri Test
uses: actions-rs/cargo@v1
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: always()
with:
command: miri
args: test --all-features
name: test-results-${{ runner.os }}
path: "**/tests/snapshots"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
fancy-example/dist

.DS_Store

**/tests/snapshots/**/*.diff.png
**/tests/snapshots/**/*.new.png
Loading

0 comments on commit d809ff4

Please sign in to comment.