Skip to content

Commit 25bba75

Browse files
committed
ci: fix uploading executables
1 parent 13ef617 commit 25bba75

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/rust.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,18 @@ jobs:
6060
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
6161
- uses: Swatinem/rust-cache@v2
6262
- run: cargo build --verbose --release
63+
- name: Prepare artifacts
64+
shell: bash
65+
run: |
66+
mkdir -p dist
67+
if [ "${{ runner.os }}" == "Windows" ]; then EXT=".exe"; fi
68+
cp "target/release/pumpkin$EXT" "dist/pumpkin-${{ runner.arch }}-${{ runner.os }}$EXT"
6369
- name: Export executable
6470
uses: actions/upload-artifact@v4
6571
with:
66-
name: pumpkin-${{ matrix.os }}
72+
name: pumpkin-${{ runner.arch }}-${{ runner.os }}
6773
compression-level: 9
68-
path: target/${{ matrix.target }}/release/pumpkin*
74+
path: dist/pumpkin-*
6975
clippy_release:
7076
name: Run lints in release mode
7177
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)