-
Notifications
You must be signed in to change notification settings - Fork 17
54 lines (49 loc) · 1.73 KB
/
Copy pathbuild-release-main.yml
File metadata and controls
54 lines (49 loc) · 1.73 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
name: Unity Cloud Build Release
on:
workflow_dispatch:
push:
branches:
- main
jobs:
get-info:
name: Get Info
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
version: ${{ steps.get_version.outputs.next_short_version }}
tag_version: ${{ steps.get_version.outputs.next_tag_version }}
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Get version
id: get_version
uses: ./.github/actions/version
- name: Write job summary
run: |
echo "## Release Build" >> $GITHUB_STEP_SUMMARY
echo "**Version:** \`${{ steps.get_version.outputs.next_short_version }}\` | **Tag:** \`${{ steps.get_version.outputs.next_tag_version }}\`" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "> ⚠️ If some artefacts are missing please take a look at previous attempts" >> $GITHUB_STEP_SUMMARY
# Enable cache reuse for release builds: cache_strategy=library turns on the remote
# library/shader cache and clean_build=false lets the build consume it. The shared,
# dev-isolated release/hotfix/main cache pool (cold genesis) is wired in build.py's
# clone_current_target.
build:
name: Build Unity Cloud
needs: get-info
strategy:
matrix:
install_source: ['launcher', 'epic']
uses: ./.github/workflows/build-unitycloud.yml
with:
profile: none
clean_build: false
cache_strategy: library
version: ${{ needs.get-info.outputs.version }}
sentry_enabled: true
is_release_build: true
install_source: ${{ matrix.install_source }}
tag_version: ${{ needs.get-info.outputs.tag_version }}
secrets: inherit