-
-
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.
Added release builder that runs on Windows
- Loading branch information
1 parent
a341446
commit aff7f17
Showing
1 changed file
with
64 additions
and
0 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: FluidNC Release Builder | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'Release version' | ||
required: true | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cache pip | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Cache PlatformIO | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.platformio | ||
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
- name: Install PlatformIO | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --upgrade platformio | ||
- name: Set release version | ||
run: | | ||
git config user.email "[email protected]" | ||
git config user.name "Mitch Bradley" | ||
git tag "${{ github.event.inputs.tag }}" -a -m "Release test" | ||
- name: Build | ||
run: python build-release.py | ||
- name: Create release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ github.event.inputs.tag }} | ||
files: | | ||
release/*.zip | ||
release/*.elf | ||
draft: True | ||
# - name: Upload mac bundle | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: release-macos | ||
# path: release/*macos* | ||
# - name: Upload Windows bundle | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: release-win32 | ||
# path: release/*win* | ||
# - name: Upload Linux bundle | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: release-linux | ||
# path: release/*linux* |