@@ -27,85 +27,22 @@ jobs:
27
27
strategy :
28
28
matrix :
29
29
run_args : [
30
- {label: Windows - All Features, os: windows-latest, features: "lua54,rhai,rune", cross: x86_64-pc-windows-msvc },
31
- {label: MacOS - All Features, os: macOS-latest, features: "lua54,rhai,rune", cross: x86_64-apple-darwin },
32
- {label: Ubuntu - All Features, os: ubuntu-latest, features: "lua54,rhai,rune", cross: x86_64-unknown-linux-gnu },
33
- {label: Ubuntu Aarch64 - All Features, os: ubuntu-latest, features: "lua54,rhai,rune", cross: aarch64-unknown-linux-gnu },
34
- {label: Ubuntu - Lua51, os: ubuntu-latest, features: "lua51", cross: x86_64-unknown-linux-gnu },
35
- {label: Ubuntu - Lua52, os: ubuntu-latest, features: "lua52", cross: x86_64-unknown-linux-gnu },
36
- {label: Ubuntu - Lua53, os: ubuntu-latest, features: "lua53", cross: x86_64-unknown-linux-gnu },
37
- {label: Ubuntu - Luajit, os: ubuntu-latest, features: "luajit", cross: x86_64-unknown-linux-gnu },
38
- {label: Ubuntu - Luajit52, os: ubuntu-latest, features: "luajit52", cross: x86_64-unknown-linux-gnu },
39
- {label: Ubuntu - Luau, os: ubuntu-latest, features: "luau", cross: x86_64-unknown-linux-gnu }
30
+ {label: Windows, os: windows-latest, cross: x86_64-pc-windows-msvc },
31
+ {label: MacOS, os: macOS-latest, cross: x86_64-apple-darwin },
32
+ {label: Ubuntu, os: ubuntu-latest, cross: x86_64-unknown-linux-gnu },
33
+ {label: Ubuntu Aarch64, os: ubuntu-latest, cross: aarch64-unknown-linux-gnu }
40
34
]
41
- steps :
42
- - if : runner.os == 'linux'
43
- name : Install alsa and udev
44
- run : sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
45
- - uses : actions/checkout@v2
46
- - uses : actions-rs/toolchain@v1
47
- with :
48
- profile : minimal
49
- toolchain : stable
50
- override : true
51
- - name : Rust Cache
52
- uses : Swatinem/rust-cache@v2.7.3
53
- - if : runner.os != 'windows'
54
- name : Clear space
55
- run : rm -rf /usr/share/dotnet; rm -rf /opt/ghc; rm -rf "/usr/local/share/boost"; rm -rf "$AGENT_TOOLSDIRECTORY"
56
- - uses : houseabsolute/actions-rust-cross@v0
57
- with :
58
- command : check
59
- target : ${{ matrix.run_args.cross }}
60
- args : --workspace --features=${{ matrix.run_args.features }} --profile=ephemeral-build
61
35
62
- fmt :
63
- name : Rustfmt
64
- runs-on : ubuntu-latest
65
- steps :
66
- - name : Install alsa and udev
67
- run : sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
68
- - uses : actions/checkout@v2
69
- - uses : actions-rs/toolchain@v1
70
- with :
71
- profile : minimal
72
- components : rustfmt
73
- toolchain : stable
74
- override : true
75
- - name : Rust Cache
76
- uses : Swatinem/rust-cache@v2.7.3
77
- - uses : actions-rs/cargo@v1
78
- with :
79
- command : fmt
80
- args : --all -- --check
81
-
82
- clippy :
83
- name : Clippy
84
- runs-on : ubuntu-latest
85
- steps :
86
- - name : Install alsa and udev
87
- run : sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
88
- - uses : actions/checkout@v2
89
- - uses : actions-rs/toolchain@v1
90
- with :
91
- toolchain : stable
92
- components : clippy
93
- override : true
94
- - name : Rust Cache
95
- uses : Swatinem/rust-cache@v2.7.3
96
- - uses : actions-rs/cargo@v1
97
- with :
98
- command : clippy
99
- args : --features=lua54,rhai,rune --profile=ephemeral-build -- -D warnings
100
36
tests :
101
37
name : Tests
102
- runs-on : ubuntu-latest
38
+ runs-on : {{ matrix.run_args.os }}
103
39
steps :
104
40
- name : Clear space
105
41
run : sudo rm -rf /usr/share/dotnet; sudo rm -rf /opt/ghc; sudo rm -rf "/usr/local/share/boost"; sudo rm -rf "$AGENT_TOOLSDIRECTORY"
106
42
- name : Checkout
107
43
uses : actions/checkout@v3
108
44
- name : Install alsa and udev
45
+ if : {{ matrix.run_args.os != 'windows-latest' }}
109
46
run : sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
110
47
- uses : actions-rs/toolchain@v1
111
48
with :
@@ -115,25 +52,27 @@ jobs:
115
52
uses : Swatinem/rust-cache@v2.7.3
116
53
- uses : actions-rs/cargo@v1
117
54
with :
118
- command : test
55
+ command : xtest ci-check
56
+ components : clippy, rustfmt, grcov
57
+ target : ${{ matrix.run_args.cross }}
119
58
args : --workspace --features=lua54,rhai,rune --profile=ephemeral-build
120
- docs :
121
- name : Docs
122
- runs-on : ubuntu-latest
123
- steps :
124
- - name : Install alsa and udev
125
- run : sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
126
- - uses : actions/checkout@v2
127
- - uses : actions-rs/toolchain@v1
128
- with :
129
- toolchain : stable
130
- override : true
131
- - name : Rust Cache
132
- uses : Swatinem/rust-cache@v2.7.3
133
- - name : Find docs.rs features
134
- run : echo "DOCS_FEATURES=$(cargo metadata --no-deps | python -c "import sys,json; [print(','.join(x['metadata']['docs.rs']['features'])) for x in json.load(sys.stdin)['packages'] if x['name'] == 'bevy_mod_scripting']")" >> $GITHUB_OUTPUT
135
- id : features
136
- - uses : actions-rs/cargo@v1
137
- with :
138
- command : doc
139
- args : --workspace --features=${{ steps.features.outputs.DOCS_FEATURES }} --profile=ephemeral-build
59
+ # docs:
60
+ # name: Docs
61
+ # runs-on: ubuntu-latest
62
+ # steps:
63
+ # - name: Install alsa and udev
64
+ # run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
65
+ # - uses: actions/checkout@v2
66
+ # - uses: actions-rs/toolchain@v1
67
+ # with:
68
+ # toolchain: stable
69
+ # override: true
70
+ # - name: Rust Cache
71
+ # uses: Swatinem/rust-cache@v2.7.3
72
+ # - name: Find docs.rs features
73
+ # run: echo "DOCS_FEATURES=$(cargo metadata --no-deps | python -c "import sys,json; [print(','.join(x['metadata']['docs.rs']['features'])) for x in json.load(sys.stdin)['packages'] if x['name'] == 'bevy_mod_scripting']")" >> $GITHUB_OUTPUT
74
+ # id: features
75
+ # - uses: actions-rs/cargo@v1
76
+ # with:
77
+ # command: doc
78
+ # args: --workspace --features=${{ steps.features.outputs.DOCS_FEATURES }} --profile=ephemeral-build
0 commit comments