Skip to content

Commit

Permalink
a build experiment with github actions, ubuntu-18.04
Browse files Browse the repository at this point in the history
  • Loading branch information
aegean-odyssey committed Jan 19, 2021
1 parent 6f9e128 commit 0d32955
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-ubuntu-18.04.yml
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*.???
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ jobs:
uses: ./.github/
with:
args: >
/bin/sh -c "export PATH=$PATH_PATCH &&
/bin/sh -c "export PATH=${{github.workspace}}/bin:\$PATH &&
make select='${{github.event.inputs.features}}'"
env:
PATH_PATCH: ${{github.workspace}}/bin:/usr/bin:/bin
- name: identify
run: |
Expand Down

0 comments on commit 0d32955

Please sign in to comment.