Skip to content

Standalone Example Infrastructure #2

Standalone Example Infrastructure

Standalone Example Infrastructure #2

Workflow file for this run

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: "hello-compute"
path: "examples/standalone/1_hello_compute"
name: "cargo-generate: ${{ matrix.name }}"
steps:
- uses: actions/checkout@v2
- name: "Install cargo-generate"
uses: taiki-e/install-action@v2
with:
tool: cargo-generate
- name: "Run cargo-generate"
run: cargo generate --git ${{ github.repositoryUrl }} --revision ${{ github.sha }} --name ${{ matrix.name }}
- name: "Check generated files"
run: |
cd ${{ matrix.name }}/${{ matrix.path }}
cargo check