(README) added CI badge [skip-ci] #4
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: Check and Build | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| check_build: | |
| name: Check and Build | |
| runs-on: ubuntu-latest | |
| if: "!contains(github.event.head_commit.message, 'skip-ci')" | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| - name: Check Test Case Format | |
| run: ./reorder.py -c | |
| - name: Clone sysy-runtime-lib | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: pku-minic/sysy-runtime-lib | |
| path: sysy-runtime-lib | |
| - name: Build sysy-runtime-lib | |
| run: make -C sysy-runtime-lib AR="ar ru" RANLIB="ranlib" -j | |
| - name: Build Test Cases | |
| run: LIB_DIR=sysy-runtime-lib/build make -j |