mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Fix Generate Fix? 17th Time's The Charm Fix Build See Eye Docs Victory Tabular Formatting Formating3
61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
name: cargo-generate
|
|
|
|
on:
|
|
push:
|
|
branches: ["*"]
|
|
tags: [v0.*]
|
|
pull_request:
|
|
merge_group:
|
|
|
|
env:
|
|
#
|
|
# Dependency versioning
|
|
#
|
|
|
|
# This is the MSRV used by `wgpu` itself and all surrounding infrastructure.
|
|
REPO_MSRV: "1.83"
|
|
RUSTFLAGS: -D warnings
|
|
|
|
jobs:
|
|
cargo-generate:
|
|
timeout-minutes: 5
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- name: "01-hello-compute"
|
|
path: "examples/standalone/01_hello_compute"
|
|
|
|
name: "${{ matrix.name }}"
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Repo MSRV toolchain
|
|
run: |
|
|
rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal
|
|
rustup override set ${{ env.REPO_MSRV }}
|
|
cargo -V
|
|
|
|
- name: "Install cargo-generate"
|
|
uses: taiki-e/install-action@v2
|
|
with:
|
|
tool: cargo-generate
|
|
|
|
- name: "Run cargo-generate"
|
|
run: |
|
|
cd ..
|
|
cargo generate --path wgpu --name ${{ matrix.name }} ${{ matrix.path }}
|
|
|
|
- name: "Check generated files"
|
|
run: |
|
|
cd ../${{ matrix.name }}/
|
|
cat <<EOF >> Cargo.toml
|
|
[patch.crates-io]
|
|
wgpu = { path = "../wgpu/wgpu" }
|
|
EOF
|
|
cargo check
|