Skip to content

Commit

Permalink
Update egui to 0.25, wgpu to 0.19 and fix Firefox compatibility (Astr…
Browse files Browse the repository at this point in the history
…abit-ST#88)

* feat: wasm32 autobuild now builds webgl fallback binary as well

* feat: add feature detection for secure context and Firefox private browsing

* fix: fix panic when `handle.requestPermission()` method doesn't exist

* fix: use `__FILE_SYSTEM_TOOLS__.parseHandle` if it exists

* fix: update the trunk URL in the build workflow

* fix: fix `request_permission` binding being broken in Chromium

* merge: update eframe and egui-wgpu from 0.24.1 to 0.25.0

* chore: update egui, catppuccin-egui and other egui-related crates

* chore: fix update-induced compilation errors

* chore: clippy

* merge: update wgpu to 0.19

Based on emilk/egui#3824

* chore: fix more update-induced errors

* chore: remove DX12 push constants workaround (fixed in wgpu 0.19)

* feat: web build now has WebGPU and WebGL support in one binary

* fix: make eframe's secure context check use worker context

* chore: write upstream eframe and egui-wgpu version as 0.25.0

Chances are when the wgpu update changes land into a stable release of
egui, they're going to use a squash merge, so we have no choice but to
use commits from the egui master branch as the base commits for merges.

* chore: update Trunk to latest version

* chore: remove unnecessary dependency on glow

* chore: remove assets/webgpu-test-worker.js

* refactor: use relative public path

This allows easily serving Luminol web builds under any path (e.g.
https://example.com/luminol/ instead of https://example.com/).
  • Loading branch information
white-axe authored Jan 31, 2024
1 parent fa6240f commit 3b2e2c8
Show file tree
Hide file tree
Showing 46 changed files with 1,452 additions and 1,011 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,13 @@ jobs:
targets: wasm32-unknown-unknown
components: rust-src
- name: Download and install Trunk binary
run: wget -qO- https://github.com/thedodd/trunk/releases/download/v0.17.5/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
run: wget -qO- https://github.com/trunk-rs/trunk/releases/download/v0.18.7/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf- -C ${{ runner.temp }}
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- run: ./trunk build --release
- name: Build luminol (Release)
run: ${{ runner.temp }}/trunk build --release
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: luminol-trunk
path: ${{ github.workspace }}/dist/
path: ${{ github.workspace }}/dist/
Loading

0 comments on commit 3b2e2c8

Please sign in to comment.