[board] sd/mmc bootloading support for 100ask-d1-h #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check | |
on: | |
push: | |
branches: [ "main", "dev" ] | |
pull_request: | |
branches: [ "main", "dev" ] | |
jobs: | |
check: | |
name: Determine Rust or C check | |
runs-on: ubuntu-latest | |
outputs: | |
is_rust: ${{ steps.check_type.outputs.is_rust }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Determine Rust or C check | |
id: check_type | |
run: | | |
PREV_SHA=$(git rev-parse HEAD^) | |
if git diff --name-only $PREV_SHA ${{ github.sha }} | \ | |
grep -qE '^(rust/|board/100ask-d1-h-rs/)'; then | |
echo "::set-output name=is_rust::true" | |
else | |
echo "::set-output name=is_rust::false" | |
fi | |
rust_check: | |
name: Rust | |
needs: check | |
if: ${{ needs.check.outputs.is_rust == 'true' }} | |
uses: ./.github/workflows/Cargo.yml | |
cmake_check: | |
name: CMake | |
needs: check | |
if: ${{ needs.check.outputs.is_rust == 'false' }} | |
uses: ./.github/workflows/CMake.yml |