Skip to content

Commit 4daa59c

Browse files
committed
try to build also via GH actions
1 parent 97d03fb commit 4daa59c

File tree

2 files changed

+74
-0
lines changed

2 files changed

+74
-0
lines changed

.github/dependabot.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "nuget" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "monthly"
12+
13+
# Maintain dependencies for GitHub Actions
14+
- package-ecosystem: "github-actions"
15+
directory: "/"
16+
schedule:
17+
interval: "monthly"
18+
19+
# Maintain dependencies for submodules
20+
- package-ecosystem: "gitsubmodule"
21+
directory: "/"
22+
schedule:
23+
interval: "monthly"

.github/workflows/CI_build.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Continuous Integration
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: windows-2019
9+
strategy:
10+
matrix:
11+
build_configuration: [Release, Debug]
12+
build_platform: [x64, Win32]
13+
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v4
17+
with:
18+
submodules: 'true'
19+
20+
- name: Add msbuild to PATH
21+
uses: microsoft/setup-msbuild@v1
22+
23+
- name: Setup NuGet.exe
24+
uses: nuget/setup-nuget@v1
25+
26+
- name: Restore
27+
working-directory: .
28+
run: nuget restore PythonScript.sln
29+
30+
- name: MSBuild of solution
31+
working-directory: .
32+
run: msbuild PythonScript.sln /m /verbosity:minimal /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" /p:PlatformToolset="v141"
33+
34+
- name: Build docs
35+
if: matrix.build_configuration == 'Release'
36+
working-directory: docs
37+
run: |
38+
python -m pip install --upgrade pip
39+
pip install -U sphinx
40+
.\make.bat html
41+
42+
- name: Build installer and release zips
43+
if: matrix.build_configuration == 'Release'
44+
working-directory: installer
45+
run: |
46+
$env:PYTHONBUILDDIR_X64='..\packages\python2.2.7.18\tools'
47+
$env:PYTHONBUILDDIR='..\packages\python2x86.2.7.18\tools'
48+
Rename-Item -Path ".\buildPaths.bat.orig" -NewName "buildPaths.bat"
49+
$env:WIX_PATH="C:\Program Files (x86)\WiX Toolset v3.11\bin"
50+
$env:PATH = $env:PATH + ';' + $env:WIX_PATH
51+
.\buildAll.bat ${{ matrix.build_platform }}

0 commit comments

Comments
 (0)