-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44dfdee
commit 1c715d0
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Copied from https://github.com/tsoding/bm/blob/master/.github/workflows/ci.yml | ||
|
||
name: CI | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build-linux-gcc: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: build | ||
run: | | ||
$CC -o nob nob.c | ||
./nob init | ||
env: | ||
CC: gcc | ||
CXX: g++ | ||
build-linux-clang: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: build | ||
run: | | ||
$CC -o nob nob.c | ||
./nob init | ||
env: | ||
CC: clang | ||
CXX: clang++ | ||
build-macos: | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: build everything | ||
run: | | ||
$CC -o nob nob.c | ||
./nob init | ||
env: | ||
CC: clang | ||
CXX: clang++ | ||
build-windows-msvc: | ||
runs-on: windows-2019 | ||
steps: | ||
- name: force LF | ||
shell: cmd | ||
run: | | ||
git config --global core.autocrlf input | ||
- uses: actions/checkout@v1 | ||
- uses: seanmiddleditch/gha-setup-vsdevenv@master | ||
- name: build | ||
shell: cmd | ||
run: | | ||
cl.exe nob.c | ||
.\nob.exe init |