Skip to content

Commit

Permalink
partially refactor code-building steps
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmrdavid authored Jul 24, 2024
1 parent c1a9f50 commit 697babb
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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: ./
6 changes: 2 additions & 4 deletions .github/workflows/codeQL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 697babb

Please sign in to comment.