Merge branch 'master' into sqlite-update
This commit is contained in:
commit
49164935cb
|
@ -28,9 +28,39 @@ on:
|
|||
branches:
|
||||
- release-*
|
||||
jobs:
|
||||
post-comment:
|
||||
name: Post comment on Repository Dispatch
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Parse repository_dispatch payload
|
||||
if: github.event_name == 'repository_dispatch'
|
||||
working-directory: ${{ github.workspace }}
|
||||
shell: bash
|
||||
run: |
|
||||
if [ ${{ github.event.client_payload.command }} = "ok-to-test" ]; then
|
||||
echo "CHECKOUT_REF=${{ github.event.client_payload.pull_head_ref }}" >> $GITHUB_ENV
|
||||
echo "PR_NUMBER=${{ github.event.client_payload.issue.number }}" >> $GITHUB_ENV
|
||||
fi
|
||||
- name: Create PR comment
|
||||
if: env.PR_NUMBER != ''
|
||||
uses: artursouza/sticky-pull-request-comment@da9e86aa2a80e4ae3b854d251add33bd6baabcba
|
||||
with:
|
||||
header: ${{ github.run_id }}
|
||||
number: ${{ env.PR_NUMBER }}
|
||||
GITHUB_TOKEN: ${{ secrets.DAPR_BOT_TOKEN }}
|
||||
message: |
|
||||
# Complete Build Matrix
|
||||
|
||||
The build status is currently not updated here. Please visit the action run below directly.
|
||||
|
||||
🔗 **[Link to Action run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})**
|
||||
|
||||
Commit ref: ${{ env.CHECKOUT_REF }}
|
||||
|
||||
build:
|
||||
name: Build ${{ matrix.target_os }}_${{ matrix.target_arch }} binaries
|
||||
runs-on: ${{ matrix.os }}
|
||||
needs: post-comment
|
||||
env:
|
||||
GOVER: "1.19"
|
||||
GOOS: ${{ matrix.target_os }}
|
||||
|
@ -61,10 +91,10 @@ jobs:
|
|||
- name: Parse repository_dispatch payload
|
||||
if: github.event_name == 'repository_dispatch'
|
||||
working-directory: ${{ github.workspace }}
|
||||
shell: bash
|
||||
run: |
|
||||
if [ ${{ github.event.client_payload.command }} = "ok-to-test" ]; then
|
||||
echo "CHECKOUT_REF=${{ github.event.client_payload.pull_head_ref }}" >> $GITHUB_ENV
|
||||
echo "PR_NUMBER=${{ github.event.client_payload.issue.number }}" >> $GITHUB_ENV
|
||||
fi
|
||||
- name: Set up Go ${{ env.GOVER }}
|
||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
name: "Build, Lint, Unit Test - Linux AMD64 Only"
|
||||
|
||||
on:
|
||||
merge_group:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
@ -42,7 +43,6 @@ jobs:
|
|||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||
uses: actions/checkout@v3
|
||||
- name: Cache Go modules (Linux)
|
||||
if: matrix.target_os == 'linux'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
|
@ -51,26 +51,6 @@ jobs:
|
|||
key: linux-amd64-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
linux-amd64-go-${{ env.GOVER }}-
|
||||
- name: Cache Go modules (Windows)
|
||||
if: matrix.target_os == 'windows'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~\AppData\Local\go-build
|
||||
~\go\pkg\mod
|
||||
key: linux-amd64-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
linux-amd64-go-${{ env.GOVER }}-
|
||||
- name: Cache Go modules (macOS)
|
||||
if: matrix.target_os == 'darwin'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/Library/Caches/go-build
|
||||
~/go/pkg/mod
|
||||
key: linux-amd64-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
linux-amd64-go-${{ env.GOVER }}-
|
||||
- name: Check components-schema
|
||||
if: steps.skip_check.outputs.should_skip != 'true'
|
||||
run: make check-component-metadata-schema-diff
|
||||
|
|
|
@ -17,6 +17,7 @@ on:
|
|||
repository_dispatch:
|
||||
types: [conformance-test]
|
||||
workflow_dispatch:
|
||||
merge_group:
|
||||
schedule:
|
||||
- cron: '0 */8 * * *'
|
||||
push:
|
||||
|
|
Loading…
Reference in New Issue