Skip to content

CI

CI #69

Workflow file for this run

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