forked from z88dk/z88dk
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.29 KB
/
build-on-macos.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
name: build-on-macos
on:
push:
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Install homebrew dependencies
run: |
brew install perl dos2unix boost ragel re2c
- name: Install perl prerequisites
run: |
export PATH=/usr/local/bin:$PATH
cpan -T Capture::Tiny
cpan App::Prove Clone Data::Dump Data::HexDump Modern::Perl File::Path CPU::Z80::Assembler Path::Tiny Regexp::Common Text::Diff Text::Table Object::Tiny::RW List::Uniq YAML::Tiny
- name: Build binaries
run: |
export PATH=/usr/local/bin:$PATH
./build.sh -v -l
- name: Build libraries
run: |
export PATH=/usr/local/bin:$PATH
./build.sh -v -b
- name: Build examples
run: |
export PATH=/usr/local/bin:$PATH
./build.sh -v -b -l -e
- name: Build sdcc needed for tests
run: |
export PATH=/usr/local/bin:$PATH
make BUILD_SDCC=1 BUILD_SDCC_HTTP=1 bin/z88dk-zsdcc
- name: Run tests
run: |
export PATH=/usr/local/bin:$PATH
./build.sh -v -b -l -t