-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 878 Bytes
/
Build.yml
File metadata and controls
34 lines (31 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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@v6
- 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