Skip to content

Commit e1a04d1

Browse files
committed
Switch to uptream suggested pipeline name extraction
1 parent e3e1edd commit e1a04d1

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

.github/workflows/rust.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,12 @@ jobs:
138138
run: cross build --verbose --release --target=${{ matrix.TARGET }}
139139

140140
- 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 }}
142142

143143
- uses: actions/upload-artifact@master
144144
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 }}
147147

148148
# this requires read-write permissions on the repo:
149149
# https://github.com/svenstaro/upload-release-action/issues/70
@@ -152,8 +152,8 @@ jobs:
152152
if: ${{ github.event_name == 'push' }}
153153
with:
154154
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 }}
157157
tag: ${{ github.ref }}
158158
prerelease: ${{ !startsWith(github.ref, 'refs/tags/') }}
159159
overwrite: true

.vscode/launch.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
{
88
"type": "lldb",
99
"request": "launch",
10-
"name": "Debug unit tests in library 'mcmc_demo'",
10+
"name": "Debug unit tests in library 'mcmc-demo'",
1111
"cargo": {
1212
"args": [
1313
"test",
1414
"--no-run",
1515
"--lib",
16-
"--package=mcmc_demo"
16+
"--package=mcmc-demo"
1717
],
1818
"filter": {
19-
"name": "mcmc_demo",
19+
"name": "mcmc-demo",
2020
"kind": "lib"
2121
}
2222
},
@@ -26,15 +26,15 @@
2626
{
2727
"type": "lldb",
2828
"request": "launch",
29-
"name": "Debug executable 'mcmc_demo'",
29+
"name": "Debug executable 'mcmc-demo'",
3030
"cargo": {
3131
"args": [
3232
"build",
33-
"--bin=mcmc_demo",
34-
"--package=mcmc_demo"
33+
"--bin=mcmc-demo",
34+
"--package=mcmc-demo"
3535
],
3636
"filter": {
37-
"name": "mcmc_demo",
37+
"name": "mcmc-demo",
3838
"kind": "bin"
3939
}
4040
},
@@ -44,16 +44,16 @@
4444
{
4545
"type": "lldb",
4646
"request": "launch",
47-
"name": "Debug unit tests in executable 'mcmc_demo'",
47+
"name": "Debug unit tests in executable 'mcmc-demo'",
4848
"cargo": {
4949
"args": [
5050
"test",
5151
"--no-run",
52-
"--bin=mcmc_demo",
53-
"--package=mcmc_demo"
52+
"--bin=mcmc-demo",
53+
"--package=mcmc-demo"
5454
],
5555
"filter": {
56-
"name": "mcmc_demo",
56+
"name": "mcmc-demo",
5757
"kind": "bin"
5858
}
5959
},

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "mcmc_demo"
2+
name = "mcmc-demo"
33
version = "0.1.0"
44
authors = ["Samuel Maier <[email protected]>"]
55
edition = "2021"

0 commit comments

Comments
 (0)