forked from z88dk/z88dk
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (62 loc) · 2.25 KB
/
build-on-windows-cygwin.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
name: build-on-windows-cygwin
on:
push:
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: bash.exe --login --norc -eo pipefail -o igncr '{0}'
env:
SHELLOPTS: igncr
CHERE_INVOKING: 1
CYGWIN_NOWINPATH: 1
steps:
- name: Configure git
run: |
git config --global core.autocrlf input
shell: cmd
- name: Checkout from git
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Setup Cygwin
uses: cygwin/cygwin-install-action@master
with:
platform: x64
packages: make gcc-g++ bison flex libxml2-devel libiconv-devel zlib-devel liblzma-devel wget unzip dos2unix autoconf automake libtool ragel perl perl-Regexp-Common perl-Test-Harness perl-Text-Diff perl-YAML-Tiny perl-Module-Build perl-List-MoreUtils perl-Params-Util Perl-B-COW Perl-Clone
- name: Install choco packages
run: |
choco install re2c
shell: cmd
- name: Install perl prerequisites
run: |
PERL_MM_USE_DEFAULT=1 cpan local::lib App::cpanminus
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
cpanm --force File::Path Capture::Tiny
cpanm App::Prove Capture::Tiny CPU::Z80::Assembler Data::Dump Data::HexDump File::Path List::Uniq Modern::Perl Object::Tiny::RW Path::Tiny Regexp::Common Test::Harness Text::Diff Text::Table YAML::Tiny
- name: Build binaries
run: |
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
export PATH=$PATH:/cygdrive/c/ProgramData/chocolatey/bin
./build.sh -v -l
- name: Build libraries
run: |
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
export PATH=$PATH:/cygdrive/c/ProgramData/chocolatey/bin
./build.sh -v -b
- name: Build examples
run: |
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
export PATH=$PATH:/cygdrive/c/ProgramData/chocolatey/bin
./build.sh -v -b -l -e
- name: Run tests
run: |
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
export PATH=$PATH:/cygdrive/c/ProgramData/chocolatey/bin
./build.sh -v -b -l -t