Sandboxie/.github/workflows/main.yml

72 lines
2.0 KiB
YAML
Raw Normal View History

2020-11-28 14:34:18 +00:00
name: CI
on:
2021-01-30 18:18:15 +00:00
workflow_dispatch:
2020-11-28 14:34:18 +00:00
branches: [ master ]
2021-01-30 18:14:57 +00:00
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]
2020-11-28 14:34:18 +00:00
jobs:
build:
2020-11-28 14:46:12 +00:00
strategy:
matrix:
2021-01-30 18:46:55 +00:00
#platform: [Win32, x64]
#qt-target: [win32_msvc2019, win64_msvc2019_64]
2021-01-30 18:43:29 +00:00
include:
- platform: Win32
qt-target: win32_msvc2019
- platform: x64
qt-target: win64_msvc2019_64
2020-12-09 12:37:07 +00:00
runs-on: windows-2019
2020-11-28 14:34:18 +00:00
steps:
2020-11-28 15:23:26 +00:00
- name: Checkout code
uses: actions/checkout@v2
2020-11-28 16:25:50 +00:00
2020-11-28 15:23:26 +00:00
- name: Setup msbuild
2020-11-28 14:38:51 +00:00
uses: microsoft/setup-msbuild@v1
2020-11-28 16:25:50 +00:00
2021-01-30 21:13:53 +00:00
- name: Build Sandboxie
run: msbuild /t:build Sandboxie\Sandbox.sln /p:Configuration="SbieRelease" /p:Platform=${{ matrix.platform }}
2020-11-28 16:25:50 +00:00
2021-01-30 21:13:53 +00:00
#- name: Cache Qt
# id: cache-qt
# uses: actions/cache@v1
2021-01-30 20:39:53 +00:00
# with:
2021-01-30 21:13:53 +00:00
# path: ../Qt
# key: ${{ matrix.qt-target }}-QtCache
2021-01-20 10:23:09 +00:00
2021-01-30 18:23:59 +00:00
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: '5.15.1'
2021-01-30 21:00:05 +00:00
dir: ..
2021-01-30 18:45:03 +00:00
arch: ${{ matrix.qt-target }}
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-20 10:23:09 +00:00
2021-01-30 18:22:14 +00:00
- name: Build Sandboxie-Plus
2021-01-30 19:03:13 +00:00
run: SandboxiePlus\qmake_plus.cmd ${{ matrix.platform }}
2021-01-30 18:22:14 +00:00
2021-01-30 21:13:53 +00:00
- name: Upload Sandboxie
2020-11-28 15:23:26 +00:00
uses: actions/upload-artifact@v2
2020-11-28 14:52:52 +00:00
with:
2021-01-30 21:13:53 +00:00
name: Sandboxie (${{ matrix.platform }})
2020-11-28 14:52:52 +00:00
path: |
2021-01-30 21:13:53 +00:00
Sandboxie/Bin/${{ matrix.platform }}/SbieRelease
2020-11-28 14:52:52 +00:00
!**/*.pdb
2021-01-30 21:13:53 +00:00
!**/*.ipdb
2020-11-28 14:52:52 +00:00
!**/*.exp
!**/*.lib
2021-01-30 21:13:53 +00:00
!**/*.cer
Sandboxie/Bin/${{ matrix.platform }}/SbieRelease/SbieDrv.pdb
2021-01-30 21:53:28 +00:00
SandboxiePlus/Bin/${{ matrix.platform }}/Release/MiscHelpers.dll
SandboxiePlus/Bin/${{ matrix.platform }}/Release/QSbieAPI.dll
SandboxiePlus/Bin/${{ matrix.platform }}/Release/qtsingleapp.dll
SandboxiePlus/Bin/${{ matrix.platform }}/Release/SandMan.exe
2021-01-30 20:27:18 +00:00