Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 4 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ permissions:
contents: write # for committing to gh-pages branch.

jobs:
tests:
uses: ./.github/workflows/rust.yml
build-github-pages:
runs-on: ubuntu-latest
needs: tests
steps:
- uses: actions/checkout@v4 # repo checkout
- uses: wykies/checkout@main
- uses: actions-rs/toolchain@v1 # get rust toolchain for wasm
with:
profile: minimal
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
on: [push, pull_request]

name: CI

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
- develop
pull_request:
types: [ opened, synchronize, reopened ]
branches:
- develop
workflow_call:

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

Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"hline",
"libxcb",
"libxkbcommon",
"logviewer",
"xfixes"
]
}
Loading
Loading