Compare commits

...

6 Commits

7 changed files with 313 additions and 404 deletions
+3 -3
View File
@@ -13,12 +13,12 @@ jobs:
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: install
uses: wyvox/action-setup-pnpm@v3
with:
node-version: 23
pnpm-version: 9
node-version: 24
pnpm-version: 10
- name: build
run: pnpm build
- name: test
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v6
- uses: xmake-io/github-action-setup-xmake@master
with:
xmake-version: ${{ matrix.version }}
+1 -1
View File
@@ -36,6 +36,6 @@ inputs:
default: ''
runs:
using: 'node20'
using: 'node24'
main: 'dist/index.js'
post: 'dist/index.js'
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "github-action-setup-xmake",
"version": "1.2.4",
"version": "1.2.5",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "github-action-setup-xmake",
"version": "1.2.4",
"version": "1.2.5",
"license": "GPL-3.0-or-later",
"dependencies": {
"@actions/cache": "^4.0.3",
+9 -9
View File
@@ -1,12 +1,12 @@
{
"name": "github-action-setup-xmake",
"version": "1.2.4",
"version": "1.2.5",
"description": "Set up your GitHub Actions workflow with a specific version of xmake",
"main": "dist/index.js",
"author": "OpportunityLiu",
"license": "GPL-3.0-or-later",
"repository": "https://github.com/xmake-io/github-action-setup-xmake.git",
"homepage": "https://github.com/xmake-io/github-action-setup-xmake",
"repository": "https://git.soulmc.cn/wed15/github-action-setup-xmake.git",
"homepage": "https://git.soulmc.cn/wed15/github-action-setup-xmake",
"scripts": {
"watch": "tsc --watch",
"build": "ncc build src/index.ts",
@@ -18,12 +18,12 @@
"release": "pnpm clean && pnpm format && pnpm lint && pnpm build"
},
"dependencies": {
"@actions/cache": "^4.0.3",
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"@actions/io": "^1.1.3",
"@actions/tool-cache": "^2.0.2",
"semver": "^7.7.2"
"@actions/cache": "^5.0.5",
"@actions/core": "^2.0.3",
"@actions/exec": "^2.0.0",
"@actions/io": "^2.0.0",
"@actions/tool-cache": "^3.0.1",
"semver": "^7.7.4"
},
"devDependencies": {
"@types/jest": "^29.5.12",
+294 -385
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -23,7 +23,7 @@ async function getInstallerUrl(version: GitVersion, _fallback: boolean = false):
if (vers !== 'dev' && vers !== 'master') {
vers = latestVers;
}
finalUrl = `https://github.com/xmake-io/xmake/releases/download/${latestVers}/xmake-${vers}.${arch}.exe`;
finalUrl = `https://github.bibk.top/xmake-io/xmake/releases/download/${latestVers}/xmake-${vers}.${arch}.exe`;
break;
}
case 'pull': {
@@ -35,8 +35,8 @@ async function getInstallerUrl(version: GitVersion, _fallback: boolean = false):
case 'tags': {
const arch = os.arch() === 'arm64' ? 'arm64' : os.arch() === 'x64' ? 'win64' : 'win32';
finalUrl = semver.gt(vers, '2.2.6')
? `https://github.com/xmake-io/xmake/releases/download/${vers}/xmake-${vers}.${arch}.exe`
: `https://github.com/xmake-io/xmake/releases/download/${vers}/xmake-${vers}.exe`;
? `https://github.bibk.top/xmake-io/xmake/releases/download/${vers}/xmake-${vers}.${arch}.exe`
: `https://github.bibk.top/xmake-io/xmake/releases/download/${vers}/xmake-${vers}.exe`;
break;
}
default: {