Create Release folder to archive with lha #20
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: | |
run: | |
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 | |
# Check if latest commit changed a .c file | |
- name: 📝 Check if latest commit changed a .c file | |
id: check | |
run: | | |
if git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | grep -qE '.c$'; then | |
echo "::set-output name=changed::true" | |
else | |
echo "::set-output name=changed::false" | |
fi | |
# Run make only if a .c file changed | |
- name: 🏃 Running Make | |
if: steps.check.outputs.changed == 'true' | |
run: make |