pollk to add k.edu also #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: MacOS build | |
on: # Controls when the workflow will run | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab | |
jobs: | |
build: | |
runs-on: macos-latest | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: clang | |
run: clang -v | |
- name: clang | |
run: clang -dM -E - </dev/null | |
- name: build | |
run: if ! grep `cd k.edu && git rev-parse HEAD` mac; then cd k.edu && make; fi | |
- name: mac add | |
run: | | |
if ! grep `cd k.edu && git rev-parse HEAD` mac; then | |
(cd k.edu && git rev-parse HEAD>>../mac) | |
git config --global user.name 'github-action' | |
git config --global user.email '[email protected]' | |
git add mac; git commit -m "$(date -u)"; git push | |
fi |