-
Notifications
You must be signed in to change notification settings - Fork 20
113 lines (107 loc) · 2.67 KB
/
c-cpp.yml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: C/C++ CI
on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
jobs:
build-amd64:
name: Build and run tests on Linux amd64
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: make
run: make -j2
- name: running testsuite
run: make test -j2
- name: make dist
run: make dist
- name: Archive ATR
uses: actions/upload-artifact@v4
with:
name: fastbasic.atr
path: build/fastbasic.atr
- name: Archive ZIP Linux amd64
uses: actions/upload-artifact@v4
with:
name: fastbasic-linux-amd64.zip
path: build/fastbasic.zip
build-macos-M1:
name: Build and run tests on MacOS M1 (ARM64)
runs-on: macos-14
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: make
run: |
gcc -v
make -j2
- name: running testsuite
run: make test -j2
- name: make dist
run: make dist
- name: Archive ZIP MacOS ARM
uses: actions/upload-artifact@v4
with:
name: fastbasic-macos-arm64.zip
path: build/fastbasic.zip
build-windows:
name: Build and run tests on Windows
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Setup 32-bit compiler
run: |
echo "C:\msys64\mingw32\bin" >> $GITHUB_PATH
echo "C:\msys64\usr\bin" >> $GITHUB_PATH
echo "CC=i686-w64-mingw32-gcc" >> "$GITHUB_ENV"
shell: bash
- name: Install ZIP
run: |
export
pacman -Sy --noconfirm --noprogressbar --needed zip
shell: bash
- name: make
run: |
i686-w64-mingw32-gcc -v
make -j2
shell: bash
- name: running testsuite
run: make test -j2
- name: make dist
run: make dist
shell: bash
- name: Archive ZIP Windows 32-bit
uses: actions/upload-artifact@v4
with:
name: fastbasic-windows-32bit.zip
path: build/fastbasic.zip
- name: make distclean
run: make distclean
shell: bash
- name: Setup 64-bit compiler
run: |
echo "CC=x86_64-w64-mingw32-gcc" >> "$GITHUB_ENV"
echo "C:\msys64\mingw64\bin" >> $GITHUB_PATH
shell: bash
- name: make
run: |
x86_64-w64-mingw32-gcc -v
make -j2
shell: bash
- name: running testsuite
run: make test -j2
shell: bash
- name: make dist
run: make dist
shell: bash
- name: Archive ZIP Windows 64-bit
uses: actions/upload-artifact@v4
with:
name: fastbasic-windows-64bit.zip
path: build/fastbasic.zip