Skip to content
Snippets Groups Projects
Unverified Commit 1908933a authored by Maximilian Gerhardt's avatar Maximilian Gerhardt Committed by GitHub
Browse files

Build minichlink in CI (#148)

* Fix caching

* Create requirements.txt

* Fix PlatformIO build for Wiring examples, use cache properly

* Remove uneeded file

* Add slightly more into PlatformIO ini

* Build minichlink in CI (linux)

* Build minichlink in CI (linux)

* Build minichlink in CI (linux), try 3

* Build minichlink in CI (Windows

* Build minichlink in CI (clean)

* Build minichlink in CI (clean 2)

* Build minichlink in CI (MacOs12)

* Build minichlink in CI (MacOs12)

* Fix archive creation

* Fix archive creation 2

* Build for MacOS 11 too
parent b199584b
No related branches found
No related tags found
No related merge requests found
name: Build minichlink
on: [push, pull_request]
# push:
# paths:
# - minichlink/**
# pull_request:
# paths:
# - minichlink/**
jobs:
build-minichlink:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-12, macos-11]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
- name: Install Dependencies (Linux)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get update && sudo apt-get install -y build-essential make libusb-1.0-0-dev libudev-dev mingw-w64-x86-64-dev gcc-mingw-w64-x86-64
# we don't need to brew install libusb on Mac, actually preinstalled on the runner! :)
- name: Build (Linux, Mac)
run: |
cd minichlink
make clean
make V=1 -j3
# we cross-compile the Windows binaries from Linux
- name: Build (for Windows)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
cd minichlink
OS=Windows_NT make clean
OS=Windows_NT make V=1 -j3 minichlink.exe
- name: "Pack (Linux)"
if: ${{ matrix.os == 'ubuntu-latest' }}
run: tar czf minichlink.tar.gz -C minichlink minichlink minichlink.so 99-minichlink.rules
- name: "Pack (Mac)"
if: ${{ matrix.os == 'macos-12' || matrix.os == 'macos-11' }}
run: tar czf minichlink.tar.gz -C minichlink minichlink
# no packing needed for Windows as it's .exe only
- name: "Upload minichlink (Linux)"
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v3
with:
name: minichlink (Linux)
path: minichlink.tar.gz
- name: "Upload minichlink (MacOs 11)"
if: ${{ matrix.os == 'macos-11' }}
uses: actions/upload-artifact@v3
with:
name: minichlink (MacOS 11)
path: minichlink.tar.gz
- name: "Upload minichlink (MacOs 12)"
if: ${{ matrix.os == 'macos-12' }}
uses: actions/upload-artifact@v3
with:
name: minichlink (MacOS 12)
path: minichlink.tar.gz
- name: "Upload minichlink (Windows)"
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v3
with:
name: minichlink (Windows)
path: minichlink/minichlink.exe
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment