Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/ci-amd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
---
name: Tests AMD
on: # yamllint disable-line rule:truthy
schedule:
- cron: '28 1,7,13,19 * * *'
push:
branches:
- v[0-9]+-[0-9]+-test
- providers-[a-z]+-?[a-z]*/v[0-9]+-[0-9]+
pull_request:
branches:
- main
- v[0-9]+-[0-9]+-test
- v[0-9]+-[0-9]+-stable
- providers-[a-z]+-?[a-z]*/v[0-9]+-[0-9]+
types: [opened, reopened, synchronize, ready_for_review]
workflow_dispatch:
permissions:
# All other permissions are set to none by default
contents: write
packages: write
id-token: write
jobs:
CI-AMD:
uses: ./.github/workflows/reusable-ci-workflow.yml
with:
architecture: 'AMD'
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
DOCS_AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_AWS_ACCESS_KEY_ID }}
DOCS_AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_AWS_SECRET_ACCESS_KEY }}
46 changes: 46 additions & 0 deletions .github/workflows/ci-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
---
name: Tests ARM
on: # yamllint disable-line rule:truthy
schedule:
- cron: '28 5,11,17,23 * * *'
push:
branches:
- v[0-9]+-[0-9]+-test
- providers-[a-z]+-?[a-z]*/v[0-9]+-[0-9]+
pull_request:
branches:
- v[0-9]+-[0-9]+-test
- v[0-9]+-[0-9]+-stable
- providers-[a-z]+-?[a-z]*/v[0-9]+-[0-9]+
types: [opened, reopened, synchronize, ready_for_review]
workflow_dispatch:
permissions:
# All other permissions are set to none by default
contents: write
packages: write
id-token: write
jobs:
CI-ARM:
uses: ./.github/workflows/reusable-ci-workflow.yml
with:
architecture: 'ARM'
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
# No need to pass AWS creds as ARM builds do not build docs
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,22 @@
---
name: Tests
on: # yamllint disable-line rule:truthy
schedule:
- cron: '28 1,3,7,9,13,15,19,21 * * *'
push:
branches:
- v[0-9]+-[0-9]+-test
- providers-[a-z]+-?[a-z]*/v[0-9]+-[0-9]+
pull_request:
branches:
- main
- v[0-9]+-[0-9]+-test
- v[0-9]+-[0-9]+-stable
- providers-[a-z]+-?[a-z]*/v[0-9]+-[0-9]+
types: [opened, reopened, synchronize, ready_for_review]
workflow_dispatch:
workflow_call:
inputs:
architecture:
description: "Architecture for the build - 'ARM' or 'AMD'"
required: true
type: string
secrets:
SLACK_BOT_TOKEN:
description: "Slack bot token to use for notifications"
required: true
DOCS_AWS_ACCESS_KEY_ID:
description: "AWS Access Key ID for uploading docs (only needed for AMD builds)"
required: false
DOCS_AWS_SECRET_ACCESS_KEY:
description: "AWS Secret Access Key for uploading docs (only needed for AMD builds)"
required: false
permissions:
# All other permissions are set to none by default
contents: read
Expand Down Expand Up @@ -160,30 +162,23 @@ jobs:
PR_LABELS: "${{ steps.source-run-info.outputs.pr-labels }}"
COMMIT_REF: "${{ github.sha }}"
VERBOSE: "false"
ARCHITECTURE: ${{ inputs.architecture }}
run: breeze ci selective-check 2>> ${GITHUB_OUTPUT}
- name: env
run: printenv
env:
PR_LABELS: ${{ steps.source-run-info.outputs.pr-labels }}
GITHUB_CONTEXT: ${{ toJson(github) }}

print-platform-arm:
name: "Platform: ARM"
needs: [build-info]
runs-on: ["ubuntu-22.04"]
if: needs.build-info.outputs.platform == 'linux/arm64'
steps:
- name: "Print architecture"
run: "echo '## Architecture: ARM' >> $GITHUB_STEP_SUMMARY"

print-platform-amd:
name: "Platform: AMD"
print-platform:
name: "Platform: ${{ inputs.architecture }}"
needs: [build-info]
runs-on: ["ubuntu-22.04"]
if: needs.build-info.outputs.platform == 'linux/amd64'
steps:
- name: "Print architecture"
run: "echo '## Architecture: AMD' >> $GITHUB_STEP_SUMMARY"
run: "echo \"## Architecture: ${ARCHITECTURE}\" >> $GITHUB_STEP_SUMMARY"
env:
ARCHITECTURE: ${{ inputs.architecture }}

run-pin-versions-hook:
name: "Pin actions"
Expand Down
Loading
Loading