Skip to content

Commit

Permalink
Merge pull request #6437 from Microsoft/users/davidstaheli/gcc-templates
Browse files Browse the repository at this point in the history
Create YAML templates for C and C++ with GCC
  • Loading branch information
davidstaheli authored Feb 14, 2018
2 parents 02c5557 + 3ab856b commit 298942e
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
25 changes: 25 additions & 0 deletions templates/ci/gcc-c.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# C with GCC
# Build your C project with GNU GCC.
# https://aka.ms/yaml

queue: 'Hosted Linux'

#variables:
outputFile: 'main'
# system.debug: 'true'

steps:
- script: 'gcc *.c -o $(outputFile)'

- task: CopyFiles@2
displayName: 'Copy artifacts'
inputs:
contents: '$(outputFile)'
targetFolder: '$(build.artifactStagingDirectory)'

- task: PublishBuildArtifacts@1
displayName: 'Publish artifacts'
inputs:
pathToPublish: '$(build.artifactStagingDirectory)'
artifactName: 'artifact'
artifactType: 'container'
25 changes: 25 additions & 0 deletions templates/ci/gcc-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# C++ with GCC
# Build your C++ project with GNU GCC.
# https://aka.ms/yaml

queue: 'Hosted Linux'

#variables:
outputFile: 'main'
# system.debug: 'true'

steps:
- script: 'g++ *.cpp -o $(outputFile)'

- task: CopyFiles@2
displayName: 'Copy artifacts'
inputs:
contents: '$(outputFile)'
targetFolder: '$(build.artifactStagingDirectory)'

- task: PublishBuildArtifacts@1
displayName: 'Publish artifacts'
inputs:
pathToPublish: '$(build.artifactStagingDirectory)'
artifactName: 'artifact'
artifactType: 'container'

0 comments on commit 298942e

Please sign in to comment.