Update #127
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
# Build the emulator using make and count source lines of code with cloc | |
name: Build | |
on: | |
push: | |
workflow_dispatch: | |
inputs: | |
message: | |
description: Message to display in job summary | |
required: false | |
type: string | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install cloc | |
run: | | |
git clone https://github.com/AlDanial/cloc.git | |
echo '```' >$GITHUB_STEP_SUMMARY | |
./cloc/cloc --exclude-lang=Text src tools | tee -a $GITHUB_STEP_SUMMARY | |
echo '```' >>$GITHUB_STEP_SUMMARY | |
- name: make clean | |
run: | | |
make clean | |
- name: make verbose | |
run: | | |
make verbose | |
- name: Print the job summary | |
if: ${{ inputs.message }} | |
run: | | |
echo ${{ inputs.message }} >>$GITHUB_STEP_SUMMARY |