Skip to content

Bypass the network in singleplayer #440

Bypass the network in singleplayer

Bypass the network in singleplayer #440

Workflow file for this run

name: Package
on:
push:
branches: ['master']
jobs:
package-windows:
name: Windows
runs-on: windows-latest
env:
VULKAN_VERSION: "1.3.290.0"
VULKAN_SDK: "C:/VulkanSDK/1.3.290.0"
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Install Vulkan SDK
run: |
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/${{ env.VULKAN_VERSION }}/windows/VulkanSDK-${{ env.VULKAN_VERSION }}-Installer.exe" -OutFile vulkan.exe
./vulkan.exe --accept-licenses --default-answer --confirm-command install
- uses: dtolnay/rust-toolchain@stable
- name: Build Server
run: cargo build --package server --release
- name: Build Client
run: cargo build --package client --release --no-default-features
- name: Package Artifacts
run: |
mkdir artifacts
Move-Item -Path assets/* -Destination artifacts/
Move-Item -Path target/release/*.exe -Destination artifacts/
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: windows
path: "artifacts/*"
package-linux:
name: Linux
# Oldest supported runner, for wide glibc compat
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Install dependencies
run: sudo apt update && sudo apt-get -y install libasound2-dev libvulkan-dev libfontconfig-dev
# No prebuilt shaderc, since the official binaries don't to be compatible with Ubuntu 20.04.
- uses: dtolnay/rust-toolchain@stable
- name: Build Server
run: cargo build --package server --release
- name: Build Client
run: cargo build --package client --release --no-default-features
- name: Strip
run: |
strip target/release/server target/release/client
- name: Package Artifacts
run: |
mkdir artifacts
mv assets/* artifacts/
mv target/release/server artifacts/
mv target/release/client artifacts/
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: linux
path: "artifacts/*"