docs: Add more acknowledgements and projects that use spectrum to README #17
This file contains hidden or 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: Format code | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| fmt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Rust | |
| run: | | |
| rustup update nightly | |
| rustup default nightly | |
| rustup component add rustfmt | |
| - name: Download Proto Files and Install Protoc | |
| uses: ./.github/actions/protos | |
| with: | |
| cdn: ${{ secrets.PROTOS_CDN }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Generate build artifacts | |
| run: cargo check --all | |
| - name: Format code | |
| run: cargo fmt --all | |
| - name: Commit and push if needed | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| if ! git diff --quiet; then | |
| git add . | |
| git commit -m "style: Auto-format via cargo fmt" | |
| git push | |
| fi |