-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86e8513
commit 95ea782
Showing
1 changed file
with
45 additions
and
12 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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
name: "Build And Upload" | ||
name: "Test And Upload" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-and-upload: | ||
test-and-upload: | ||
runs-on: ${{ matrix.os }}-latest | ||
strategy: | ||
fail-fast: false | ||
|
@@ -16,14 +16,18 @@ jobs: | |
ubuntu, | ||
macos | ||
] | ||
node: [ | ||
16, | ||
17 | ||
] | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/[email protected] | ||
|
||
- name: "Setup Node.js environment" | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 16 | ||
node-version: ${{ matrix.node }} | ||
registry-url: https://npm.pkg.github.com/ | ||
|
||
- name: "Get package info" | ||
|
@@ -78,7 +82,36 @@ jobs: | |
echo "--------------------"; | ||
lerna bootstrap --npm-client=yarn; | ||
- name: "npm run electron:build" | ||
- name: "npm run electron:build for node16" | ||
if: ${{ matrix.node == '16' }} | ||
run: | | ||
echo "======================================================================"; | ||
echo "cd packages/gui"; | ||
echo "--------------------"; | ||
cd packages/gui; | ||
dir || ls -lah; | ||
echo "======================================================================"; | ||
echo "npm run electron:build"; | ||
echo "--------------------"; | ||
npm run electron:build; | ||
echo "======================================================================"; | ||
echo "cd dist_electron"; | ||
echo "--------------------"; | ||
cd dist_electron; | ||
dir || ls -lah; | ||
echo "======================================================================"; | ||
echo "cd ../../../"; | ||
echo "--------------------"; | ||
cd ../../../; | ||
dir || ls -lah; | ||
- name: "npm run electron:build for node17" | ||
if: ${{ matrix.node != '16' }} | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
run: | | ||
echo "======================================================================"; | ||
echo "cd packages/gui"; | ||
|
@@ -103,31 +136,31 @@ jobs: | |
cd ../../../; | ||
dir || ls -lah; | ||
- name: "Upload DevSidecar-${{ steps.package-info.outputs.version }}.exe - Windows" | ||
- name: "Upload DevSidecar-${{ steps.package-info.outputs.version }}-node${{ matrix.node }}.exe - Windows" | ||
uses: actions/[email protected] | ||
if: ${{ matrix.os == 'windows' }} | ||
with: | ||
path: packages/gui/dist_electron/DevSidecar-${{ steps.package-info.outputs.version }}.exe | ||
name: "DevSidecar-${{ steps.package-info.outputs.version }}.exe" | ||
name: "DevSidecar-${{ steps.package-info.outputs.version }}-node${{ matrix.node }}.exe" | ||
if-no-files-found: error | ||
- name: "Upload DevSidecar-${{ steps.package-info.outputs.version }}.deb - Ubuntu" | ||
- name: "Upload DevSidecar-${{ steps.package-info.outputs.version }}-node${{ matrix.node }}.deb - Ubuntu" | ||
uses: actions/[email protected] | ||
if: ${{ matrix.os == 'ubuntu' }} | ||
with: | ||
path: packages/gui/dist_electron/DevSidecar-${{ steps.package-info.outputs.version }}.deb | ||
name: "DevSidecar-${{ steps.package-info.outputs.version }}.deb" | ||
name: "DevSidecar-${{ steps.package-info.outputs.version }}-node${{ matrix.node }}.deb" | ||
if-no-files-found: error | ||
- name: "Upload DevSidecar-${{ steps.package-info.outputs.version }}.AppImage - Ubuntu" | ||
- name: "Upload DevSidecar-${{ steps.package-info.outputs.version }}-node${{ matrix.node }}.AppImage - Ubuntu" | ||
uses: actions/[email protected] | ||
if: ${{ matrix.os == 'ubuntu' }} | ||
with: | ||
path: packages/gui/dist_electron/DevSidecar-${{ steps.package-info.outputs.version }}.AppImage | ||
name: "DevSidecar-${{ steps.package-info.outputs.version }}.AppImage" | ||
name: "DevSidecar-${{ steps.package-info.outputs.version }}-node${{ matrix.node }}.AppImage" | ||
if-no-files-found: error | ||
- name: "Upload DevSidecar-${{ steps.package-info.outputs.version }}.dmg - Mac" | ||
- name: "Upload DevSidecar-${{ steps.package-info.outputs.version }}-node${{ matrix.node }}.dmg - Mac" | ||
uses: actions/[email protected] | ||
if: ${{ matrix.os == 'macos' }} | ||
with: | ||
path: packages/gui/dist_electron/DevSidecar-${{ steps.package-info.outputs.version }}.dmg | ||
name: "DevSidecar-${{ steps.package-info.outputs.version }}.dmg" | ||
name: "DevSidecar-${{ steps.package-info.outputs.version }}-node${{ matrix.node }}.dmg" | ||
if-no-files-found: error |