Skip to content

Commit

Permalink
a build experiment with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aegean-odyssey committed Jan 18, 2021
1 parent 7fc715a commit 793c8fb
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/Dockerfile
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build

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: compile
uses: ./.github/
with:
args: >
/bin/sh -c "export PATH=$PATH_PATCH &&
make select='${{github.event.inputs.features}}'"
env:
PATH_PATCH: ${{github.workspace}}/bin:/usr/bin:/bin

- 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*.???

0 comments on commit 793c8fb

Please sign in to comment.