forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.79 KB
/
Copy pathbevy_examples.yaml
File metadata and controls
54 lines (51 loc) · 1.79 KB
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
48
49
50
51
52
53
54
# Copyright © SixtyFPS GmbH <info@slint.dev>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
name: Bevy examples
on:
workflow_dispatch:
inputs:
update:
description: 'Whether to run cargo update before testing'
required: false
type: boolean
default: false
save_if:
description: 'Condition to save the cache'
required: false
type: boolean
default: true
workflow_call:
inputs:
update:
description: 'Whether to run cargo update before testing'
required: false
type: boolean
default: false
save_if:
description: 'Condition to save the cache'
required: false
type: boolean
default: true
jobs:
bevy_examples:
strategy:
matrix:
os: [ubuntu-22.04, macos-14, windows-2022]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-rust
with:
save_if: ${{ inputs.save_if }}
- uses: ./.github/actions/install-linux-dependencies
with:
extra-packages: libwayland-dev libasound2-dev
- uses: ./.github/actions/install-skia-dependencies
- uses: ilammy/msvc-dev-cmd@v1
- name: Cargo update
if: ${{ inputs.update }}
run: cargo update
working-directory: examples/bevy
- name: Build Bevy Examples
run: cargo build --locked
working-directory: examples/bevy