From f3ed05f27b9c25f2e69e818d4239fc8b5992f1f8 Mon Sep 17 00:00:00 2001 From: dragove Date: Sat, 17 Feb 2024 23:10:06 +0800 Subject: [PATCH 1/3] chore: update github workflow versions --- .github/workflows/dev-build.yml | 8 ++++---- .github/workflows/release.yml | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index df91d9e3..9f31f990 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -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"] 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' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f244b562..9d67dc2a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,25 +51,25 @@ jobs: strategy: fail-fast: false matrix: - node: ["18"] + node: ["20"] os: [windows-latest, ubuntu-latest, macos-latest] - arch: ["x64", "arm64"] + arch: ["amd64", "arm64"] steps: - name: Enable long path support on windows if: matrix.os == 'windows-latest' 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" From ba9e242bf11136f5ae463c18c97898052fc99614 Mon Sep 17 00:00:00 2001 From: dragove Date: Sat, 17 Feb 2024 23:44:00 +0800 Subject: [PATCH 2/3] fix: fix wrong arch in workflow file --- .github/workflows/dev-build.yml | 7 ++++++- .github/workflows/release.yml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index 9f31f990..1a91e3b4 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -27,7 +27,7 @@ jobs: matrix: 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" @@ -51,3 +51,8 @@ jobs: - name: Compile Electron app run: pnpm make + + - name: Publish to mirrors + run: pnpm run publish --arch=${{ matrix.arch }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d67dc2a..c91693aa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,7 +53,7 @@ jobs: matrix: node: ["20"] os: [windows-latest, ubuntu-latest, macos-latest] - arch: ["amd64", "arm64"] + arch: ["x64", "arm64"] steps: - name: Enable long path support on windows if: matrix.os == 'windows-latest' From 067cf2a008adb918b6ed4bdf6e44db0f3cb23317 Mon Sep 17 00:00:00 2001 From: dragove Date: Sun, 18 Feb 2024 22:51:06 +0800 Subject: [PATCH 3/3] ci: add upload artifact to ci --- .github/workflows/dev-build.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index 1a91e3b4..64525b1f 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -52,7 +52,8 @@ jobs: - name: Compile Electron app run: pnpm make - - name: Publish to mirrors - run: pnpm run publish --arch=${{ matrix.arch }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: maax-nightly-${{ matrix.os }}-${{ matrix.arch }} + path: ./out/maa-x*