ci: fix uploading executables
This commit is contained in:
parent
13ef61727b
commit
25bba75a57
10
.github/workflows/rust.yml
vendored
10
.github/workflows/rust.yml
vendored
@ -60,12 +60,18 @@ jobs:
|
|||||||
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- run: cargo build --verbose --release
|
- run: cargo build --verbose --release
|
||||||
|
- name: Prepare artifacts
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
mkdir -p dist
|
||||||
|
if [ "${{ runner.os }}" == "Windows" ]; then EXT=".exe"; fi
|
||||||
|
cp "target/release/pumpkin$EXT" "dist/pumpkin-${{ runner.arch }}-${{ runner.os }}$EXT"
|
||||||
- name: Export executable
|
- name: Export executable
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: pumpkin-${{ matrix.os }}
|
name: pumpkin-${{ runner.arch }}-${{ runner.os }}
|
||||||
compression-level: 9
|
compression-level: 9
|
||||||
path: target/${{ matrix.target }}/release/pumpkin*
|
path: dist/pumpkin-*
|
||||||
clippy_release:
|
clippy_release:
|
||||||
name: Run lints in release mode
|
name: Run lints in release mode
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user