File tree Expand file tree Collapse file tree 1 file changed +9
-43
lines changed
Expand file tree Collapse file tree 1 file changed +9
-43
lines changed Original file line number Diff line number Diff line change @@ -2,38 +2,16 @@ name: Build and Test
22
33on :
44 push :
5- tags :
6- - ' v*'
7- pull_request :
8- branches :
9- - main
105
116jobs :
127 build :
138 name : Build and Test
14- runs-on : ${{ matrix.os }}
15- strategy :
16- matrix :
17- os : [ubuntu-latest, windows-latest, macos-latest]
18- features :
19- - " "
20- - " cuda"
21- - " vulkan"
22- - " metal"
23- include :
24- - os : macos-latest
25- features : " metal"
26- - os : windows-latest
27- features : " cuda"
28- - os : windows-latest
29- features : " vulkan"
30- - os : ubuntu-latest
31- features : " cuda"
32- - os : ubuntu-latest
33- features : " vulkan"
9+ runs-on : ubuntu-latest
3410 steps :
3511 - name : Checkout code
36- uses : actions/checkout@v3
12+ uses : actions/checkout@v5
13+ with :
14+ submodules : ' recursive'
3715
3816 - name : Set up Rust
3917 uses : actions-rs/toolchain@v1
@@ -42,25 +20,13 @@ jobs:
4220 override : true
4321
4422 - name : Build
45- run : |
46- if [ "${{ matrix.features }}" != "" ]; then
47- cargo build --release --features ${{ matrix.features }}
48- else
49- cargo build --release
50- fi
23+ run : cargo build --release
5124
5225 - name : Run Tests
53- run : |
54- if [ "${{ matrix.features }}" != "" ]; then
55- cargo test --features ${{ matrix.features }}
56- else
57- cargo test
58- fi
26+ run : cargo test
5927
6028 - name : Upload Artifact
61- if : startsWith(github.ref, 'refs/tags/')
62- uses : actions/upload-artifact@v3
29+ uses : actions/upload-artifact@v4
6330 with :
64- name : ${{ matrix.os }}-${{ matrix.features }}
65- path : |
66- target/release/ltengine*
31+ name : ubuntu
32+ path : target/release/*
You can’t perform that action at this time.
0 commit comments