forked from GodotSteam/GodotSteam
-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (81 loc) · 2.5 KB
/
build-windows-artifact.yml
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
75
76
77
78
79
80
81
82
83
84
on:
workflow_call:
inputs:
steamworks_sdk_tag:
required: true
type: string
godot_tag:
required: true
type: string
binary_name:
required: true
type: string
build_params:
required: true
type: string
artifact_name:
required: true
type: string
export_name:
required: true
type: string
secrets:
steamworks_sdk_repo:
required: true
steamworks_sdk_repo_token:
required: true
jobs:
build-windows:
runs-on: windows-latest
steps:
# Checkout Godot
- name: Checkout Godot
uses: actions/checkout@v3
with:
repository: "godotengine/godot"
path: "godot"
ref: ${{ inputs.godot_tag }}
# Checkout current source of GodotSteam
- name: Checkout GodotSteam
uses: actions/checkout@v3
with:
path: "godotsteam"
- name: Copy GodotSteam Module
run: |
dir
robocopy godotsteam godot/modules/godotsteam /e
cd godot/modules/godotsteam && dir
EXIT 0
# Checkout Steamworks SDK
- name: Checkout Steamworks SDK
uses: actions/checkout@v3
with:
path: "steamworks"
repository: ${{ secrets.steamworks_sdk_repo }}
token: ${{ secrets.steamworks_sdk_repo_token }}
ref: ${{ inputs.steamworks_sdk_tag }}
- name: Copy Steamworks
run: |
robocopy steamworks/public/steam godot/modules/godotsteam/sdk/public/steam /e
robocopy steamworks/redistributable_bin godot/modules/godotsteam/sdk/redistributable_bin /e
EXIT 0
- name: Install Build Requirements
run: python -m pip install scons==4.4.0
- name: Build Windows
working-directory: "godot"
run: |
scons ${{ inputs.build_params }}
cd bin && ren ${{ inputs.binary_name }} ${{ inputs.export_name }}
- name: Upload Windows Build
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.artifact_name }}
path: godot/bin/${{ inputs.export_name }}
retention-days: 1
- name: Upload Windows 64 bit Steam File
uses: actions/upload-artifact@v3
with:
name: win_steam_api_64
path: |
godot/modules/godotsteam/sdk/redistributable_bin/win64/steam_api64.dll
retention-days: 1