diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c03b23b2..78d534e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,9 +33,14 @@ on: required: false default: false type: bool - # options: - # - true - # - false + upload_artifacts: + required: false + default: false + type: bool + publish_symbols: + required: false + default: false + type: bool permissions: actions: read @@ -57,7 +62,9 @@ jobs: - name: Checkout repository uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 with: + repository: microsoft/xdp-for-windows submodules: recursive + ref: ${{ inputs.ref }} - name: Initialize CodeQL if: ${{ github.event_name == 'schedule' }} uses: github/codeql-action/init@v3 @@ -87,7 +94,7 @@ jobs: shell: PowerShell run: tools/create-installer.ps1 -Config ${{ inputs.config }} -Platform ${{ inputs.arch }} - name: Upload Artifacts - if: inputs.os == 2022 + if: inputs.upload_artifacts uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 with: name: bin_${{ inputs.config }}_${{ inputs.arch }} @@ -98,7 +105,7 @@ jobs: !artifacts/bin/**/*.lastcodeanalysissucceeded - name: Publish Symbols uses: microsoft/action-publish-symbols@719c40b80e38bca806f3e01e1e3dd3a67554cd68 - if: github.event_name != 'pull_request' && inputs.os == 2022 + if: inputs.publish_symbols with: accountName: mscodehub symbolServiceUrl: 'https://artifacts.dev.azure.com' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 304cf768..5d245533 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,10 @@ jobs: arch: ${{ matrix.arch }} if: ${{ github.event_name == 'schedule' }} codeql: true + if: matrix.os == 2022 + upload_artifacts: true + if: github.event_name != 'pull_request' && matrix.os == 2022 + publish_symbols: true functional_tests: name: Functional Tests