aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-11-18 16:30:55 +0100
committerGitHub Enterprise <[email protected]>2025-11-18 16:30:55 +0100
commit023feb491d0989eaf14a42f58f7c6e8f15eb67d4 (patch)
tree314eb955381295c9941f8212449666329441de67 /.github/workflows
parentAdded actions to drop all projects or all z$ namespaces. (#655) (diff)
downloadzen-023feb491d0989eaf14a42f58f7c6e8f15eb67d4.tar.xz
zen-023feb491d0989eaf14a42f58f7c6e8f15eb67d4.zip
retain xmake state between runs (#656)
this change relocates the xmake global state to a directory beside the workspace directory so it doesn't get wiped on every run thus we can avoid rebuilding every package on every run. Unlike vcpkg, xmake separates revisions of packages into their own tree it's robust enough to handle different versions of different packages on different branches. It's however not clear to me that modifying the contents of an `xmake.lua` package definition file across branches is ok. It *may* be necessary to change the directory name for the shared state in this case but it should be a rare event.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/create_release.yml2
-rw-r--r--.github/workflows/validate.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml
index 9b425f9c6..f095f3d21 100644
--- a/.github/workflows/create_release.yml
+++ b/.github/workflows/create_release.yml
@@ -2,7 +2,7 @@ name: Create Release
env:
XMAKE_VERSION: 2.9.9
WINDOWS_SDK_VERSION: 22621
- XMAKE_GLOBALDIR: ${{ github.workspace }}/.xmake_global
+ XMAKE_GLOBALDIR: ${{ github.workspace }}/../.xmake_shared
on:
push:
diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
index 032ea2884..17e031ba0 100644
--- a/.github/workflows/validate.yml
+++ b/.github/workflows/validate.yml
@@ -2,7 +2,7 @@ name: Validate
env:
XMAKE_VERSION: 2.9.9
WINDOWS_SDK_VERSION: 22621
- XMAKE_GLOBALDIR: ${{ github.workspace }}/.xmake_global
+ XMAKE_GLOBALDIR: ${{ github.workspace }}/../.xmake_shared
on:
pull_request: