diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..190aa6fc --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: "Build" + +on: + workflow_call: # allows to be invoked as part of a larger workflow + +env: + solution: Microsoft.DurableTask.sln + config: Release + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + global-json-file: global.json + + - name: Restore dependencies + run: dotnet restore $solution + + - name: Build + run: dotnet build $solution --configuration $config --no-restore -p:FileVersionRevision=$GITHUB_RUN_NUMBER -p:ContinuousIntegrationBuild=true + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: built-code + path: ./ diff --git a/.github/workflows/codeQL.yml b/.github/workflows/codeQL.yml index c72b425f..38e59b28 100644 --- a/.github/workflows/codeQL.yml +++ b/.github/workflows/codeQL.yml @@ -6,9 +6,9 @@ name: "CodeQL" on: push: - branches: [ "main" ] + branches: [ "main", "*" ] # TODO: remove "*" post approval pull_request: - branches: [ "main"] + branches: [ "main", "*"] # TODO: remove "*" post approval schedule: - cron: '0 0 * * 1' # Weekly Monday run, needed for weekly reports workflow_call: # allows to be invoked as part of a larger workflow @@ -41,8 +41,6 @@ jobs: # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support steps: - # - name: Checkout repository - # uses: actions/checkout@v3 - name: Download built-code uses: actions/download-artifact@v2