-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/mattruzzi/nativefier-gui
Showing
3 changed files
with
200 additions
and
31 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,112 @@ | ||
# This is a basic workflow that is manually triggered | ||
|
||
name: Package | ||
|
||
# Controls when the action will run. Workflow runs when manually triggered using the UI | ||
# or API. | ||
on: | ||
workflow_dispatch: | ||
# Inputs the workflow accepts. | ||
inputs: | ||
release: | ||
# Friendly description to be shown in the UI instead of 'name' | ||
description: 'Release' | ||
# Default value if no value is explicitly provided | ||
default: 'never' | ||
# Input has to be provided for the workflow to run | ||
required: true | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
package-mac: | ||
# The type of runner that the job will run on | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install Node.js, NPM and Yarn | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 15 | ||
- name: Install deps | ||
run: yarn && npm install electron-packager -g | ||
|
||
- name: Package | ||
run: electron-packager . --arch=x64 && electron-packager . --arch=arm64 | ||
- name: Upload Mac x64 Build | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: nativefier-gui-darwin-x64 | ||
path: /Users/runner/work/nativefier-gui/nativefier-gui/nativefier-gui-darwin-x64 | ||
- name: Upload Mac arm64 Build | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: nativefier-gui-darwin-arm64 | ||
path: /Users/runner/work/nativefier-gui/nativefier-gui/nativefier-gui-darwin-arm64 | ||
package-windows: | ||
# The type of runner that the job will run on | ||
runs-on: windows-latest | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install Node.js, NPM and Yarn | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 15 | ||
- name: Install deps | ||
run: yarn && npm install electron-packager -g | ||
|
||
- name: Package | ||
run: electron-packager . --arch=x64 && electron-packager . --arch=arm64 && electron-packager . --arch=ia32 | ||
- name: Upload Windows x64 Build | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: nativefier-gui-win32-x64 | ||
path: D:\a\nativefier-gui\nativefier-gui\nativefier-gui-win32-x64 | ||
- name: Upload Windows arm64 Build | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: nativefier-gui-win32-arm64 | ||
path: D:\a\nativefier-gui\nativefier-gui\nativefier-gui-win32-arm64 | ||
- name: Upload Windows ia32 Build | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: nativefier-gui-win32-ia32 | ||
path: D:\a\nativefier-gui\nativefier-gui\nativefier-gui-win32-ia32 | ||
release-linux: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install Node.js, NPM and Yarn | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 15 | ||
- name: Install deps | ||
run: yarn && npm install electron-packager -g | ||
- name: Package | ||
run: electron-packager . --arch=x64 && electron-packager . --arch=arm64 && electron-packager . --arch=ia32 && electron-packager . --arch=armv7l | ||
- name: Upload Linux x64 Build | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: nativefier-gui-linux-x64 | ||
path: /home/runner/work/nativefier-gui/nativefier-gui/nativefier-gui-linux-x64 | ||
- name: Upload Linux arm64 Build | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: nativefier-gui-linux-arm64 | ||
path: /home/runner/work/nativefier-gui/nativefier-gui/nativefier-gui-linux-arm64 | ||
- name: Upload Linux ia32 Build | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: nativefier-gui-linux-x64 | ||
path: /home/runner/work/nativefier-gui/nativefier-gui/nativefier-gui-linux-x64 | ||
- name: Upload Linux armv7l Build | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: nativefier-gui-linux-armv7l | ||
path: /home/runner/work/nativefier-gui/nativefier-gui/nativefier-gui-linux-armv7l |
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,88 @@ | ||
# This is a basic workflow that is manually triggered | ||
|
||
name: Release | ||
|
||
# Controls when the action will run. Workflow runs when manually triggered using the UI | ||
# or API. | ||
on: | ||
workflow_dispatch: | ||
# Inputs the workflow accepts. | ||
inputs: | ||
release: | ||
# Friendly description to be shown in the UI instead of 'name' | ||
description: 'Release' | ||
# Default value if no value is explicitly provided | ||
default: 'never' | ||
# Input has to be provided for the workflow to run | ||
required: true | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
release-mac: | ||
# The type of runner that the job will run on | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install Node.js, NPM and Yarn | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 15 | ||
- name: Install deps | ||
run: yarn | ||
|
||
- name: Build | ||
run: yarn build-mac -p ${{ github.event.inputs.release }} | ||
env: | ||
GH_TOKEN: ${{ secrets.github_token }} | ||
release-windows: | ||
# The type of runner that the job will run on | ||
runs-on: windows-latest | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install Node.js, NPM and Yarn | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 15 | ||
- name: Install deps | ||
run: yarn | ||
|
||
- name: Build | ||
run: yarn build-windows -p ${{ github.event.inputs.release }} | ||
env: | ||
GH_TOKEN: ${{ secrets.github_token }} | ||
release-linux: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install Node.js, NPM and Yarn | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 15 | ||
|
||
- name: Install Snapcraft and Multipass | ||
run: sudo snap install snapcraft --classic && sudo snap install multipass | ||
- name: Install deps | ||
run: yarn | ||
- name: Build | ||
run: | | ||
docker run --rm \ | ||
--env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_') \ | ||
-v ${PWD}:/project \ | ||
-v ~/.cache/electron:/root/.cache/electron \ | ||
-v ~/.cache/electron-builder:/root/.cache/electron-builder \ | ||
electronuserland/builder \ | ||
/bin/bash -c "yarn && yarn build-linux -p ${{ github.event.inputs.release }}" | ||
env: | ||
GH_TOKEN: ${{ secrets.github_token }} | ||
|
||
# - name: Build | ||
# run: yarn build-linux -p ${{ github.event.inputs.release }} | ||
# env: | ||
# GH_TOKEN: ${{ secrets.github_token }} |