File tree Expand file tree Collapse file tree 1 file changed +19
-12
lines changed Expand file tree Collapse file tree 1 file changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -5,25 +5,32 @@ on: release
5
5
jobs :
6
6
generate :
7
7
8
- runs-on : ${{ matrix.os }}
8
+ runs-on : ubuntu-latest
9
9
10
10
strategy :
11
11
fail-fast : false
12
12
matrix :
13
- os : [windows-latest, macOS-latest, ubuntu-latest]
13
+ target :
14
+ - x86_64-pc-windows-gnu
15
+ - x86_64-apple-darwin
16
+ - x86_64-unknown-linux-gnu
14
17
15
18
steps :
16
- - name : Checkout the repository
17
- uses : actions/checkout@master
18
- - name : Generate artifacts
19
- run : cargo build --release
19
+ - uses : actions/checkout@v1
20
+ - uses : actions-rs/toolchain@v1
21
+ with :
22
+ toolchain : nightly
23
+ target : ${{ matrix.target }}
24
+ override : true
25
+ - uses : actions-rs/cargo@v1
26
+ with :
27
+ use-cross : true
28
+ command : build
29
+ args : --release --target=${{ matrix.target }}
20
30
- name : Rename artifacts
21
- run : |
22
- cp target/release/bridge target/release/bridge-${{ matrix.os }}
23
- shell : bash
24
- - name : Upload artifacts
25
- uses : skx/github-action-publish-binaries@master
31
+ run : cp target/${{ matrix.target }}/release/bridge target/${{ matrix.target }}/release/bridge-${{ matrix.target }} || true
32
+ - uses : skx/github-action-publish-binaries@master
26
33
env :
27
34
GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
28
35
with :
29
- args : ' target/release/bridge- *'
36
+ args : ' target/${{ matrix.target }}/ release/bridge*'
You can’t perform that action at this time.
0 commit comments