Update makecheck.yml #30
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: 📝 Make Build Check | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
check: | |
runs-on: [ubuntu-latest] | |
steps: | |
- name: Check if latest commit changed a .c file | |
if: ${{!contains(github.event.head_commit.modified, '.c') && !contains(github.event.head_commit.modified, '.h')}} | |
run: | | |
echo 'C files not changed' | |
exit 0 | |
run: | |
needs: check | |
name: 📝 Make Build Check | |
runs-on: ubuntu-latest # linux required if you want to use docker | |
container: | |
image: walkero/docker4amigavbcc:latest-m68k | |
volumes: | |
- '${{ github.workspace }}:/opt/code' | |
steps: | |
- name: 🚚 Get latest code | |
uses: actions/checkout@v2 | |
- name: 🏃 Running Make | |
run: make |