|
@@ -32,48 +32,11 @@ jobs:
|
|
- name: Upload artifacts
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v2
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
with:
|
|
- name: Greaseweazle.CI.${{ steps.vars.outputs.ref }}
|
|
|
|
- path: Greaseweazle-${{ steps.vars.outputs.ref }}.zip
|
|
|
|
-
|
|
|
|
- build-windows:
|
|
|
|
- needs: build-ubuntu
|
|
|
|
- runs-on: windows-2019
|
|
|
|
- steps:
|
|
|
|
-
|
|
|
|
- - uses: actions/checkout@v2
|
|
|
|
-
|
|
|
|
- - name: Set environment variables
|
|
|
|
- id: vars
|
|
|
|
- run: |
|
|
|
|
- echo "::set-output name=ref::$(echo ${{ github.ref }} | sed -e's#.*/##')"
|
|
|
|
-
|
|
|
|
- - name: Download Ubuntu build
|
|
|
|
- uses: actions/download-artifact@v2
|
|
|
|
- with:
|
|
|
|
- name: Greaseweazle.CI.${{ steps.vars.outputs.ref }}
|
|
|
|
-
|
|
|
|
- - name: Set up Python
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
- with:
|
|
|
|
- python-version: 3.8
|
|
|
|
- architecture: x86
|
|
|
|
-
|
|
|
|
- - name: Dependency packages (pip)
|
|
|
|
- run: |
|
|
|
|
- python -m pip install --upgrade pip setuptools wheel
|
|
|
|
- python -m pip install --user bitarray crcmod pyserial cx_Freeze
|
|
|
|
-
|
|
|
|
- - name: Build dist
|
|
|
|
- run: make windist
|
|
|
|
-
|
|
|
|
- - name: Upload artifacts
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
- with:
|
|
|
|
- name: Greaseweazle.CI.${{ steps.vars.outputs.ref }}
|
|
|
|
- path: Greaseweazle-${{ steps.vars.outputs.ref }}-win.zip
|
|
|
|
|
|
+ name: greaseweazle-firmware.ci.${{ steps.vars.outputs.ref }}
|
|
|
|
+ path: greaseweazle-firmware-${{ steps.vars.outputs.ref }}.zip
|
|
|
|
|
|
finalise:
|
|
finalise:
|
|
- needs: build-windows
|
|
|
|
|
|
+ needs: build-ubuntu
|
|
runs-on: ubuntu-20.04
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
steps:
|
|
|
|
|
|
@@ -87,17 +50,7 @@ jobs:
|
|
- name: Download artifacts
|
|
- name: Download artifacts
|
|
uses: actions/download-artifact@v2
|
|
uses: actions/download-artifact@v2
|
|
with:
|
|
with:
|
|
- name: Greaseweazle.CI.${{ steps.vars.outputs.ref }}
|
|
|
|
-
|
|
|
|
- - name: Remove 64-bit DLLS
|
|
|
|
- run: |
|
|
|
|
- export VER=${{ steps.vars.outputs.ref }}
|
|
|
|
- unzip Greaseweazle-$VER-win.zip
|
|
|
|
- find . -name 'api-ms-*' | xargs rm -f
|
|
|
|
- find Greaseweazle-$VER/lib -name 'python*.dll' | xargs rm -f
|
|
|
|
- find Greaseweazle-$VER/lib -name 'vcruntime140.dll' | xargs rm -f
|
|
|
|
- rm Greaseweazle-$VER-win.zip
|
|
|
|
- zip -r Greaseweazle-$VER-win.zip Greaseweazle-$VER
|
|
|
|
|
|
+ name: greaseweazle-firmware.ci.${{ steps.vars.outputs.ref }}
|
|
|
|
|
|
- name: Create Release
|
|
- name: Create Release
|
|
id: create_release
|
|
id: create_release
|
|
@@ -106,27 +59,17 @@ jobs:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
with:
|
|
tag_name: ${{ github.ref }}
|
|
tag_name: ${{ github.ref }}
|
|
- release_name: ${{ steps.vars.outputs.ref }}
|
|
|
|
- body: "[**Release Notes:**](https://github.com/keirf/greaseweazle/blob/master/RELEASE_NOTES)"
|
|
|
|
|
|
+ release_name: Greaseweazle Firmware ${{ steps.vars.outputs.ref }}
|
|
|
|
+ body: "[**Release Notes:**](https://github.com/keirf/greaseweazle-firmware/blob/master/RELEASE_NOTES)"
|
|
draft: false
|
|
draft: false
|
|
prerelease: false
|
|
prerelease: false
|
|
|
|
|
|
- - name: Upload Release Asset (Windows)
|
|
|
|
- uses: actions/upload-release-asset@v1
|
|
|
|
- env:
|
|
|
|
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- with:
|
|
|
|
- upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
|
|
- asset_path: Greaseweazle-${{ steps.vars.outputs.ref }}-win.zip
|
|
|
|
- asset_name: Greaseweazle-${{ steps.vars.outputs.ref }}-win.zip
|
|
|
|
- asset_content_type: application/zip
|
|
|
|
-
|
|
|
|
- - name: Upload Release Asset (Other)
|
|
|
|
|
|
+ - name: Upload Release Asset
|
|
uses: actions/upload-release-asset@v1
|
|
uses: actions/upload-release-asset@v1
|
|
env:
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
with:
|
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
- asset_path: Greaseweazle-${{ steps.vars.outputs.ref }}.zip
|
|
|
|
- asset_name: Greaseweazle-${{ steps.vars.outputs.ref }}.zip
|
|
|
|
|
|
+ asset_path: greaseweazle-firmware-${{ steps.vars.outputs.ref }}.zip
|
|
|
|
+ asset_name: greaseweazle-firmware-${{ steps.vars.outputs.ref }}.zip
|
|
asset_content_type: application/zip
|
|
asset_content_type: application/zip
|