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

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

31 lines
768 B
YAML
Raw Normal View History

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