forked from mattiasgustavsson/libs
-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (77 loc) · 2.3 KB
/
main.yml
File metadata and controls
79 lines (77 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: build
on: [push, pull_request, workflow_dispatch]
jobs:
build-windows-msvc:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
# this runs vcvarsall for us, so we get the MSVC toolchain in PATH.
- uses: seanmiddleditch/gha-setup-vsdevenv@master
- name: build cstr.h
run: |
cl /Tc cstr.h /DCSTR_IMPLEMENTATION /DCSTR_RUN_TESTS /MTd
- name: run cstr tests
run: .\cstr.exe
build-windows-msvc-cpp:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
# this runs vcvarsall for us, so we get the MSVC toolchain in PATH.
- uses: seanmiddleditch/gha-setup-vsdevenv@master
- name: build cstr.h
run: |
cl /Tp cstr.h /DCSTR_IMPLEMENTATION /DCSTR_RUN_TESTS /MTd
- name: run cstr tests
run: .\cstr.exe
build-windows-tcc:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
- uses: robinraju/release-downloader@v1.2
with:
repository: "mattiasgustavsson/tcc-build"
tag: "tcc64"
fileName: "tcc-0.9.27-win64-bin.zip"
- name: install dependencies
run: 7z x tcc-0.9.27-win64-bin.zip
- name: build cstr.h
run: |
tcc\tcc -xc cstr.h -DCSTR_IMPLEMENTATION -DCSTR_RUN_TESTS
- name: run cstr tests
run: .\cstr.exe
build-macos:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: build cstr.h
run: |
clang -xc cstr.h -DCSTR_IMPLEMENTATION -DCSTR_RUN_TESTS
- name: run cstr tests
run: ./a.out
build-macos-cpp:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: build cstr.h
run: |
clang -xc++ cstr.h -DCSTR_IMPLEMENTATION -DCSTR_RUN_TESTS
- name: run cstr tests
run: ./a.out
build-linux-gcc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: build cstr.h
run: |
gcc -xc cstr.h -DCSTR_IMPLEMENTATION -DCSTR_RUN_TESTS
- name: run cstr tests
run: ./a.out
build-linux-gcc-cpp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: build cstr.h
run: |
gcc -xc++ cstr.h -DCSTR_IMPLEMENTATION -DCSTR_RUN_TESTS
- name: run cstr tests
run: ./a.out