diff --git a/templates/ci/gcc-c.yml b/templates/ci/gcc-c.yml new file mode 100644 index 000000000000..4a7f4cbeface --- /dev/null +++ b/templates/ci/gcc-c.yml @@ -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' diff --git a/templates/ci/gcc-cpp.yml b/templates/ci/gcc-cpp.yml new file mode 100644 index 000000000000..b84402930993 --- /dev/null +++ b/templates/ci/gcc-cpp.yml @@ -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'