From cd695287ff9a8824d7a57ba5872342fdc5b74306 Mon Sep 17 00:00:00 2001 From: YazeedObaid Date: Tue, 21 Jul 2020 11:43:10 +0300 Subject: [PATCH] add .net framework worklfow --- .github/workflows/dotnet-core.yml | 28 ++++++++++++++-- .github/workflows/dotnet-framework.yml | 46 ++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/dotnet-framework.yml diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml index 5780415..5d0f054 100644 --- a/.github/workflows/dotnet-core.yml +++ b/.github/workflows/dotnet-core.yml @@ -2,7 +2,7 @@ on: push: - branches: [ master ] + branches: [ master, migrate-to-github-actions ] pull_request: branches: [ master ] @@ -14,34 +14,58 @@ env: # Project name to pack and publish PROJECT_NAME: DynamicsCRMProvider +# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - build: + # This workflow contains a two jobs called "windows" and "mono" + windows: + + # The type of runner that the job will run on runs-on: windows-latest + + # Steps represent a sequence of tasks that will be executed as part of the job steps: + + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 + + # Setup .net core - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: dotnet-version: 3.1.101 + + # Build project using a specific script - name: Build shell: cmd run: call .\build.cmd + + # Publish artifacts resulted from build - name: Upload Artifact uses: actions/upload-artifact@v2 with: name: DLL Build Result path: ./.fake/*.dll mono: + + # The type of runner that the job will run on runs-on: ${{ matrix.os }} strategy: matrix: os: [ ubuntu-latest, macos-latest ] + + # Steps represent a sequence of tasks that will be executed as part of the job steps: + + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 + + # Setup .net core - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: dotnet-version: 3.1.101 + + # Build project using a specific script - name: Build shell: bash run: | diff --git a/.github/workflows/dotnet-framework.yml b/.github/workflows/dotnet-framework.yml new file mode 100644 index 0000000..4a79257 --- /dev/null +++ b/.github/workflows/dotnet-framework.yml @@ -0,0 +1,46 @@ +name: dotnet-framework + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ master,migrate-to-github-actions ] + pull_request: + branches: [ master ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: windows-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Setup MSBuild + - name: setup MSBuild + uses: microsoft/setup-msbuild@v1 + + # Setup Nuget + - name: Setup NuGet + uses: NuGet/setup-nuget@v1.0.2 + + # Restore Nuget packages for project + - name: Restore Packages + run: nuget restore DynamicsCRMProvider.sln + + # Build project using a specific script + - name: Build + shell: cmd + run: call .\build.cmd + + # Publish artifacts resulted from build + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: DLL Build Result + path: ./bin/*.dll