Repository navigation
86 lines (82 loc) · 2.67 KB
/
Copy pathcmake.yml
File metadata and controls
86 lines (82 loc) · 2.67 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
80
81
82
83
84
85
86
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
Linux-build:
name: build on ${{matrix.os}} with ${{matrix.compiler.compiler}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ ubuntu-latest ]
compiler:
- { compiler: GCC, CC: gcc, CXX: g++ }
- { compiler: CLANG, CC: clang, CXX: clang++ }
env:
BUILD_TYPE: Release
CC: ${{matrix.compiler.CC}}
CXX: ${{matrix.compiler.CXX}}
steps:
- uses: actions/checkout@v4
- name: Update repositories
run: sudo apt-get update
- name: Build and install emawp
run: git clone https://github.com/jakubfi/emawp && cd emawp && mkdir build && cd build && cmake .. && make && sudo make install && sudo ldconfig
- name: Build and install emdas
run: git clone https://github.com/jakubfi/emdas && cd emdas && mkdir build && cd build && cmake .. && make && sudo make install && sudo ldconfig
- name: Configure project
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Install
run: sudo cmake --install ${{github.workspace}}/build
- name: Get em400 sources
run: git clone https://github.com/jakubfi/em400 ${{github.workspace}}/tests/em400
- name: Basic Assembly Tests
working-directory: ${{github.workspace}}/tests
run: ./asmtest.sh em400/tests
- name: Acceptance Tests
working-directory: ${{github.workspace}}/tests
run: ./run_test.sh
Win64-build:
name: Win64 build
runs-on: windows-latest
strategy:
fail-fast: true
matrix:
compiler:
- { compiler: GNU, CC: gcc }
defaults:
run:
shell: msys2 {0}
env:
BUILD_TYPE: Release
CC: ${{matrix.compiler.CC}}
SRC_DIR: ${{github.workspace}}
BUILD_DIR: ${{github.workspace}}/build
INSTALL_PREFIX: /mingw64
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
install: >-
base-devel
git
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-cmake
update: true
- uses: actions/checkout@v2
- name: Initialize
run: ./.ci/ci-script.sh init
- name: Configure
run: ./.ci/ci-script.sh configure
- name: Build
run: ./.ci/ci-script.sh build
- name: Install
run: ./.ci/ci-script.sh install
- name: Acceptance Tests
run: ./.ci/ci-script.sh acceptance
- name: Basic Assembly Tests
run: ./.ci/ci-script.sh test