-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from FablabTorino/pkg-fablab
Add Github Actions for automatic builds
- Loading branch information
Showing
10 changed files
with
131 additions
and
17 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,10 +1,6 @@ | ||
name: Platformio build | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
on: push | ||
|
||
jobs: | ||
build: | ||
|
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,32 @@ | ||
name: Tools build for Linux | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
- name: Install pkg | ||
run: npm i -g pkg | ||
- name: Generate webfilesbuilder binaries | ||
run: | | ||
cd tools/webfilesbuilder | ||
npm install | ||
pkg -t node16-linux -C GZip . | ||
- name: Generate wsemulator binaries | ||
run: | | ||
cd tools/wsemulator | ||
npm install | ||
pkg -t node16-linux -C GZip . | ||
- name: Export Linux binary | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: bins | ||
path: | | ||
tools/webfilesbuilder/webfilesbuilder | ||
tools/wsemulator/wsemulator |
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,32 @@ | ||
name: Tools build for Mac | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
- name: Install pkg | ||
run: npm i -g pkg | ||
- name: Generate webfilesbuilder binaries | ||
run: | | ||
cd tools/webfilesbuilder | ||
npm install | ||
pkg -t node16-mac -C GZip . | ||
- name: Generate wsemulator binaries | ||
run: | | ||
cd tools/wsemulator | ||
npm install | ||
pkg -t node16-mac -C GZip . | ||
- name: Export Mac binary | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: bins | ||
path: | | ||
tools/webfilesbuilder/webfilesbuilder | ||
tools/wsemulator/wsemulator |
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,32 @@ | ||
name: Tools build for Windows | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
- name: Install pkg | ||
run: npm i -g pkg | ||
- name: Generate webfilesbuilder binaries | ||
run: | | ||
cd tools/webfilesbuilder | ||
npm install | ||
pkg -t node16-win -C GZip . | ||
- name: Generate wsemulator binaries | ||
run: | | ||
cd tools/wsemulator | ||
npm install | ||
pkg -t node16-win -C GZip . | ||
- name: Export Windows binary | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: bins | ||
path: | | ||
tools/webfilesbuilder/webfilesbuilder.exe | ||
tools/wsemulator/wsemulator.exe |
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,11 @@ | ||
# Tools | ||
|
||
Both tools can be found already built in the Github releases, if you don't want to install all the needed dependencies. | ||
|
||
If you want to modify the tools instead you need to install all the Node dependencies and hack your way around. | ||
|
||
On every push the binaries are generated by Github actions and if needed a new release should be published with the binaries. | ||
|
||
## webfilesbuilder | ||
|
||
The `webfilesbuilder` executable that you can get from the releases should be copied in the `tools/webfilesbuilder/` folder and run from there as it looks for files in specific folders relative to that location. |
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,3 @@ | ||
const builder = require('./gulpfile.js').default; | ||
|
||
builder(); |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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