Skip to content

Commit

Permalink
Let's try again
Browse files Browse the repository at this point in the history
  • Loading branch information
JMicheli committed Jul 19, 2024
1 parent a9e6abd commit 1aae00b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 20 deletions.
21 changes: 12 additions & 9 deletions .github/actions/build-server/action.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
name: 'Build Stump server'
description: 'Compile the Stump Rust server'

inputs:
platform:
description: 'The plaform of the runner'
required: true
name: Build Stump server
description: Compile the Stump Rust server

runs:
using: composite
Expand All @@ -16,11 +11,19 @@ runs:
uses: ./.github/actions/setup-rust

- name: Copy bundled web app
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: webapp
path: ./apps/server/dist

- name: Compile server
# This action can be called to build in a Linux or Windows runner
# This step only runs when using Linux
- name: Compile server (Linux)
if: runner.os == 'Linux'
shell: bash
run: cargo build --package stump_server --release
- name: Compile server (Windows)
# Alternatively, when running Windows
if: runner.os == 'Windows'
shell: powershell
run: cargo build --package stump_server --release
4 changes: 2 additions & 2 deletions .github/actions/build-web/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Compile Web Application'
description: 'Compile stump web'
name: Compile Web Application
description: Compile stump web

runs:
using: composite
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: 'Setup system dependencies'
description: 'Install system dependencies and setup cache'
name: Setup system dependencies
description: Install system dependencies and setup cache

runs:
using: 'composite'
using: composite
steps:
- name: Install Rust
uses: actions-rs/toolchain@v1
Expand Down
12 changes: 6 additions & 6 deletions .github/actions/upload-artifact/action.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: 'Upload Local'
description: 'Upload artifact to local action'
name: Upload Local
description: Upload artifact to local action

inputs:
upload-name:
required: true
description: 'Name of the upload'
description: Name of the upload
upload-path:
required: true
description: 'Path to the upload data'
description: Path to the upload data

runs:
using: 'composite'
using: composite
steps:
# https://github.com/actions/upload-artifact/issues/337
- name: Normalize
Expand All @@ -22,7 +22,7 @@ runs:
echo "normalized_path=$UPLOAD_PATH" >> $GITHUB_OUTPUT
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.upload-name }}
path: ${{ env.normalized_path || inputs.upload-path }}
Expand Down

0 comments on commit 1aae00b

Please sign in to comment.