File tree Expand file tree Collapse file tree 2 files changed +16
-18
lines changed
Expand file tree Collapse file tree 2 files changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -3,37 +3,35 @@ name: Test
33on :
44 push :
55 tags :
6- - v*
6+ - v*
77
88jobs :
9- build :
10- name : ${{ matrix.config.name }}
9+ dist :
1110 runs-on : ${{ matrix.config.os }}
1211 strategy :
12+ fail-fast : false
1313 matrix :
1414 config :
15- - name : ubuntu-build
16- os : ubuntu-latest
17- - name : macos-build
18- os : macos-latest
19- - name : windows-build
20- os : windows-latest
15+ - os : ubuntu-latest
16+ target : x86_64-unknown-linux-gnu
17+ # - os : macos-latest
18+ # target: x86_64-apple-darwin
19+ - os : windows-latest
20+ target : x86_64-pc- windows-msvc
2121 steps :
2222 - uses : actions/checkout@v3
2323 - uses : actions-rs/toolchain@v1
2424 with :
25+ profile : minimal
2526 toolchain : stable
2627 - uses : actions-rs/cargo@v1
2728 with :
2829 command : build
29- args : --release
30- release :
31- runs-on : ubuntu-latest
32- needs : [build]
33- steps :
30+ args : --release --locked --target ${{ matrix.target }}
31+ - name : Strip release binary (linux and macos)
32+ if : matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
33+ run : strip "target/${{ matrix.target }}/release/eva"
3434 - name : Release
3535 uses : softprops/action-gh-release@v1
3636 with :
37- files : |
38- target/release/eva
39- target/release/eva.exe
37+ files : target/${{ matrix.target }}/release/eva*
You can’t perform that action at this time.
0 commit comments