Skip to content

Commit 0f23645

Browse files
Use submodule commits from main when building in ci
1 parent 6be8d0c commit 0f23645

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555

5656
- name: Build
5757
shell: pwsh
58-
run: ./build-dev.ps1
58+
run: ./build-ci.ps1
5959

6060
- name: Deploy
6161
uses: peaceiris/[email protected]

build-ci.cmd

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@echo Off
2+
3+
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '.\build-ci.ps1'"
4+
5+
if not "%errorlevel%"=="0" goto failure
6+
7+
:success
8+
ECHO successfully built project
9+
REM exit 0
10+
goto end
11+
12+
:failure
13+
ECHO failed to build.
14+
REM exit -1
15+
goto end
16+
17+
:end

build-ci.ps1

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Ensure deterministic builds do not affect submodule build
2+
# TODO: Remove first two values once all projects are updated to latest build props.
3+
$env:CI = $false
4+
$env:GITHUB_ACTIONS = $false
5+
6+
$env:SIXLABORS_TESTING = $true
7+
8+
docfx

0 commit comments

Comments
 (0)