From 88bbeb208f911ffc73758b763d5d577276c84097 Mon Sep 17 00:00:00 2001 From: Rob Prouse Date: Tue, 21 Feb 2023 22:16:10 -0500 Subject: [PATCH] Remove Azure DevOps pipeline and update GitHub Action --- .github/workflows/continuous_integration.yml | 90 +++++++------ azure-pipelines.yml | 131 ------------------- 2 files changed, 48 insertions(+), 173 deletions(-) delete mode 100644 azure-pipelines.yml diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index c2beb3f379..70fb9e65ed 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -14,48 +14,50 @@ on: jobs: build-windows: + name: Windows Build runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - name: โคต๏ธ Checkout Source + uses: actions/checkout@v3 - - name: Setup .NET Core SDK 3.1.x - uses: actions/setup-dotnet@v1 + - name: ๐Ÿ› ๏ธ Setup .NET Core SDK 3.1.x + uses: actions/setup-dotnet@v3 with: dotnet-version: '3.1.x' - - name: Setup .NET Core SDK 5.0.x - uses: actions/setup-dotnet@v1 + - name: ๐Ÿ› ๏ธ Setup .NET Core SDK 5.0.x + uses: actions/setup-dotnet@v3 with: dotnet-version: '5.0.x' - - name: Setup .NET Core SDK 6.0.x - uses: actions/setup-dotnet@v1 + - name: ๐Ÿ› ๏ธ Setup .NET Core SDK 6.0.x + uses: actions/setup-dotnet@v3 with: dotnet-version: '6.0.x' - - name: Setup .NET Core SDK 7.0.x - uses: actions/setup-dotnet@v2 + - name: ๐Ÿ› ๏ธ Setup .NET Core SDK 7.0.x + uses: actions/setup-dotnet@v3 with: dotnet-version: '7.0.x' - - name: Install dotnet tools + - name: ๐Ÿ› ๏ธ Install dotnet tools run: dotnet tool restore - - name: Build and Test + - name: ๐Ÿ”จ Build and Test run: dotnet cake --target=Test --test-run-name=Windows --configuration=Release - - name: Package + - name: ๐Ÿ“ฆ Package run: dotnet cake --target=Package - - name: Upload build artifacts + - name: ๐Ÿ’พ Upload build artifacts uses: actions/upload-artifact@v2 with: name: Package path: package - - name: Upload test results - uses: actions/upload-artifact@v2 + - name: ๐Ÿ’พ Upload test results + uses: actions/upload-artifact@v3 with: name: Test results (Windows) path: test-results @@ -63,42 +65,44 @@ jobs: if: ${{ always() }} build-linux: + name: Linux Build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: โคต๏ธ Checkout Source + uses: actions/checkout@v3 - - name: Setup .NET Core SDK 3.1.x - uses: actions/setup-dotnet@v1 + - name: ๐Ÿ› ๏ธ Setup .NET Core SDK 3.1.x + uses: actions/setup-dotnet@v3 with: dotnet-version: '3.1.x' - - name: Setup .NET Core SDK 5.0.x - uses: actions/setup-dotnet@v1 + - name: ๐Ÿ› ๏ธ Setup .NET Core SDK 5.0.x + uses: actions/setup-dotnet@v3 with: dotnet-version: '5.0.x' - - name: Setup .NET Core SDK 6.0.x - uses: actions/setup-dotnet@v1 + - name: ๐Ÿ› ๏ธ Setup .NET Core SDK 6.0.x + uses: actions/setup-dotnet@v3 with: dotnet-version: '6.0.x' - - name: Setup .NET Core SDK 7.0.x - uses: actions/setup-dotnet@v2 + - name: ๐Ÿ› ๏ธ Setup .NET Core SDK 7.0.x + uses: actions/setup-dotnet@v3 with: dotnet-version: '7.0.x' - - name: Install F# + - name: ๐Ÿ› ๏ธ Install F# run: sudo apt-get install fsharp - - name: Install dotnet tools + - name: ๐Ÿ› ๏ธ Install dotnet tools run: dotnet tool restore - - name: Build and Test + - name: ๐Ÿ”จ Build and Test run: dotnet cake --target=Test --test-run-name=Linux --configuration=Release - - name: Upload test results - uses: actions/upload-artifact@v2 + - name: ๐Ÿ’พ Upload test results + uses: actions/upload-artifact@v3 with: name: Test results (Linux) path: test-results @@ -106,39 +110,41 @@ jobs: if: ${{ always() }} build-macos: + name: MacOS Build runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - name: โคต๏ธ Checkout Source + uses: actions/checkout@v3 - - name: Setup .NET Core SDK 3.1.x - uses: actions/setup-dotnet@v1 + - name: ๐Ÿ› ๏ธ Setup .NET Core SDK 3.1.x + uses: actions/setup-dotnet@v3 with: dotnet-version: '3.1.x' - - name: Setup .NET Core SDK 5.0.x - uses: actions/setup-dotnet@v1 + - name: ๐Ÿ› ๏ธ Setup .NET Core SDK 5.0.x + uses: actions/setup-dotnet@v3 with: dotnet-version: '5.0.x' - - name: Setup .NET Core SDK 6.0.x - uses: actions/setup-dotnet@v1 + - name: ๐Ÿ› ๏ธ Setup .NET Core SDK 6.0.x + uses: actions/setup-dotnet@v3 with: dotnet-version: '6.0.x' - - name: Setup .NET Core SDK 7.0.x - uses: actions/setup-dotnet@v2 + - name: ๐Ÿ› ๏ธ Setup .NET Core SDK 7.0.x + uses: actions/setup-dotnet@v3 with: dotnet-version: '7.0.x' - - name: Install dotnet tools + - name: ๐Ÿ› ๏ธ Install dotnet tools run: dotnet tool restore - - name: Build and Test + - name: ๐Ÿ”จ Build and Test run: dotnet cake --target=Test --test-run-name=Linux --configuration=Release - - name: Upload test results - uses: actions/upload-artifact@v2 + - name: ๐Ÿ’พ Upload test results + uses: actions/upload-artifact@v3 with: name: Test results (macOS) path: test-results diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 420247afd1..0000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,131 +0,0 @@ -pr: [ '*' ] - -trigger: - branches: - include: [ 'master', 'release' ] - exclude: [ 'refs/tags/*' ] - -jobs: - -- job: Windows - pool: - vmImage: windows-latest - steps: - - - task: UseDotNet@2 - displayName: 'Install .NET SDK 6.0' - inputs: - version: 6.0.100 - performMultiLevelLookup: true - - - task: UseDotNet@2 - displayName: 'Install .NET SDK 7.0' - inputs: - version: 7.0.100 - performMultiLevelLookup: true - - - powershell: | - dotnet tool restore - dotnet cake --target=Test --test-run-name=Windows --configuration=Release - displayName: Build, test, and publish results - - - powershell: dotnet cake --target=Package - displayName: Package - - - task: PublishBuildArtifacts@1 - displayName: Save package artifacts - inputs: - PathtoPublish: $(Build.ArtifactStagingDirectory) - ArtifactName: Package - - - task: PublishBuildArtifacts@1 - displayName: Save test results artifacts - condition: always() - inputs: - PathtoPublish: test-results - ArtifactName: Test results (Windows) - -- job: Linux - pool: - vmImage: ubuntu-latest - steps: - - - task: UseDotNet@2 - displayName: 'Install .NET SDK 6.0' - inputs: - version: 6.0.100 - performMultiLevelLookup: true - - - task: UseDotNet@2 - displayName: 'Install .NET SDK 7.0' - inputs: - version: 7.0.100 - performMultiLevelLookup: true - - - task: UseDotNet@2 - displayName: 'Install .NET runtime 5.0' - inputs: - packageType: runtime - version: 5.0.x - - - task: UseDotNet@2 - displayName: 'Install .NET Core runtime 3.1' - inputs: - packageType: runtime - version: 3.1.x - - - bash: sudo apt-get install fsharp - displayName: Install F# for Mono - - - bash: | - dotnet tool restore - dotnet cake --target=Test --test-run-name=Linux --configuration=Release - displayName: Build, test, and publish results - - - task: PublishBuildArtifacts@1 - displayName: Save test results artifacts - condition: always() - inputs: - PathtoPublish: test-results - ArtifactName: Test results (Linux) - -- job: macOS - pool: - vmImage: macOS-latest - steps: - - - task: UseDotNet@2 - displayName: 'Install .NET SDK 6.0' - inputs: - version: 6.0.100 - performMultiLevelLookup: true - - - task: UseDotNet@2 - displayName: 'Install .NET SDK 7.0' - inputs: - version: 7.0.100 - performMultiLevelLookup: true - - - task: UseDotNet@2 - displayName: 'Install .NET runtime 5.0' - inputs: - packageType: runtime - version: 5.0.x - - - task: UseDotNet@2 - displayName: 'Install .NET Core runtime 3.1' - inputs: - packageType: runtime - version: 3.1.x - - - bash: | - dotnet tool restore - dotnet cake --target=Test --test-run-name=macOS --configuration=Release - displayName: Build, test, and publish results - - - task: PublishBuildArtifacts@1 - displayName: Save test results artifacts - condition: always() - inputs: - PathtoPublish: test-results - ArtifactName: Test results (macOS)