fix ci
This commit is contained in:
@@ -48,8 +48,8 @@ Use action cache:
|
|||||||
```yml
|
```yml
|
||||||
uses: xmake-io/github-action-setup-xmake@v1
|
uses: xmake-io/github-action-setup-xmake@v1
|
||||||
with:
|
with:
|
||||||
xmake-version: "2.7.2"
|
xmake-version: '2.7.2'
|
||||||
actions-cache-folder: ".xmake-cache"
|
actions-cache-folder: '.xmake-cache'
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|||||||
Vendored
+2
-1
@@ -70850,7 +70850,8 @@ async function unixInstall(version) {
|
|||||||
const actionsCacheFolder = core.getInput('actions-cache-folder');
|
const actionsCacheFolder = core.getInput('actions-cache-folder');
|
||||||
if (version.type !== 'local') {
|
if (version.type !== 'local') {
|
||||||
const ver = version.version;
|
const ver = version.version;
|
||||||
const cacheKey = `xmake-cache-${ver}-${os.arch()}-${os.platform()}-${(_a = process.env.RUNNER_OS) !== null && _a !== void 0 ? _a : 'unknown'}`;
|
const sha = version.sha;
|
||||||
|
const cacheKey = `xmake-cache-${ver}-${sha}-${os.arch()}-${os.platform()}-${(_a = process.env.RUNNER_OS) !== null && _a !== void 0 ? _a : 'unknown'}`;
|
||||||
if (actionsCacheFolder && process.env.GITHUB_WORKSPACE) {
|
if (actionsCacheFolder && process.env.GITHUB_WORKSPACE) {
|
||||||
const fullCachePath = path.join(process.env.GITHUB_WORKSPACE, actionsCacheFolder);
|
const fullCachePath = path.join(process.env.GITHUB_WORKSPACE, actionsCacheFolder);
|
||||||
try {
|
try {
|
||||||
|
|||||||
+3
-1
@@ -22,7 +22,9 @@ export async function unixInstall(version: Version): Promise<void> {
|
|||||||
if (version.type !== 'local') {
|
if (version.type !== 'local') {
|
||||||
const ver = version.version;
|
const ver = version.version;
|
||||||
const sha = version.sha;
|
const sha = version.sha;
|
||||||
const cacheKey = `xmake-cache-${ver}-${sha}-${os.arch()}-${os.platform()}-${process.env.RUNNER_OS ?? 'unknown'}`;
|
const cacheKey = `xmake-cache-${ver}-${sha}-${os.arch()}-${os.platform()}-${
|
||||||
|
process.env.RUNNER_OS ?? 'unknown'
|
||||||
|
}`;
|
||||||
|
|
||||||
if (actionsCacheFolder && process.env.GITHUB_WORKSPACE) {
|
if (actionsCacheFolder && process.env.GITHUB_WORKSPACE) {
|
||||||
const fullCachePath = path.join(process.env.GITHUB_WORKSPACE, actionsCacheFolder);
|
const fullCachePath = path.join(process.env.GITHUB_WORKSPACE, actionsCacheFolder);
|
||||||
|
|||||||
Reference in New Issue
Block a user