Skip to content

Commit dea0e3f

Browse files
committed
MWE custom vs default runner
1 parent 3e0166d commit dea0e3f

File tree

3 files changed

+171
-0
lines changed

3 files changed

+171
-0
lines changed
Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
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+
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+
Composite-Default:
36+
runs-on: ubuntu-latest
37+
38+
steps:
39+
40+
- uses: antmicro/f4pga-arch-defs/composite@umarcor/runner/mwes
41+
42+
43+
# Supported on actions/runner but not on antmicro/runner
44+
45+
# Local Composite Actions
46+
47+
CompositeLocal-Custom:
48+
container: ubuntu:bionic
49+
runs-on:
50+
- self-hosted
51+
- Linux
52+
- X64
53+
54+
env:
55+
MAX_CORES: 80
56+
GHA_EXTERNAL_DISK: "tools"
57+
GHA_SA: "gh-sa-f4pga-arch-defs-ci"
58+
59+
steps:
60+
61+
- uses: actions/checkout@v3
62+
- uses: ./composite
63+
64+
CompositeLocal-Default:
65+
runs-on: ubuntu-latest
66+
67+
steps:
68+
69+
- uses: actions/checkout@v3
70+
- uses: ./composite
71+
72+
# Action actions/setup-python
73+
74+
SetupPython-Custom:
75+
container: ubuntu:bionic
76+
runs-on:
77+
- self-hosted
78+
- Linux
79+
- X64
80+
81+
env:
82+
MAX_CORES: 80
83+
GHA_EXTERNAL_DISK: "tools"
84+
GHA_SA: "gh-sa-f4pga-arch-defs-ci"
85+
86+
steps:
87+
88+
- name: '🐍 Setup Python'
89+
uses: actions/setup-python@v2
90+
with:
91+
python-version: '3.10'
92+
93+
SetupPython-Default:
94+
runs-on: ubuntu-latest
95+
96+
steps:
97+
98+
- name: '🐍 Setup Python'
99+
uses: actions/setup-python@v2
100+
with:
101+
python-version: '3.10'
102+
103+
# Docker steps
104+
105+
DockerStep-Custom:
106+
container: ubuntu:bionic
107+
runs-on:
108+
- self-hosted
109+
- Linux
110+
- X64
111+
112+
env:
113+
MAX_CORES: 80
114+
GHA_EXTERNAL_DISK: "tools"
115+
GHA_SA: "gh-sa-f4pga-arch-defs-ci"
116+
117+
steps:
118+
119+
- uses: docker://debian:bullseye-slim
120+
with:
121+
args: echo 'Hello world!'
122+
123+
DockerStep-Default:
124+
runs-on: ubuntu-latest
125+
126+
steps:
127+
128+
- uses: docker://debian:bullseye-slim
129+
with:
130+
args: echo 'Hello world!'
131+
132+
# Execute `docker` commands
133+
134+
DockerManual-Custom:
135+
container: ubuntu:bionic
136+
runs-on:
137+
- self-hosted
138+
- Linux
139+
- X64
140+
141+
env:
142+
MAX_CORES: 80
143+
GHA_EXTERNAL_DISK: "tools"
144+
GHA_SA: "gh-sa-f4pga-arch-defs-ci"
145+
146+
steps:
147+
148+
- run: docker pull debian:bullseye-slim
149+
150+
DockerManual-Default:
151+
runs-on: ubuntu-latest
152+
153+
steps:
154+
155+
- run: docker pull debian:bullseye-slim
156+
157+
158+
159+
160+

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)