-
Notifications
You must be signed in to change notification settings - Fork 20
52 lines (48 loc) · 1.12 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
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
- 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