-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'emilk:master' into patch130
- Loading branch information
Showing
287 changed files
with
7,465 additions
and
3,161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
* text=auto eol=lf | ||
Cargo.lock linguist-generated=false | ||
*.png filter=lfs diff=lfs merge=lfs -text | ||
|
||
# Exclude some small files from LFS: | ||
crates/eframe/data/* !filter !diff !merge text=auto eol=lf | ||
crates/egui_demo_lib/data/* !filter !diff !merge text=auto eol=lf | ||
crates/egui/assets/* !filter !diff !merge text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: All; .png on git LFS | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
check-binary-files: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Check that png files are on git LFS | ||
run: | | ||
binary_extensions="png" | ||
exclude_paths=( | ||
"crates/eframe/data" | ||
"crates/egui_demo_lib/data/" | ||
"crates/egui/assets/" | ||
) | ||
# Find binary files that are not tracked by Git LFS | ||
for ext in $binary_extensions; do | ||
# Create grep pattern to exclude multiple paths | ||
exclude_pattern=$(printf "|^%s" "${exclude_paths[@]}" | sed 's/^|//') | ||
if comm -23 <(git ls-files | grep -Ev "$exclude_pattern" | sort) <(git lfs ls-files -n | sort) | grep "\.${ext}$"; then | ||
echo "Error: Found binary file with extension .$ext not tracked by git LFS. See CONTRIBUTING.md" | ||
exit 1 | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,12 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
|
||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.76.0 | ||
toolchain: 1.80.0 | ||
|
||
- name: Install packages (Linux) | ||
if: runner.os == 'Linux' | ||
|
@@ -60,18 +62,12 @@ jobs: | |
- name: cargo check -p test_egui_extras_compilation | ||
run: cargo check -p test_egui_extras_compilation | ||
|
||
- name: Test doc-tests | ||
run: cargo test --doc --all-features | ||
|
||
- name: cargo doc --lib | ||
run: cargo doc --lib --no-deps --all-features | ||
|
||
- name: cargo doc --document-private-items | ||
run: cargo doc --document-private-items --no-deps --all-features | ||
|
||
- name: Test | ||
run: cargo test --all-features | ||
|
||
- name: clippy | ||
run: cargo clippy --all-targets --all-features -- -D warnings | ||
|
||
|
@@ -87,7 +83,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.76.0 | ||
toolchain: 1.80.0 | ||
targets: wasm32-unknown-unknown | ||
|
||
- run: sudo apt-get update && sudo apt-get install libgtk-3-dev libatk1.0-dev | ||
|
@@ -107,7 +103,7 @@ jobs: | |
- name: wasm-bindgen | ||
uses: jetli/[email protected] | ||
with: | ||
version: "0.2.93" | ||
version: "0.2.95" | ||
|
||
- run: ./scripts/wasm_bindgen_check.sh --skip-setup | ||
|
||
|
@@ -159,7 +155,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: EmbarkStudios/cargo-deny-action@v1 | ||
with: | ||
rust-version: "1.76.0" | ||
rust-version: "1.80.0" | ||
log-level: error | ||
command: check | ||
arguments: --target ${{ matrix.target }} | ||
|
@@ -174,7 +170,7 @@ jobs: | |
|
||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.76.0 | ||
toolchain: 1.80.0 | ||
targets: aarch64-linux-android | ||
|
||
- name: Set up cargo cache | ||
|
@@ -193,7 +189,7 @@ jobs: | |
|
||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.76.0 | ||
toolchain: 1.80.0 | ||
targets: aarch64-apple-ios | ||
|
||
- name: Set up cargo cache | ||
|
@@ -212,7 +208,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.76.0 | ||
toolchain: 1.80.0 | ||
|
||
- name: Set up cargo cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
@@ -222,3 +218,36 @@ jobs: | |
|
||
- name: Check hello_world | ||
run: cargo check -p hello_world | ||
|
||
# --------------------------------------------------------------------------- | ||
|
||
tests: | ||
name: Run tests | ||
# We run the tests on macOS because it will run with a actual GPU | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.80.0 | ||
|
||
- name: Set up cargo cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Run tests | ||
# TODO(lucasmerlin): Enable --all-features (currently this breaks the rendering in the tests because of the `unity` feature) | ||
run: cargo test | ||
|
||
- name: Run doc-tests | ||
# TODO(lucasmerlin): Enable --all-features (currently this breaks the rendering in the tests because of the `unity` feature) | ||
run: cargo test --doc | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: test-results | ||
path: "**/tests/snapshots" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/crates/egui_kittest @lucasmerlin | ||
/crates/egui-wgpu @Wumpf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.