Skip to content

Commit

Permalink
ci: initial workflow
Browse files Browse the repository at this point in the history
Generates (and caches) the sample tarball for consistency, produces
readable output in the summary. Good enough for now!
  • Loading branch information
rmg committed Jun 29, 2023
1 parent b9a3ca1 commit 43ed3eb
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: build & test

on:
pull_request:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache
with:
key: shared
path: raw.tar
- if: steps.cache.outputs.cache-hit != 'true'
run: make raw.tar
- name: build & install
run: |
sudo apt-get update
sudo apt-get install ripgrep
make scan-c scan-go scan-rs
{
printf "## Versions\n"
grep -V
rg -V
node --version
rustc --version
go version
cc --version
} >> "$GITHUB_STEP_SUMMARY"
- name: make c.txt
run: |
printf '### c\n' >> "$GITHUB_STEP_SUMMARY"
make c.txt TIME_REPORT=$GITHUB_STEP_SUMMARY
- name: make go.txt
run: |
printf '### go\n' >> "$GITHUB_STEP_SUMMARY"
make go.txt TIME_REPORT=$GITHUB_STEP_SUMMARY
- name: make rs.txt
run: |
printf '### rs\n' >> "$GITHUB_STEP_SUMMARY"
make rs.txt TIME_REPORT=$GITHUB_STEP_SUMMARY
- name: make grep.txt
run: |
printf '### grep\n' >> "$GITHUB_STEP_SUMMARY"
make grep.txt TIME_REPORT=$GITHUB_STEP_SUMMARY
- name: make ripgrep.txt
run: |
printf '### ripgrep\n' >> "$GITHUB_STEP_SUMMARY"
make ripgrep.txt TIME_REPORT=$GITHUB_STEP_SUMMARY
- name: make js.txt
run: |
printf '### js\n' >> "$GITHUB_STEP_SUMMARY"
make js.txt TIME_REPORT=$GITHUB_STEP_SUMMARY

0 comments on commit 43ed3eb

Please sign in to comment.