|
@@ -0,0 +1,28 @@
|
|
|
+name: CI
|
|
|
+on: [push, pull_request]
|
|
|
+jobs:
|
|
|
+ build:
|
|
|
+ runs-on: ubuntu-20.04
|
|
|
+ steps:
|
|
|
+ - uses: actions/checkout@v2
|
|
|
+ - name: Dependency packages (apt)
|
|
|
+ run: |
|
|
|
+ sudo apt update
|
|
|
+ sudo apt -y install git gcc-arm-none-eabi python3-pip srecord stm32flash zip
|
|
|
+ - name: Dependency packages (pip)
|
|
|
+ run: python3 -m pip install --user bitarray crcmod intelhex
|
|
|
+ - name: Build dist
|
|
|
+ run: |
|
|
|
+ make dist
|
|
|
+ mkdir -p _cidist
|
|
|
+ cp Greaseweazle-*.zip _cidist/
|
|
|
+ - name: Build debug dist
|
|
|
+ run: |
|
|
|
+ env debug=y make dist
|
|
|
+ mkdir -p _cidist/debug
|
|
|
+ cp Greaseweazle-*.zip _cidist/debug/
|
|
|
+ - name: Upload artifacts
|
|
|
+ uses: actions/upload-artifact@v2
|
|
|
+ with:
|
|
|
+ name: Greaseweazle.${{ github.workflow }}.${{ github.job }}.${{ github.run_number }}.${{ github.run_id }}
|
|
|
+ path: _cidist
|