Skip to content

Commit

Permalink
Added release builder that runs on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchBradley committed Oct 23, 2022
1 parent a341446 commit aff7f17
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/windows.yml
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*

0 comments on commit aff7f17

Please sign in to comment.