Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MWEs to test features on the custom runners #2783

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
139 changes: 0 additions & 139 deletions .github/workflows/Automerge.yml

This file was deleted.

212 changes: 212 additions & 0 deletions .github/workflows/CustomRunnerMWEs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
# This workflow showcases feature differences between
# GitHub's default runner (actions/runner)
# and
# Antmicro's custom runner (antmicro/runner).

name: MWE custom vs default runner

on:
push:
pull_request:

jobs:


# Supported on both actions/runner and antmicro/runner

# Non-local Composite Actions

Supported-Composite-Custom:
container: ubuntu:bionic
runs-on:
- self-hosted
- Linux
- X64

env:
MAX_CORES: 80
GHA_EXTERNAL_DISK: "tools"
GHA_SA: "gh-sa-f4pga-arch-defs-ci"

steps:

- uses: antmicro/f4pga-arch-defs/composite@umarcor/runner/mwes

Supported-Composite-Default:
runs-on: ubuntu-latest

steps:

- uses: antmicro/f4pga-arch-defs/composite@umarcor/runner/mwes

# Actions inside Composite Actions

Supported-CompositeUses-Custom:
container: ubuntu:bionic
runs-on:
- self-hosted
- Linux
- X64

env:
MAX_CORES: 80
GHA_EXTERNAL_DISK: "tools"
GHA_SA: "gh-sa-f4pga-arch-defs-ci"

steps:

- uses: antmicro/f4pga-arch-defs/composite-uses@umarcor/runner/mwes

Supported-CompositeUses-Default:
runs-on: ubuntu-latest

steps:

- uses: antmicro/f4pga-arch-defs/composite-uses@umarcor/runner/mwes

# Local Composite Actions

Supported-CompositeLocal-Custom:
container: ubuntu:bionic
runs-on:
- self-hosted
- Linux
- X64

env:
MAX_CORES: 80
GHA_EXTERNAL_DISK: "tools"
GHA_SA: "gh-sa-f4pga-arch-defs-ci"

steps:

- uses: actions/checkout@v3
- uses: ./composite

Supported-CompositeLocal-Default:
runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v3
- uses: ./composite

# Conditional Action inside Composite Actions

Supported-CompositeIf-Custom:
container: ubuntu:bionic
runs-on:
- self-hosted
- Linux
- X64

env:
MAX_CORES: 80
GHA_EXTERNAL_DISK: "tools"
GHA_SA: "gh-sa-f4pga-arch-defs-ci"

steps:

- uses: actions/checkout@v3
- uses: ./composite-if

Supported-CompositeIf-Default:
runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v3
- uses: ./composite-if


# Supported on actions/runner but not on antmicro/runner

# Action actions/setup-python

SetupPython-Custom:
container: ubuntu:bionic
runs-on:
- self-hosted
- Linux
- X64

env:
MAX_CORES: 80
GHA_EXTERNAL_DISK: "tools"
GHA_SA: "gh-sa-f4pga-arch-defs-ci"

steps:

- name: '🐍 Setup Python'
uses: actions/setup-python@v4
with:
python-version: '3.10'

SetupPython-Default:
runs-on: ubuntu-latest

steps:

- name: '🐍 Setup Python'
uses: actions/setup-python@v4
with:
python-version: '3.10'

# Docker steps

DockerStep-Custom:
container: ubuntu:bionic
runs-on:
- self-hosted
- Linux
- X64

env:
MAX_CORES: 80
GHA_EXTERNAL_DISK: "tools"
GHA_SA: "gh-sa-f4pga-arch-defs-ci"

steps:

- uses: docker://debian:bullseye-slim
with:
args: echo 'Hello world!'

DockerStep-Default:
runs-on: ubuntu-latest

steps:

- uses: docker://debian:bullseye-slim
with:
args: echo 'Hello world!'

# Execute `docker` commands

DockerManual-Custom:
container: ubuntu:bionic
runs-on:
- self-hosted
- Linux
- X64

env:
MAX_CORES: 80
GHA_EXTERNAL_DISK: "tools"
GHA_SA: "gh-sa-f4pga-arch-defs-ci"

steps:

- run: docker pull debian:bullseye-slim

DockerManual-Default:
runs-on: ubuntu-latest

steps:

- run: docker pull debian:bullseye-slim





Loading