forked from aegean-odyssey/mpmd_marlin_1.1.x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a build experiment with github actions, ubuntu-18.04
- Loading branch information
1 parent
6f9e128
commit 0d32955
Showing
2 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build via Ubuntu-18.04 | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
features: | ||
description: 'VARIANT: SM0000|SM0001|SM1110|SM1111 AC_FAN|PC_FAN L05AMP|L10AMP' | ||
required: false | ||
default: 'SM0001 AC_FAN L05AMP' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: toolchain | ||
run: | | ||
PKGS='gcc-arm-none-eabi' | ||
PKGS="$PKGS libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib" | ||
sudo apt-get update -q -q ###AO### && sudo apt-get upgrade --yes | ||
sudo apt-get install --no-install-recommends --yes $PKGS | ||
- name: compile | ||
run: | | ||
export PATH="${{github.workspace}}/bin:$PATH" | ||
make select='${{github.event.inputs.features}}' | ||
- name: identify | ||
run: | | ||
ID=mpmd_marlin_1.1.x-variant.txt | ||
grep -a -o 'mpmd[^)]*20..)' mpmd*.bin >$ID | ||
cat $ID | ||
- name: package | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: mpmd_marlin_1.1.x | ||
path: mpmd_marlin_1.1.x*.??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters