😞
This commit is contained in:
parent
f5bc7982f6
commit
a12f8c38e5
42
.github/workflows/rust.yml
vendored
42
.github/workflows/rust.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
toolchain:
|
toolchain:
|
||||||
- stable
|
- stable
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- 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 fmt --check
|
- run: cargo fmt --check
|
||||||
@ -30,7 +30,7 @@ jobs:
|
|||||||
toolchain:
|
toolchain:
|
||||||
- stable
|
- stable
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- 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 clippy --all-targets --all-features
|
- run: cargo clippy --all-targets --all-features
|
||||||
@ -44,7 +44,7 @@ jobs:
|
|||||||
toolchain:
|
toolchain:
|
||||||
- stable
|
- stable
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- 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 test --verbose
|
- run: cargo test --verbose
|
||||||
@ -58,7 +58,7 @@ jobs:
|
|||||||
toolchain:
|
toolchain:
|
||||||
- stable
|
- stable
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- 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
|
||||||
@ -66,7 +66,6 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: pumpkin-${{ matrix.os }}
|
name: pumpkin-${{ matrix.os }}
|
||||||
path: ./
|
|
||||||
compression-level: 9
|
compression-level: 9
|
||||||
path: target/release/pumpkin*
|
path: target/release/pumpkin*
|
||||||
clippy_release:
|
clippy_release:
|
||||||
@ -77,7 +76,7 @@ jobs:
|
|||||||
toolchain:
|
toolchain:
|
||||||
- stable
|
- stable
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- 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 clippy --release --all-targets --all-features
|
- run: cargo clippy --release --all-targets --all-features
|
||||||
@ -92,7 +91,7 @@ jobs:
|
|||||||
NIGHTLY_REPO: ${{ github.repository_owner }}/pumpkin-commit-builds
|
NIGHTLY_REPO: ${{ github.repository_owner }}/pumpkin-commit-builds
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v5
|
||||||
# Creates a draft release for the current commit
|
# Creates a draft release for the current commit
|
||||||
- name: Create Draft GitHub Release
|
- name: Create Draft GitHub Release
|
||||||
id: create-release
|
id: create-release
|
||||||
@ -119,42 +118,29 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.COMMIT_REPO_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.COMMIT_REPO_TOKEN }}
|
||||||
|
|
||||||
# Download and upload the Linux artifact
|
- name: Download all executables
|
||||||
- name: Download Linux executable
|
|
||||||
uses: actions/download-artifact@v5
|
uses: actions/download-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: pumpkin-ubuntu-latest
|
path: pumpkin
|
||||||
path: ./
|
pattern: pumpkin-*
|
||||||
|
merge-multiple: true
|
||||||
|
|
||||||
|
# Upload the artifacts from the downloaded directory
|
||||||
- name: Upload Linux executable to release
|
- name: Upload Linux executable to release
|
||||||
run: |
|
run: |
|
||||||
gh release upload ${{ steps.create-release.outputs.release-id }} ./pumpkin --repo ${{ env.NIGHTLY_REPO }}
|
gh release upload ${{ steps.create-release.outputs.release-id }} pumpkin/pumpkin-ubuntu-latest --repo ${{ env.NIGHTLY_REPO }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.COMMIT_REPO_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.COMMIT_REPO_TOKEN }}
|
||||||
|
|
||||||
# Download and upload the Windows artifact
|
|
||||||
- name: Download Windows executable
|
|
||||||
uses: actions/download-artifact@v5
|
|
||||||
with:
|
|
||||||
name: pumpkin-windows-latest
|
|
||||||
path: ./
|
|
||||||
|
|
||||||
- name: Upload Windows executable to release
|
- name: Upload Windows executable to release
|
||||||
run: |
|
run: |
|
||||||
gh release upload ${{ steps.create-release.outputs.release-id }} ./pumpkin.exe --repo ${{ env.NIGHTLY_REPO }}
|
gh release upload ${{ steps.create-release.outputs.release-id }} pumpkin/pumpkin-windows-latest.exe --repo ${{ env.NIGHTLY_REPO }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.COMMIT_REPO_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.COMMIT_REPO_TOKEN }}
|
||||||
|
|
||||||
# Download and upload the macOS artifact
|
|
||||||
- name: Download macOS executable
|
|
||||||
uses: actions/download-artifact@v5
|
|
||||||
with:
|
|
||||||
name: pumpkin-macos-latest
|
|
||||||
path: ./
|
|
||||||
|
|
||||||
- name: Upload macOS executable to release
|
- name: Upload macOS executable to release
|
||||||
run: |
|
run: |
|
||||||
gh release upload ${{ steps.create-release.outputs.release-id }} ./pumpkin --repo ${{ env.NIGHTLY_REPO }}
|
gh release upload ${{ steps.create-release.outputs.release-id }} pumpkin/pumpkin-macos-latest --repo ${{ env.NIGHTLY_REPO }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.COMMIT_REPO_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.COMMIT_REPO_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user