Skip to content

Commit 092adb6

Browse files
Merge pull request #739 from miredirex/ci/tweaks
CI update: correct artifact versioning, tags trigger, xmake deps caching
2 parents 16c3786 + 80b4f93 commit 092adb6

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/playable-build.yml renamed to .github/workflows/windows-playable-build.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
push:
99
branches:
1010
- master
11+
tags:
12+
- 'v[0-9]+.[0-9]+.[0-9]+'
1113

1214
jobs:
1315
build:
@@ -30,11 +32,19 @@ jobs:
3032
git submodule sync --recursive
3133
git submodule update --init --force --recursive --depth=1
3234
35+
- name: Cache xmake dependencies
36+
uses: actions/cache@v4
37+
with:
38+
path: ~/AppData/Local/.xmake/packages
39+
key: ${{ runner.os }}-xmake-${{ hashFiles('**/xmake.lua') }}
40+
3341
# Install xmake
3442
- name: Setup xmake
3543
uses: xmake-io/github-action-setup-xmake@v1
3644
with:
3745
xmake-version: 2.9.5
46+
actions-cache-folder: '.xmake-cache' # This doesn't cache dependencies, only xmake itself
47+
actions-cache-key: ${{ matrix.os }}
3848

3949
- name: Configure xmake and install dependencies
4050
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.mode }} --yes -vD
@@ -80,11 +90,11 @@ jobs:
8090

8191
# Upload artifact
8292

83-
- name: Store short commit hash
84-
run: echo "SHORT_SHA=$("${{ github.sha }}".SubString(0, 8))" >> $env:GITHUB_ENV
93+
- name: Store version string
94+
run: echo "STR_VERSION=$(git describe --tags)" >> $env:GITHUB_ENV
8595

8696
- name: Upload playable build
8797
uses: actions/upload-artifact@v4
8898
with:
89-
name: Skyrim Together Build (${{ env.SHORT_SHA }})
99+
name: Skyrim Together Build (${{ env.STR_VERSION }})
90100
path: str-build/

0 commit comments

Comments
 (0)