File tree Expand file tree Collapse file tree 4 files changed +18
-18
lines changed Expand file tree Collapse file tree 4 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -138,12 +138,12 @@ jobs:
138
138
run : cross build --verbose --release --target=${{ matrix.TARGET }}
139
139
140
140
- name : Rename
141
- run : cp target/${{ matrix.TARGET }}/release/mcmc_demo ${{ matrix.EXTENSION }} mcmc_demo -${{ matrix.TARGET }}${{ matrix.EXTENSION }}
141
+ run : cp target/${{ matrix.TARGET }}/release/${{ github.event.repository.name }}${{ matrix.EXTENSION }} ${{ github.event.repository.name }} -${{ matrix.TARGET }}${{ matrix.EXTENSION }}
142
142
143
143
- uses : actions/upload-artifact@master
144
144
with :
145
- name : mcmc_demo -${{ matrix.TARGET }}${{ matrix.EXTENSION }}
146
- path : mcmc_demo -${{ matrix.TARGET }}${{ matrix.EXTENSION }}
145
+ name : ${{ github.event.repository.name }} -${{ matrix.TARGET }}${{ matrix.EXTENSION }}
146
+ path : ${{ github.event.repository.name }} -${{ matrix.TARGET }}${{ matrix.EXTENSION }}
147
147
148
148
# this requires read-write permissions on the repo:
149
149
# https://github.com/svenstaro/upload-release-action/issues/70
@@ -152,8 +152,8 @@ jobs:
152
152
if : ${{ github.event_name == 'push' }}
153
153
with :
154
154
repo_token : ${{ secrets.GITHUB_TOKEN }}
155
- file : mcmc_demo -${{ matrix.TARGET }}${{ matrix.EXTENSION }}
156
- asset_name : mcmc_demo -${{ matrix.TARGET }}${{ matrix.EXTENSION }}
155
+ file : ${{ github.event.repository.name }} -${{ matrix.TARGET }}${{ matrix.EXTENSION }}
156
+ asset_name : ${{ github.event.repository.name }} -${{ matrix.TARGET }}${{ matrix.EXTENSION }}
157
157
tag : ${{ github.ref }}
158
158
prerelease : ${{ !startsWith(github.ref, 'refs/tags/') }}
159
159
overwrite : true
Original file line number Diff line number Diff line change 7
7
{
8
8
"type" : " lldb" ,
9
9
"request" : " launch" ,
10
- "name" : " Debug unit tests in library 'mcmc_demo '" ,
10
+ "name" : " Debug unit tests in library 'mcmc-demo '" ,
11
11
"cargo" : {
12
12
"args" : [
13
13
" test" ,
14
14
" --no-run" ,
15
15
" --lib" ,
16
- " --package=mcmc_demo "
16
+ " --package=mcmc-demo "
17
17
],
18
18
"filter" : {
19
- "name" : " mcmc_demo " ,
19
+ "name" : " mcmc-demo " ,
20
20
"kind" : " lib"
21
21
}
22
22
},
26
26
{
27
27
"type" : " lldb" ,
28
28
"request" : " launch" ,
29
- "name" : " Debug executable 'mcmc_demo '" ,
29
+ "name" : " Debug executable 'mcmc-demo '" ,
30
30
"cargo" : {
31
31
"args" : [
32
32
" build" ,
33
- " --bin=mcmc_demo " ,
34
- " --package=mcmc_demo "
33
+ " --bin=mcmc-demo " ,
34
+ " --package=mcmc-demo "
35
35
],
36
36
"filter" : {
37
- "name" : " mcmc_demo " ,
37
+ "name" : " mcmc-demo " ,
38
38
"kind" : " bin"
39
39
}
40
40
},
44
44
{
45
45
"type" : " lldb" ,
46
46
"request" : " launch" ,
47
- "name" : " Debug unit tests in executable 'mcmc_demo '" ,
47
+ "name" : " Debug unit tests in executable 'mcmc-demo '" ,
48
48
"cargo" : {
49
49
"args" : [
50
50
" test" ,
51
51
" --no-run" ,
52
- " --bin=mcmc_demo " ,
53
- " --package=mcmc_demo "
52
+ " --bin=mcmc-demo " ,
53
+ " --package=mcmc-demo "
54
54
],
55
55
"filter" : {
56
- "name" : " mcmc_demo " ,
56
+ "name" : " mcmc-demo " ,
57
57
"kind" : " bin"
58
58
}
59
59
},
Original file line number Diff line number Diff line change 1
1
[package ]
2
- name = " mcmc_demo "
2
+ name = " mcmc-demo "
3
3
version = " 0.1.0"
4
4
authors = [
" Samuel Maier <[email protected] >" ]
5
5
edition = " 2021"
You can’t perform that action at this time.
0 commit comments