Skip to content

Commit b2632b1

Browse files
committed
MWE custom vs default runner
1 parent 1cb9c1a commit b2632b1

File tree

4 files changed

+204
-0
lines changed

4 files changed

+204
-0
lines changed
Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
# This workflow showcases feature differences between
2+
# GitHub's default runner (actions/runner)
3+
# and
4+
# Antmicro's custom runner (antmicro/runner).
5+
6+
name: MWE custom vs default runner
7+
8+
on:
9+
push:
10+
pull_request:
11+
12+
jobs:
13+
14+
15+
# Supported on both actions/runner and antmicro/runner
16+
17+
# Non-local Composite Actions
18+
19+
Supported-Composite-Custom:
20+
container: ubuntu:bionic
21+
runs-on:
22+
- self-hosted
23+
- Linux
24+
- X64
25+
26+
env:
27+
MAX_CORES: 80
28+
GHA_EXTERNAL_DISK: "tools"
29+
GHA_SA: "gh-sa-f4pga-arch-defs-ci"
30+
31+
steps:
32+
33+
- uses: antmicro/f4pga-arch-defs/composite@umarcor/runner/mwes
34+
35+
Supported-Composite-Default:
36+
runs-on: ubuntu-latest
37+
38+
steps:
39+
40+
- uses: antmicro/f4pga-arch-defs/composite@umarcor/runner/mwes
41+
42+
# Actions inside Composite Actions
43+
44+
Supported-CompositeUses-Custom:
45+
container: ubuntu:bionic
46+
runs-on:
47+
- self-hosted
48+
- Linux
49+
- X64
50+
51+
env:
52+
MAX_CORES: 80
53+
GHA_EXTERNAL_DISK: "tools"
54+
GHA_SA: "gh-sa-f4pga-arch-defs-ci"
55+
56+
steps:
57+
58+
- uses: antmicro/f4pga-arch-defs/composite-uses@umarcor/runner/mwes
59+
60+
Supported-CompositeUses-Default:
61+
runs-on: ubuntu-latest
62+
63+
steps:
64+
65+
- uses: antmicro/f4pga-arch-defs/composite-uses@umarcor/runner/mwes
66+
67+
# Local Composite Actions
68+
69+
Supported-CompositeLocal-Custom:
70+
container: ubuntu:bionic
71+
runs-on:
72+
- self-hosted
73+
- Linux
74+
- X64
75+
76+
env:
77+
MAX_CORES: 80
78+
GHA_EXTERNAL_DISK: "tools"
79+
GHA_SA: "gh-sa-f4pga-arch-defs-ci"
80+
81+
steps:
82+
83+
- uses: actions/checkout@v3
84+
- uses: ./composite
85+
86+
Supported-CompositeLocal-Default:
87+
runs-on: ubuntu-latest
88+
89+
steps:
90+
91+
- uses: actions/checkout@v3
92+
- uses: ./composite
93+
94+
# Supported on actions/runner but not on antmicro/runner
95+
96+
97+
98+
# Action actions/setup-python
99+
100+
SetupPython-Custom:
101+
container: ubuntu:bionic
102+
runs-on:
103+
- self-hosted
104+
- Linux
105+
- X64
106+
107+
env:
108+
MAX_CORES: 80
109+
GHA_EXTERNAL_DISK: "tools"
110+
GHA_SA: "gh-sa-f4pga-arch-defs-ci"
111+
112+
steps:
113+
114+
- name: '🐍 Setup Python'
115+
uses: actions/setup-python@v4
116+
with:
117+
python-version: '3.10'
118+
119+
SetupPython-Default:
120+
runs-on: ubuntu-latest
121+
122+
steps:
123+
124+
- name: '🐍 Setup Python'
125+
uses: actions/setup-python@v4
126+
with:
127+
python-version: '3.10'
128+
129+
# Docker steps
130+
131+
DockerStep-Custom:
132+
container: ubuntu:bionic
133+
runs-on:
134+
- self-hosted
135+
- Linux
136+
- X64
137+
138+
env:
139+
MAX_CORES: 80
140+
GHA_EXTERNAL_DISK: "tools"
141+
GHA_SA: "gh-sa-f4pga-arch-defs-ci"
142+
143+
steps:
144+
145+
- uses: docker://debian:bullseye-slim
146+
with:
147+
args: echo 'Hello world!'
148+
149+
DockerStep-Default:
150+
runs-on: ubuntu-latest
151+
152+
steps:
153+
154+
- uses: docker://debian:bullseye-slim
155+
with:
156+
args: echo 'Hello world!'
157+
158+
# Execute `docker` commands
159+
160+
DockerManual-Custom:
161+
container: ubuntu:bionic
162+
runs-on:
163+
- self-hosted
164+
- Linux
165+
- X64
166+
167+
env:
168+
MAX_CORES: 80
169+
GHA_EXTERNAL_DISK: "tools"
170+
GHA_SA: "gh-sa-f4pga-arch-defs-ci"
171+
172+
steps:
173+
174+
- run: docker pull debian:bullseye-slim
175+
176+
DockerManual-Default:
177+
runs-on: ubuntu-latest
178+
179+
steps:
180+
181+
- run: docker pull debian:bullseye-slim
182+
183+
184+
185+
186+

composite-uses/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: 'Action inside Composite Action'
2+
description: 'For testing purposes'
3+
runs:
4+
using: 'composite'
5+
steps:
6+
7+
- uses: actions/checkout@v3

composite/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: 'Composite Action'
2+
description: 'For testing purposes'
3+
runs:
4+
using: 'composite'
5+
steps:
6+
7+
- shell: bash
8+
run: '''${{ github.action_path }}/script.sh'''

composite/script.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
echo "Hello world!"

0 commit comments

Comments
 (0)