obs-websocket/.github/workflows/main.yml

56 lines
1.9 KiB
YAML
Raw Normal View History

2021-04-28 23:19:35 +00:00
name: "CI Multiplatform Build"
on:
push:
paths-ignore:
- 'docs/**'
branches:
- master
pull_request:
paths-ignore:
- 'docs/**'
- '**.md'
branches:
- master
jobs:
windows:
name: 'Windows 32/64 Bit'
runs-on: [windows-latest]
if: contains(github.event.head_commit.message, '[skip ci]') != true
env:
build_config: 'RelWithDebInfo'
2021-04-29 00:21:48 +00:00
DEPS_CACHE_VERSION: '3' # Change whenever updating OBS dependencies URL, in order to force a cache reset
2021-04-29 00:19:01 +00:00
DEPS_BASE_PATH: 'D:\obsdependencies'
DEPS_PATH_32: 'D:\obsdependencies\win32'
DEPS_PATH_64: 'D:\obsdependencies\win64'
2021-04-29 00:21:48 +00:00
QT_CACHE_VERSION: '3' # Change whenever updating Qt dependency URL, in order to force a cache reset
2021-04-29 00:02:11 +00:00
QT_ARCHIVE_FILE: 'Qt_5.15.2.7z'
2021-04-29 00:19:01 +00:00
QT_BASE_DIR: 'D:\QtDep'
QTDIR32: 'D:\QtDep\5.15.2\msvc2019'
QTDIR64: 'D:\QtDep\5.15.2\msvc2019_64'
OBS_PATH: 'D:\obs-studio'
2021-04-28 23:19:35 +00:00
steps:
- name: 'Checkout'
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: 'Restore cached Qt archive file'
2021-04-29 00:02:11 +00:00
id: qtcache
2021-04-28 23:19:35 +00:00
uses: actions/cache@v2
with:
2021-04-29 00:19:01 +00:00
path: ${{ env.QT_BASE_DIR }}\${{ env.QT_ARCHIVE_FILE }}
2021-04-29 00:02:11 +00:00
key: 'qtdep-${{ env.QT_CACHE_VERSION }} | ${{ runner.os }}'
2021-04-28 23:19:35 +00:00
restore-keys: |
2021-04-29 00:02:11 +00:00
qtdep-${{ env.QT_CACHE_VERSION }} | ${{ runner.os }}
2021-04-28 23:19:35 +00:00
- name: 'Download Qt'
2021-04-29 00:19:01 +00:00
if: steps.qtcache.outputs.cache-hit != 'true'
2021-04-28 23:19:35 +00:00
run: |
2021-04-29 00:21:48 +00:00
mkdir ${{ env.QT_BASE_DIR }}
cd ${{ env.QT_BASE_DIR }}
2021-04-29 00:02:11 +00:00
curl -kLO https://tt2468.net/dl/${{ env.QT_ARCHIVE_FILE }} -f --retry 5 -C -
- name: 'Extract Qt'
working-directory: ${QT_BASE_DIR}
run: |
2021-04-29 00:19:01 +00:00
7z x ${{ env.QT_ARCHIVE_FILE }} -o ${{ env.QT_BASE_DIR }}
dir ${{ env.QT_BASE_DIR }}