-
Notifications
You must be signed in to change notification settings - Fork 26
60 lines (49 loc) · 1.98 KB
/
main.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
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push, pull request or manual events
on:
push:
pull_request:
workflow_dispatch:
# Run GitHub Actions monthly to make sure CI isn't broken
schedule:
- cron: '0 0 1 * *'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
strategy:
matrix:
runs-on: [windows-2019, ubuntu-20.04]
target: [client, server]
# The type of runner that the job will run on
runs-on: ${{ matrix.runs-on }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/[email protected]
with:
submodules: recursive
- name: Set up Python 3.8
uses: actions/[email protected]
with:
python-version: 3.8
- name: Install Ubuntu packages
if: matrix.runs-on == 'ubuntu-20.04'
run: |
sudo dpkg --add-architecture i386
sudo apt update || true
sudo apt install -y libc6:i386 ninja-build gcc-9-multilib g++-9-multilib libssl1.1:i386 libssl-dev:i386 zlib1g-dev:i386
- name: Build release
id: build
run: |
python ./scripts/BuildRelease.py --target ${{ matrix.target }} --build-type release --vs 2019 --toolset v141_xp --linux-compiler gcc-9 --out-dir ./_build_out --cmake-args="-DWARNINGS_ARE_ERRORS=ON" --github-actions
- name: Run tests
run: |
cd ./_build_out/build
ctest -R ${{ matrix.target }} --build-config RelWithDebInfo --output-on-failure
- name: Upload build result
uses: actions/[email protected]
with:
name: ${{ steps.build.outputs.artifact_name }}
path: ./_build_out/BugfixedHL-*.zip