Keir Fraser 4 жил өмнө
parent
commit
67b1566794
2 өөрчлөгдсөн 34 нэмэгдсэн , 0 устгасан
  1. 28 0
      .github/workflows/ci.yml
  2. 6 0
      README.md

+ 28 - 0
.github/workflows/ci.yml

@@ -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

+ 6 - 0
README.md

@@ -1,5 +1,8 @@
 # Greaseweazle
 
+![CI Badge][ci-badge]
+![Downloads Badge][downloads-badge]
+
 Tools and USB interface for accessing a floppy drive at the raw flux level.
 
 ## Download
@@ -14,3 +17,6 @@ Greaseweazle source code, and all binary releases, are freely redistributable
 in any form. Please see the [license](COPYING).
 
 [Downloads]: https://github.com/keirf/Greaseweazle/wiki/Downloads
+
+[ci-badge]: https://github.com/keirf/Greaseweazle/workflows/CI/badge.svg
+[downloads-badge]: https://img.shields.io/github/downloads/keirf/Greaseweazle/total