-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backported new CI process and build fixes
- Loading branch information
1 parent
d238796
commit b16622c
Showing
9 changed files
with
2,959 additions
and
15,588 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.