Discovery for staging main build gh-13282 #738
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compiler discovery | |
run-name: Discovery for ${{ inputs.environment }} ${{ inputs.branch }} build ${{ inputs.buildnumber }} | |
on: | |
workflow_dispatch: | |
inputs: | |
environment: | |
description: 'Environment' | |
type: choice | |
default: staging | |
required: true | |
options: | |
- staging | |
- beta | |
- prod | |
branch: | |
description: 'Branch' | |
default: 'main' | |
required: true | |
buildnumber: | |
description: 'Build number' | |
default: '' | |
required: true | |
skip_remote_checks: | |
description: 'Comma separated list of remote checks to skip' | |
default: '' | |
type: string | |
jobs: | |
compilerdiscovery: | |
runs-on: ['admin'] | |
steps: | |
- name: Update infra | |
run: cd /home/ubuntu/infra && git pull && make ce | |
- name: Set build number ${{ github.event.inputs.buildnumber }} | |
run: ce --env runner builds set_current ${{ github.event.inputs.buildnumber }} --branch ${{ github.event.inputs.branch }} --confirm | |
- name: Start runner | |
run: ce runner start | |
- name: Update infra on runner | |
run: ce runner pull | |
- name: Do Compiler discovery | |
run: ce runner discovery | |
- name: Upload discovered compilers | |
run: ce runner uploaddiscovery ${{ github.event.inputs.environment }} --skip-remote-checks='${{ github.event.inputs.skip_remote_checks }}' ${{ github.event.inputs.buildnumber }} | |
- name: Shut down runner | |
run: ce runner stop |