Skip to content

Commit

Permalink
try to build also via GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
chcg committed Jan 4, 2024
1 parent 97d03fb commit 4daa59c
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "nuget" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "monthly"

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"

# Maintain dependencies for submodules
- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "monthly"
51 changes: 51 additions & 0 deletions .github/workflows/CI_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Continuous Integration

on: [push, pull_request]

jobs:
build:

runs-on: windows-2019
strategy:
matrix:
build_configuration: [Release, Debug]
build_platform: [x64, Win32]

steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'true'

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1

- name: Setup NuGet.exe
uses: nuget/setup-nuget@v1

- name: Restore
working-directory: .
run: nuget restore PythonScript.sln

- name: MSBuild of solution
working-directory: .
run: msbuild PythonScript.sln /m /verbosity:minimal /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" /p:PlatformToolset="v141"

- name: Build docs
if: matrix.build_configuration == 'Release'
working-directory: docs
run: |
python -m pip install --upgrade pip
pip install -U sphinx
.\make.bat html
- name: Build installer and release zips
if: matrix.build_configuration == 'Release'
working-directory: installer
run: |
$env:PYTHONBUILDDIR_X64='..\packages\python2.2.7.18\tools'
$env:PYTHONBUILDDIR='..\packages\python2x86.2.7.18\tools'
Rename-Item -Path ".\buildPaths.bat.orig" -NewName "buildPaths.bat"
$env:WIX_PATH="C:\Program Files (x86)\WiX Toolset v3.11\bin"
$env:PATH = $env:PATH + ';' + $env:WIX_PATH
.\buildAll.bat ${{ matrix.build_platform }}

0 comments on commit 4daa59c

Please sign in to comment.