Sandboxie/.github/workflows/main.yml

99 lines
2.7 KiB
YAML
Raw Normal View History

2020-11-28 14:34:18 +00:00
name: CI
on:
2021-09-29 20:38:24 +01:00
workflow_dispatch:
branches: [ master, dev ]
2021-01-31 11:06:16 +00:00
push:
branches: [ master ]
pull_request:
branches: [ master ]
2020-11-28 14:34:18 +00:00
jobs:
2021-12-31 14:21:21 +00:00
Build:
2021-01-30 22:20:06 +00:00
#strategy:
# matrix:
# #platform: [Win32, x64]
# #qt-target: [win32_msvc2019, win64_msvc2019_64]
# include:
# - platform: Win32
# qt-target: win32_msvc2019
# - platform: x64
# qt-target: win64_msvc2019_64
2021-12-08 05:05:13 +00:00
2021-09-09 21:09:47 +01:00
runs-on: windows-2019
2021-12-08 05:05:13 +00:00
2020-11-28 14:34:18 +00:00
steps:
2020-11-28 15:23:26 +00:00
- name: Checkout code
uses: actions/checkout@v3
2020-11-28 16:25:50 +00:00
2021-09-09 20:59:05 +01:00
- name: Setup msbuild
2021-12-08 05:05:13 +00:00
uses: microsoft/setup-msbuild@v1.1
2020-11-28 16:25:50 +00:00
2021-09-09 21:22:33 +01:00
# - name: Do Tests
# run: .\TestCI.cmd
2021-09-09 21:06:14 +01:00
2021-01-30 22:20:06 +00:00
# - name: Build Sandboxie
# run: msbuild /t:build Sandboxie\Sandbox.sln /p:Configuration="SbieRelease" /p:Platform=${{ matrix.platform }}
2021-01-30 23:06:27 +00:00
- name: Build Sandboxie 32 bit
run: msbuild /t:build Sandboxie\Sandbox.sln /p:Configuration="SbieRelease" /p:Platform=Win32 -maxcpucount:8
2021-12-08 05:05:13 +00:00
2021-01-30 23:06:27 +00:00
- name: Build Sandboxie 64 bit
run: msbuild /t:build Sandboxie\Sandbox.sln /p:Configuration="SbieRelease" /p:Platform=x64 -maxcpucount:8
2021-01-30 22:20:06 +00:00
2021-01-31 11:09:38 +00:00
- name: Cache Qt
id: cache-qt
uses: actions/cache@v3.0.2
2021-01-31 11:09:38 +00:00
with:
2021-12-08 05:05:13 +00:00
path: ${{ runner.workspace }}\Qt
2021-07-18 21:00:27 +01:00
key: Qt-5.15.2-QtCache
2021-01-20 10:23:09 +00:00
2021-01-30 22:23:57 +00:00
- name: Install Qt 64 bit
2021-01-30 18:23:59 +00:00
uses: jurplel/install-qt-action@v2
with:
2021-07-18 20:46:46 +01:00
version: '5.15.2'
2021-01-30 21:00:05 +00:00
dir: ..
2021-01-30 22:20:06 +00:00
# arch: ${{ matrix.qt-target }}
2021-12-08 05:05:13 +00:00
arch: 'win64_msvc2019_64'
2021-01-30 21:00:05 +00:00
# tools: 'tools_qtcreator,4.14.0-0-202012170949,qt.tools.qtcreator'
2021-01-30 18:23:59 +00:00
cached: ${{ steps.cache-qt.outputs.cache-hit }}
2021-01-30 22:20:06 +00:00
2021-01-30 22:23:57 +00:00
- name: Install Qt 32 bit
2021-01-30 22:20:06 +00:00
uses: jurplel/install-qt-action@v2
with:
2021-07-18 21:00:27 +01:00
version: '5.15.2'
2021-01-30 22:20:06 +00:00
dir: ..
# arch: ${{ matrix.qt-target }}
2021-01-30 22:23:57 +00:00
arch: 'win32_msvc2019'
2021-01-30 22:20:06 +00:00
# tools: 'tools_qtcreator,4.14.0-0-202012170949,qt.tools.qtcreator'
cached: ${{ steps.cache-qt.outputs.cache-hit }}
2021-12-08 05:05:13 +00:00
2021-01-30 22:23:57 +00:00
- name: Installing Jom
2021-01-31 11:09:38 +00:00
if: steps.cache.outputs.cache-hit != 'true'
2021-01-30 22:23:57 +00:00
run: SandboxiePlus\install_jom.cmd
2021-01-30 22:20:06 +00:00
- name: Build Sandboxie-Plus 64 bit
run: SandboxiePlus\qmake_plus.cmd x64
2021-12-08 05:05:13 +00:00
2021-01-30 22:23:57 +00:00
- name: Build Sandboxie-Plus 32 bit
run: SandboxiePlus\qmake_plus.cmd Win32
2021-01-30 22:47:50 +00:00
- name: Merging Builds
run: Installer\merge_builds.cmd
2021-01-30 22:20:06 +00:00
2021-01-31 10:34:58 +00:00
- name: Upload Sandboxie 32
2020-11-28 15:23:26 +00:00
uses: actions/upload-artifact@v2
2020-11-28 14:52:52 +00:00
with:
2021-01-31 10:34:58 +00:00
name: Sandboxie_x86
2020-11-28 14:52:52 +00:00
path: |
2021-01-30 22:47:50 +00:00
Installer/SbiePlus32/*
2021-12-08 05:05:13 +00:00
retention-days: 60
2021-01-31 10:34:58 +00:00
- name: Upload Sandboxie 64
uses: actions/upload-artifact@v2
with:
name: Sandboxie_x64
path: |
Installer/SbiePlus64/*
2021-12-08 05:05:13 +00:00
retention-days: 60