-
Notifications
You must be signed in to change notification settings - Fork 5
73 lines (70 loc) · 2.01 KB
/
build.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
name: Build
on:
push:
branches:
- main
- tmp
pull_request:
branches:
- main
- tmp
types: [opened, synchronize, reopened]
release:
types: [created]
schedule:
- cron: "0 13 * * 1"
env:
WERROR: 1
Q:
jobs:
test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: ["ubuntu-latest", "ubuntu-20.04"]
include:
- compiler: "gcc"
os: "ubuntu-latest"
- compiler: "gcc-7"
os: "ubuntu-20.04"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Install Ubuntu Prerequisites
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install autoconf automake bison build-essential cmake flex libtool pkg-config gettext
sudo apt-get install ${{ matrix.compiler }} lcov osslsigncode
- name: Print Help
run: |
make help
- name: Build Toolchain, CRTs and EASTL
run: |
make deps
- name: Build Examples
run: |
make examples
- name: Install Examples
run: |
make examples-install DESTDIR=$(realpath _install)
ls -alh _install
test -r _install/codesign-ca-cert.crt -a -r _install/dpp-example.bat -a -r _install/dpp-example-cplusplus.bat -a -r _install/dpp-example-cplusplus-EASTL.bat -a -r _install/dpp-example.sys -a -r _install/dpp-example-cplusplus.sys -a -r _install/dpp-example-cplusplus-EASTL.sys
- name: Test
run: |
./_install/dpp-example-cplusplus-EASTL.run
- name: Package
run: |
make package
- name: Cleanup
run: |
make deps-clean
make deps-distclean
- name: Upload Package
uses: actions/upload-artifact@v3
with:
name: mingw-w64-dpp-package
path: mingw-w64-dpp.tar