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
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