summaryrefslogtreecommitdiffstats
path: root/gfx/wgpu/.github
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/wgpu/.github')
-rw-r--r--gfx/wgpu/.github/ISSUE_TEMPLATE/bug_report.md28
-rw-r--r--gfx/wgpu/.github/ISSUE_TEMPLATE/feature_request.md20
-rw-r--r--gfx/wgpu/.github/ISSUE_TEMPLATE/other.md10
-rw-r--r--gfx/wgpu/.github/pull_request_template.md17
-rw-r--r--gfx/wgpu/.github/workflows/ci.yml115
5 files changed, 190 insertions, 0 deletions
diff --git a/gfx/wgpu/.github/ISSUE_TEMPLATE/bug_report.md b/gfx/wgpu/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 0000000000..c059d23311
--- /dev/null
+++ b/gfx/wgpu/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,28 @@
+---
+name: Bug report
+about: Create a report to help us improve
+title: ''
+labels: bug
+assignees: ''
+
+---
+
+<!-- Thank you for filing this! Please read the [debugging tips](https://github.com/gfx-rs/wgpu/wiki/Debbugging-wgpu-Applications).
+That may let you investigate on your own, or provide additional information that helps us to assist.-->
+
+**Description**
+A clear and concise description of what the bug is.
+
+**Repro steps**
+Ideally, a runnable example we can check out.
+
+**Expected vs observed behavior**
+Clearly describe what you get, and how it goes across your expectations.
+
+**Extra materials**
+Screenshots to help explain your problem.
+Validation logs can be attached in case there are warnings and errors.
+Zip-compressed API traces and GPU captures can also land here.
+
+**Platform**
+Information about your OS, version of `wgpu`, your tech stack, etc.
diff --git a/gfx/wgpu/.github/ISSUE_TEMPLATE/feature_request.md b/gfx/wgpu/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 0000000000..11fc491ef1
--- /dev/null
+++ b/gfx/wgpu/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,20 @@
+---
+name: Feature request
+about: Suggest an idea for this project
+title: ''
+labels: enhancement
+assignees: ''
+
+---
+
+**Is your feature request related to a problem? Please describe.**
+A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
+
+**Describe the solution you'd like**
+A clear and concise description of what you want to happen.
+
+**Describe alternatives you've considered**
+A clear and concise description of any alternative solutions or features you've considered.
+
+**Additional context**
+Add any other context or screenshots about the feature request here.
diff --git a/gfx/wgpu/.github/ISSUE_TEMPLATE/other.md b/gfx/wgpu/.github/ISSUE_TEMPLATE/other.md
new file mode 100644
index 0000000000..52ef2e8a47
--- /dev/null
+++ b/gfx/wgpu/.github/ISSUE_TEMPLATE/other.md
@@ -0,0 +1,10 @@
+---
+name: Other
+about: Strange things you want to tell us
+title: ''
+labels: question
+assignees: ''
+
+---
+
+
diff --git a/gfx/wgpu/.github/pull_request_template.md b/gfx/wgpu/.github/pull_request_template.md
new file mode 100644
index 0000000000..55be6c377a
--- /dev/null
+++ b/gfx/wgpu/.github/pull_request_template.md
@@ -0,0 +1,17 @@
+**Connections**
+_Link to the issues addressed by this PR, or dependent PRs in other repositories_
+
+**Description**
+_Describe what problem this is solving, and how it's solved._
+
+**Testing**
+_Explain how this change is tested._
+<!--
+Non-trivial functional changes would need to be tested through:
+ - [wgpu-rs](https://github.com/gfx-rs/wgpu-rs) - test the examples.
+ - [wgpu-native](https://github.com/gfx-rs/wgpu-native/) - check the generated C header for sanity.
+
+Ideally, a PR needs to link to the draft PRs in these projects with relevant modifications.
+See https://github.com/gfx-rs/wgpu/pull/666 for an example.
+If you can add a unit/integration test here in `wgpu`, that would be best.
+-->
diff --git a/gfx/wgpu/.github/workflows/ci.yml b/gfx/wgpu/.github/workflows/ci.yml
new file mode 100644
index 0000000000..662eb9990f
--- /dev/null
+++ b/gfx/wgpu/.github/workflows/ci.yml
@@ -0,0 +1,115 @@
+name: CI
+
+on:
+ push:
+ branches-ignore: [staging.tmp]
+ pull_request:
+ branches-ignore: [staging.tmp]
+
+jobs:
+ ios_build:
+ name: iOS Stable
+ runs-on: macos-10.15
+ env:
+ TARGET: aarch64-apple-ios
+ steps:
+ - uses: actions/checkout@v2
+ - run: rustup component add clippy
+ - run: rustup target add ${{ env.TARGET }}
+ - run: cargo clippy --target ${{ env.TARGET }}
+
+ android_build:
+ name: Android Stable
+ runs-on: ubuntu-18.04
+ env:
+ TARGET: aarch64-linux-android
+ PKG_CONFIG_ALLOW_CROSS: 1
+ steps:
+ - uses: actions/checkout@v2
+ - name: Prepare
+ run: |
+ sudo apt-get update -y -qq
+ sudo apt-get install -y -qq libegl1-mesa-dev
+ echo "$ANDROID_HOME/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin" >> $GITHUB_PATH
+ - run: rustup component add clippy
+ - run: rustup target add ${{ env.TARGET }}
+ - run: cargo clippy --target ${{ env.TARGET }}
+ - name: Additional core features
+ run: cargo check --manifest-path wgpu-core/Cargo.toml --features trace --target ${{ env.TARGET }}
+
+ build:
+ name: ${{ matrix.name }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [macos-10.15, ubuntu-18.04, windows-2019]
+ channel: [stable, nightly]
+ include:
+ - name: MacOS Stable
+ channel: stable
+ os: macos-10.15
+ prepare_command:
+ additional_core_features: trace
+ additional_player_features: winit
+ - name: MacOS Nightly
+ os: macos-10.15
+ channel: nightly
+ prepare_command:
+ additional_core_features:
+ additional_player_features:
+ - name: Ubuntu Stable
+ os: ubuntu-18.04
+ channel: stable
+ prepare_command: |
+ sudo apt-get update -y -qq
+ sudo apt-get install -y -qq libegl1-mesa-dev
+ additional_core_features: trace,replay
+ additional_player_features:
+ - name: Ubuntu Nightly
+ os: ubuntu-18.04
+ channel: nightly
+ prepare_command: |
+ sudo apt-get update -y -qq
+ echo "Installing EGL"
+ sudo apt-get install -y -qq libegl1-mesa-dev
+ echo "Installing Vulkan"
+ sudo apt-get install -y -qq mesa-vulkan-drivers
+ additional_core_features: serial-pass
+ additional_player_features: winit
+ - name: Windows Stable
+ os: windows-2019
+ channel: stable
+ prepare_command: rustup default stable-msvc
+ additional_core_features: trace,serial-pass
+ additional_player_features: renderdoc
+ - name: Windows Nightly
+ os: windows-2019
+ channel: nightly
+ prepare_command: rustup default nightly-msvc
+ additional_core_features:
+ additional_player_features:
+ steps:
+ - uses: actions/checkout@v2
+ - if: matrix.channel == 'nightly'
+ name: Install latest nightly
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: nightly
+ override: true
+ - if: matrix.channel == 'stable'
+ run: rustup component add clippy
+ # prepare
+ - if: matrix.prepare_command != ''
+ run: ${{ matrix.prepare_command }}
+ # build with no features first
+ - if: matrix.additional_core_features == ''
+ run: cargo check --manifest-path wgpu-core/Cargo.toml --no-default-features
+ - if: matrix.additional_core_features != ''
+ run: cargo check --manifest-path wgpu-core/Cargo.toml --features ${{ matrix.additional_core_features }}
+ - if: matrix.additional_player_features != ''
+ run: cargo check --manifest-path player/Cargo.toml --features ${{ matrix.additional_player_features }}
+ - if: matrix.channel == 'stable'
+ run: cargo clippy
+ - if: matrix.channel == 'nightly'
+ run: cargo test -- --nocapture