Skip to content

Commit

Permalink
Merge pull request #212 from dragove/dev
Browse files Browse the repository at this point in the history
CI:更新CI action版本,添加开发版本构建物上传
  • Loading branch information
bakashigure authored Feb 19, 2024
2 parents 60eded1 + 067cf2a commit feb7ea5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ["18"]
node: ["20"]
os: [windows-latest, ubuntu-latest, macos-latest]
arch: ["amd64", "arm64"]
arch: ["x64", "arm64"]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_OPTIONS: "--max_old_space_size=6144"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
with:
version: latest

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
Expand All @@ -51,3 +51,9 @@ jobs:

- name: Compile Electron app
run: pnpm make

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: maax-nightly-${{ matrix.os }}-${{ matrix.arch }}
path: ./out/maa-x*
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ["18"]
node: ["20"]
os: [windows-latest, ubuntu-latest, macos-latest]
arch: ["x64", "arm64"]
steps:
Expand All @@ -60,16 +60,16 @@ jobs:
shell: pwsh
run: New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
with:
version: latest

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
Expand Down

0 comments on commit feb7ea5

Please sign in to comment.