-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (40 loc) · 1.48 KB
/
ci.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
name: CI
on:
push:
pull_request:
workflow_dispatch:
# Run GitHub Actions monthly to make sure CI isn't broken and downloads don't expire
schedule:
- cron: '0 0 1 * *'
jobs:
build:
strategy:
matrix:
runs-on: [windows-2019, ubuntu-20.04]
# 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/build_release.py --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: Upload build result
uses: actions/[email protected]
with:
name: ${{ steps.build.outputs.artifact_name }}
path: ./_build_out/WeaponMod-*.zip