38 lines
970 B
YAML
Raw Normal View History

2023-02-10 19:47:51 +05:30
name: Set up mpy-cross
2023-02-11 12:00:27 +05:30
inputs:
download:
required: false
default: true
type: boolean
2023-02-10 19:47:51 +05:30
runs:
using: composite
steps:
- name: Download mpy-cross
id: download-mpy-cross
2023-02-11 12:00:27 +05:30
if: inputs.download == 'true'
2023-02-10 19:47:51 +05:30
continue-on-error: true
uses: actions/download-artifact@v3
with:
name: mpy-cross
path: mpy-cross
- name: Make mpy-cross executable
2023-02-11 12:00:27 +05:30
if: inputs.download == 'true' && steps.download-mpy-cross.outcome == 'success'
2023-02-10 19:47:51 +05:30
run: sudo chmod +x mpy-cross/mpy-cross
shell: bash
- name: Build mpy-cross
2023-02-11 12:00:27 +05:30
if: inputs.download == 'false' || steps.download-mpy-cross.outcome == 'failure'
2023-02-10 19:47:51 +05:30
run: make -C mpy-cross -j2
shell: bash
- name: Upload mpy-cross
2023-02-11 12:00:27 +05:30
if: inputs.download == 'false' || steps.download-mpy-cross.outcome == 'failure'
2023-02-10 19:47:51 +05:30
continue-on-error: true
uses: actions/upload-artifact@v3
with:
name: mpy-cross
path: mpy-cross/mpy-cross