circuitpython/.github/actions/mpy_cross/action.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
970 B
YAML
Raw Normal View History

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