Skip to content

Commit

Permalink
Update CI for Win32 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
bghgary authored Jan 19, 2023
1 parent 9d23d9b commit 64814c8
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 14 deletions.
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**For questions, please use the [forum](https://forum.babylonjs.com)**.

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Other**
- Platform: [e.g. Win32, UWP, HoloLens, Android, iOS]
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**For questions, please use the [forum](https://forum.babylonjs.com)**.

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
38 changes: 38 additions & 0 deletions .github/jobs/win32.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
parameters:
- name: name
type: string
- name: vmImage
type: string
- name: platform
type: string

jobs:
- job: ${{parameters.name}}
timeoutInMinutes: 5
pool:
vmImage: ${{parameters.vmImage}}
variables:
solutionName: 'Win32_${{parameters.platform}}'
buildDir: 'Build/${{variables.solutionName}}'

steps:
- task: Npm@1
inputs:
command: 'install'
workingDir: 'Test'
displayName: 'Install Babylon.js NPM packages'

- script: |
cmake -B ${{variables.buildDir}} -A ${{parameters.platform}} ..
displayName: 'Generate ${{variables.solutionName}} solution'
- task: MSBuild@1
inputs:
solution: '${{variables.buildDir}}/JsRuntimeHost.sln'
maximumCpuCount: true
configuration: 'RelWithDebInfo'
displayName: 'Build ${{variables.solutionName}}'

- script: UnitTests
workingDirectory: `${{variables.buildDir}}/Tests/UnitTests/RelWithDebInfo`
displayName: 'Unit Tests'
28 changes: 14 additions & 14 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
- main

pool:
vmImage: ubuntu-latest
pr:
- main

steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
jobs:
# WIN32
- template: .github/jobs/win32.yml
parameters:
name: Win32_x86
vmImage: 'windows-latest'
platform: win32

- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'
- template: .github/jobs/win32.yml
parameters:
name: Win32_x64
vmImage: 'windows-latest'
platform: x64

0 comments on commit 64814c8

Please sign in to comment.