File tree Expand file tree Collapse file tree 2 files changed +14
-40
lines changed Expand file tree Collapse file tree 2 files changed +14
-40
lines changed Original file line number Diff line number Diff line change 5
5
build-release :
6
6
strategy :
7
7
matrix :
8
- platform : [ubuntu-latest, windows-latest, macos-latest]
8
+ include :
9
+ - os : ubuntu-latest
10
+ bin : esdump-rs
11
+ target : x86_64-unknown-linux-gnu
12
+ - os : macOS-latest
13
+ bin : esdump-rs
14
+ target : aarch64-apple-darwin
15
+ - os : windows-latest
16
+ bin : esdump-rs.exe
17
+ target : x86_64-pc-windows-msvc
9
18
name : cargo build
10
19
runs-on : ${{ matrix.platform }}
11
20
steps :
@@ -14,10 +23,12 @@ jobs:
14
23
- uses : Swatinem/rust-cache@v2
15
24
with :
16
25
key : " release-lto"
17
- - run : cargo build --profile=release-lto
26
+ - run : cargo build --target=${{ matrix.target }} --profile=release-lto
27
+ - run : mkdir ${{ matrix.target }}
28
+ - run : cp target/${{ matrix.target }}/release-lto/${{ matrix.bin }} ${{ matrix.target }}/${{ matrix.bin }}
18
29
- name : Upload build artifacts
19
30
uses : actions/upload-artifact@v4
20
31
with :
21
32
name : ${{ matrix.platform }}
22
- path : target/release-lto/esdump-rs*
33
+ path : ${{ matrix. target }}
23
34
retention-days : 1
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments