forked from compiler-explorer/infra
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.02 KB
/
compiler-discovery.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Compiler discovery
on:
workflow_dispatch:
inputs:
environment:
description: 'Environment'
default: 'staging'
required: true
branch:
description: 'Branch'
default: 'main'
required: true
buildnumber:
description: 'Build number'
default: ''
required: true
jobs:
compilerdiscovery:
runs-on: ['admin']
steps:
- name: Update infra
run: cd /home/ubuntu/infra && git pull
- name: Set build number
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 }} ${{ github.event.inputs.buildnumber }}
- name: Shut down runner
run: ce runner stop