-
Notifications
You must be signed in to change notification settings - Fork 962
47 lines (36 loc) · 967 Bytes
/
generate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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