-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
240 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,211 @@ | ||
# 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 | ||
|
||
# Supported on actions/runner but not on antmicro/runner | ||
|
||
# Conditional Action inside Composite Actions | ||
|
||
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 | ||
|
||
CompositeIf-Default: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
- uses: ./composite-if | ||
|
||
# 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 | ||
|
||
|
||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: 'Conditional Action inside Composite Action' | ||
description: 'For testing purposes' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- if: ${{ always() }} | ||
shell: bash | ||
run: echo 'Test' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: 'Action inside Composite Action' | ||
description: 'For testing purposes' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
|
||
- uses: actions/checkout@v3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: 'Composite Action' | ||
description: 'For testing purposes' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
|
||
- shell: bash | ||
run: '''${{ github.action_path }}/script.sh''' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "Hello world!" |