Update README.md #9
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: compile code | |
on: [push, pull_request] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup gcc | |
uses: egor-tensin/setup-gcc@v1 | |
with: | |
version: latest | |
platform: x64 | |
- name: build1 | |
run: cc -Wall -Wextra -Werror -pedantic sample1.c | |
- name: build2 | |
run: cc -Wall -Wextra -Werror -pedantic sample2.c | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup gcc | |
uses: egor-tensin/setup-mingw@v2 | |
with: | |
platform: x64 | |
- name: build1 | |
run: cc -Wall -Wextra -Werror -pedantic sample1.c | |
- name: build2 | |
run: cc -Wall -Wextra -Werror -pedantic sample2.c | |