forked from emilk/egui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into plot_item_allow_h…
…over
- Loading branch information
Showing
378 changed files
with
32,820 additions
and
15,789 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
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,66 @@ | ||
name: Deploy web demo | ||
|
||
on: | ||
# We only run this on merges to master | ||
push: | ||
branches: ["master"] | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
# to only run when you do a new github release, comment out above part and uncomment the below trigger. | ||
# on: | ||
# release: | ||
# types: ["published"] | ||
|
||
|
||
permissions: | ||
contents: write # for committing to gh-pages branch | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
env: | ||
# web_sys_unstable_apis is required to enable the web_sys clipboard API which eframe web uses, | ||
# as well as by the wasm32-backend of the wgpu crate. | ||
# 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: --cfg=web_sys_unstable_apis -D warnings | ||
RUSTDOCFLAGS: -D warnings | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
name: Deploy web demo | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
target: wasm32-unknown-unknown | ||
toolchain: 1.72.0 | ||
override: true | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
prefix-key: "web-demo-" | ||
|
||
- name: "Install wasmopt / binaryen" | ||
run: | | ||
sudo apt-get update && sudo apt-get install binaryen | ||
- run: | | ||
scripts/build_demo_web.sh --release | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: web_demo | ||
# this option will not maintain any history of your previous pages deployment | ||
# set to false if you want all page build to be committed to your gh-pages branch history | ||
single-commit: true |
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 |
---|---|---|
|
@@ -15,11 +15,11 @@ jobs: | |
name: Format + check + test | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.67.0 | ||
toolchain: 1.72.0 | ||
|
||
- name: Install packages (Linux) | ||
if: runner.os == 'Linux' | ||
|
@@ -49,19 +49,22 @@ jobs: | |
run: cargo check --locked --all-features --all-targets | ||
|
||
- name: check egui_extras --all-features | ||
run: cargo check --locked --all-features --all-targets -p egui_extras | ||
run: cargo check --locked --all-features -p egui_extras | ||
|
||
- name: check default features | ||
run: cargo check --locked --all-targets | ||
|
||
- name: check --no-default-features | ||
run: cargo check --locked --no-default-features --lib --all-targets | ||
|
||
- name: check epaint --no-default-features | ||
run: cargo check --locked --no-default-features --lib --all-targets -p epaint | ||
|
||
- name: check eframe --no-default-features | ||
run: cargo check --locked --no-default-features --features x11 --lib --all-targets -p eframe | ||
run: cargo check --locked --no-default-features --features x11 --lib -p eframe | ||
|
||
- name: check egui_extras --no-default-features | ||
run: cargo check --locked --no-default-features --lib -p egui_extras | ||
|
||
- name: check epaint --no-default-features | ||
run: cargo check --locked --no-default-features --lib -p epaint | ||
|
||
- name: Test doc-tests | ||
run: cargo test --doc --all-features | ||
|
@@ -78,19 +81,22 @@ jobs: | |
- name: Cranky | ||
run: cargo cranky --all-targets --all-features -- -D warnings | ||
|
||
- name: Cranky release | ||
run: cargo cranky --all-targets --all-features --release -- -D warnings | ||
|
||
# --------------------------------------------------------------------------- | ||
|
||
check_wasm: | ||
name: Check wasm32 + wasm-bindgen | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.67.0 | ||
toolchain: 1.72.0 | ||
targets: wasm32-unknown-unknown | ||
|
||
- run: sudo apt-get update && sudo apt-get install libgtk-3-dev | ||
- run: sudo apt-get update && sudo apt-get install libgtk-3-dev libatk1.0-dev | ||
|
||
- name: Set up cargo cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
@@ -112,7 +118,7 @@ jobs: | |
- name: wasm-bindgen | ||
uses: jetli/[email protected] | ||
with: | ||
version: "0.2.87" | ||
version: "0.2.88" | ||
|
||
- run: ./scripts/wasm_bindgen_check.sh --skip-setup | ||
|
||
|
@@ -142,10 +148,10 @@ jobs: | |
name: cargo-deny ${{ matrix.target }} | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: EmbarkStudios/cargo-deny-action@v1 | ||
with: | ||
rust-version: "1.67.0" | ||
rust-version: "1.72.0" | ||
log-level: error | ||
command: check | ||
arguments: --target ${{ matrix.target }} | ||
|
@@ -156,11 +162,11 @@ jobs: | |
name: android | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.67.0 | ||
toolchain: 1.72.0 | ||
targets: aarch64-linux-android | ||
|
||
- name: Set up cargo cache | ||
|
@@ -175,13 +181,16 @@ jobs: | |
name: Check Windows | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.67.0 | ||
toolchain: 1.72.0 | ||
|
||
- name: Set up cargo cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Check | ||
- name: Check all | ||
run: cargo check --all-targets --all-features | ||
|
||
- name: Check hello_world | ||
run: cargo check -p hello_world |
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,38 @@ | ||
name: Check spelling and links | ||
on: [pull_request] | ||
|
||
jobs: | ||
typos: | ||
# https://github.com/crate-ci/typos | ||
# Add exceptions to _typos.toml | ||
# install and run locally: cargo install typos-cli && typos | ||
name: typos | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Actions Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check spelling of entire workspace | ||
uses: crate-ci/typos@master | ||
# Disabled: too many names of crates and user-names etc | ||
# spellcheck: | ||
# name: Spellcheck | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: streetsidesoftware/cspell-action@v2 | ||
# with: | ||
# files: "**/*.md" | ||
linkinator: | ||
name: linkinator | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: jprochazk/linkinator-action@main | ||
with: | ||
linksToSkip: "https://crates.io/crates/.*, http://localhost:.*" # Avoid crates.io rate-limiting | ||
retry: true | ||
retryErrors: true | ||
retryErrorsCount: 5 | ||
retryErrorsJitter: 2000 | ||
|
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.