This repository was archived by the owner on Jun 29, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 68
74 lines (62 loc) · 2.74 KB
/
compiler.yml
File metadata and controls
74 lines (62 loc) · 2.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Plugin Compiler
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
path: main
- name: Download PluginLoaderTool
uses: actions/checkout@v3
with:
path: tools
repository: 'sepluginloader/PluginLoaderTool'
- name: Space Engineers cache
uses: actions/cache@v3.2.5
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: se\
# An explicit key for restoring and saving the cache
key: seds
- name: NuGet cache
uses: actions/cache@v3.2.5
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: tools\packages\
# An explicit key for restoring and saving the cache
key: loadertool_packages
# Install SteamCMD
- name: Setup SteamCMD
uses: CyberAndrii/setup-steamcmd@v1.1.5
# Install Space Engineers Dedicated Server
- name: Install Space Engineers
run: steamcmd +force_install_dir $env:GITHUB_WORKSPACE\se +login anonymous +app_update 298740 +quit
shell: powershell
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Build PluginLoaderTool.exe
run: |
msbuild -t:restore -p:RestorePackagesConfig=true tools\PluginLoaderTool.sln
msbuild -t:Build -p:OutputPath=..\build,Configuration=Release,Platform=x64,TargetFrameworkVersion=v4.8 tools\PluginLoaderTool\PluginLoaderTool.csproj
- name: Run PluginLoaderTools.exe
run: tools\build\PluginLoaderTool.exe -i main\Plugins --cache compiled_plugins --steamdir se -o plugins.zip
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.2
with:
# Artifact name
name: compiled_plugins # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: plugins.zip
# The desired behavior if no files are found using the provided path.
if-no-files-found: warn
# Duration after which artifact will expire in days. 0 means using default retention.
retention-days: 0