Skip to content

Commit

Permalink
Test sequential build process again
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos authored Jan 5, 2024
1 parent bdd3737 commit c6b5ee0
Showing 1 changed file with 14 additions and 27 deletions.
41 changes: 14 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,64 +3,51 @@ name: CI Build
on: [push, pull_request]

jobs:
win32:
name: "Build Win32 Installer"
build:
name: Build All
runs-on: windows-2022

steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
- name: Set up Node.js 18
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: package.json info
- name: Get package.json info
id: info
uses: jaywcjlove/github-action-package@main
- run: npm ci
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm run parcel-build
- name: Build assets
run: npm run parcel-build
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm exec electron-builder -- --x64 --config.extraMetadata.version="${{ steps.info.outputs.version }}+${{ github.sha }}" --config.win.artifactName="Twinkle Tray v${{ steps.info.outputs.version }}.exe"
- name: Build Win32 installer
run: npm exec electron-builder -- --x64 --config.extraMetadata.version="${{ steps.info.outputs.version }}+${{ github.sha }}" --config.win.artifactName="Twinkle Tray v${{ steps.info.outputs.version }}.exe"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v4
name: Upload Windows Installer
name: Upload Win32 installer
with:
name: twinkle-tray-exe-${{ github.ref_name }}-${{ github.sha }}
path: dist/*.exe
appx:
name: "Build AppX Packages"
runs-on: windows-2022

steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: package.json info
id: info
uses: jaywcjlove/github-action-package@main
- run: npm ci
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm run appx
- name: Build x64 AppX
run: npm run appx
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v4
name: Upload x64 AppX
with:
name: twinkle-tray-appx-x64-${{ github.ref_name }}-${{ github.sha }}
path: dist/*-store.appx
- run: npm run appx-arm64
- name: Build ARM64 AppX
run: npm run appx-arm64
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v4
name: Upload ARM64 AppX
with:
name: twinkle-tray-appx-arm64-${{ github.ref_name }}-${{ github.sha }}
path: dist/*-store-arm64.appx
path: dist/*-store-arm64.appx

0 comments on commit c6b5ee0

Please sign in to comment.