Skip to content

Commit

Permalink
Backported new CI process and build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos committed Dec 18, 2023
1 parent d238796 commit b16622c
Show file tree
Hide file tree
Showing 9 changed files with 2,959 additions and 15,588 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CI Build

on: [push, pull_request]

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

steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: 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
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm run electron-build
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
name: Upload Windows 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@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- 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
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
name: Upload x64 AppX
with:
name: twinkle-tray-appx-x64-${{ github.ref_name }}-${{ github.sha }}
path: dist/*-store.appx
- run: npm run appx-arm64
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
name: Upload ARM64 AppX
with:
name: twinkle-tray-appx-arm64-${{ github.ref_name }}-${{ github.sha }}
path: dist/*-store-arm64.appx
Loading

0 comments on commit b16622c

Please sign in to comment.