Merge pull request #68 from BedRockJie/master #36
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: ci | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
pull: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
compiler: | |
- gcc | |
- clang | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v2 | |
- name: Run with the compiler ${{ matrix.compiler }} | |
run: | | |
sudo apt-get install -y $compiler | |
CC=$compiler make test | |
env: | |
compiler: ${{ matrix.compiler }} |