Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit fb145c8

Browse files
committed
use .exe ext for example file on win
1 parent 5bb9f67 commit fb145c8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
build:
20-
- { os: ubuntu-latest, target: x86_64-unknown-linux-gnu }
21-
- { os: macos-latest, target: x86_64-apple-darwin }
22-
- { os: windows-latest, target: x86_64-pc-windows-msvc }
20+
- { os: ubuntu-latest, exe: , target: x86_64-unknown-linux-gnu }
21+
- { os: macos-latest, exe: , target: x86_64-apple-darwin }
22+
- { os: windows-latest, exe: .exe, target: x86_64-pc-windows-msvc }
2323
steps:
2424
- name: checkout
2525
uses: actions/checkout@v3
@@ -36,13 +36,13 @@ jobs:
3636
run: cargo build --example codegen --release
3737

3838
- name: give executable representable name
39-
run: cp target/release/examples/codegen ./codegen-${{ matrix.build.target }}
39+
run: cp target/release/examples/codegen${{ matrix.build.exe }} ./codegen-${{ matrix.build.target }}${{ matrix.build.exe }}
4040

4141
- name: upload executable
4242
uses: actions/upload-artifact@v2
4343
with:
44-
name: codegen-${{ matrix.build.target }}
45-
path: codegen-${{ matrix.build.target }}
44+
name: codegen-${{ matrix.build.target }}${{ matrix.build.exe }}
45+
path: codegen-${{ matrix.build.target }}${{ matrix.build.exe }}
4646

4747
make-release:
4848
name: release
@@ -59,7 +59,7 @@ jobs:
5959
with: { name: codegen-x86_64-apple-darwin }
6060

6161
- uses: actions/download-artifact@v2
62-
with: { name: codegen-x86_64-pc-windows-msvc }
62+
with: { name: codegen-x86_64-pc-windows-msvc.exe }
6363

6464
- name: release
6565
uses: ncipollo/release-action@v1

0 commit comments

Comments
 (0)