Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): Azure Pipeline #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .ci/esy-build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ steps:
- task: NodeTool@0
inputs:
versionSpec: '8.9'
- script: npm install -g [email protected]
- script: git submodule update --init
displayName: 'git submodule update --init'
- script: npm install -g [email protected]
displayName: 'npm install -g [email protected]'
- script: esy install
displayName: 'esy install'
- script: esy build-env
displayName: 'esy build-env'
- script: esy build
displayName: 'esy build --verbosity=debug'
env:
ESY__LOG: 'debug'
- task: PublishBuildArtifacts@1
displayName: Publish log
condition: and(failed(), eq(variables['Agent.OS'], 'Windows_NT'))
inputs:
pathToPublish: "C:\\npm\\cache\\_logs"
artifactName: log
artifactType: container
41 changes: 26 additions & 15 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
# 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
# Cross-platform build pipeline + NPM publish

trigger:
- master
name: $(Build.SourceVersion)
jobs:
- job: Linux
displayName: "Linux - Ubuntu 16.04"
pool:
vmImage: 'Ubuntu 16.04'
steps:
- template: .ci/esy-build-steps.yml

pool:
vmImage: 'ubuntu-latest'
- job: MacOS14
displayName: "MacOS High Sierra"
pool:
vmImage: 'macOS-10.14'
steps:
- template: .ci/esy-build-steps.yml

steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
- job: MacOS15
displayName: "MacOS Catalina"
pool:
vmImage: 'macOS-10.15'
steps:
- template: .ci/esy-build-steps.yml

- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'
- job: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- template: .ci/esy-build-steps.yml
9 changes: 9 additions & 0 deletions build-windows.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set -x

if cmake.exe --version; then
echo "cmake already in path..."
else
Expand All @@ -20,4 +22,11 @@ else

echo "Copying to $cur__share/$CMAKE_DIRNAME"
cp -r $CMAKE_FOLDER $cur__share/$CMAKE_DIRNAME

echo "Checking cmake version (/usr/bin):"
OUTPUT="$(/usr/bin/cmake.exe --version)"
echo "/usr/bin version is: $OUTPUT"

echo "Checking cmake version (copied):"
strace $cur__bin/cmake.exe
fi
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"esy": {
"build": [
["bash", "-c", "#{os == 'windows' ? './build-windows.sh' : './build.sh'}"],
["ls", "-a", "#{self.bin}"]
["ls", "-a", "#{self.bin}"],
["cmake", "--version"]
],
"buildsInSource": "_build"
},
Expand Down