Merge pull request #2 from hoangqt/feat-gem-pr-review #13
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: C Project CI | |
| env: | |
| CI: true | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| strategy: | |
| matrix: | |
| arch: | |
| - amd64 | |
| - arm64 | |
| include: | |
| - arch: amd64 | |
| target: x86_64-apple-darwin | |
| - arch: arm64 | |
| target: arm64-apple-darwin | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: false | |
| - name: Setup | |
| run: | | |
| brew install llvm autoconf automake libtool | |
| ln -s "$(brew --prefix llvm)/bin/clang-tidy" "/usr/local/bin/clang-tidy" | |
| ln -s "$(brew --prefix llvm)/bin/clang-format" "/usr/local/bin/clang-format" | |
| - name: Format | |
| run: make format | |
| - name: Lint | |
| run: make lint | |
| - name: Build | |
| run: make TARGET=${{ matrix.target }} |