Skip to content

Standalone Example Infrastructure #1

Standalone Example Infrastructure

Standalone Example Infrastructure #1

Workflow file for this run

name: CI
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:
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