diff --git a/.github/workflows/CustomRunnerMWEs.yml b/.github/workflows/CustomRunnerMWEs.yml new file mode 100644 index 0000000000..d24f029ffb --- /dev/null +++ b/.github/workflows/CustomRunnerMWEs.yml @@ -0,0 +1,160 @@ +# 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 + + 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 + + Composite-Default: + runs-on: ubuntu-latest + + steps: + + - uses: antmicro/f4pga-arch-defs/composite@umarcor/runner/mwes + + +# Supported on actions/runner but not on antmicro/runner + + # Local Composite Actions + + 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 + + CompositeLocal-Default: + runs-on: ubuntu-latest + + steps: + + - uses: actions/checkout@v3 + - uses: ./composite + + # 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@v2 + with: + python-version: '3.10' + + SetupPython-Default: + runs-on: ubuntu-latest + + steps: + + - name: '🐍 Setup Python' + uses: actions/setup-python@v2 + 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 + + + + + diff --git a/composite/action.yml b/composite/action.yml new file mode 100644 index 0000000000..5925746203 --- /dev/null +++ b/composite/action.yml @@ -0,0 +1,8 @@ +name: 'Composite Action' +description: 'For testing purposes' +runs: + using: 'composite' + steps: + + - shell: bash + run: '''${{ github.action_path }}/script.sh''' diff --git a/composite/script.sh b/composite/script.sh new file mode 100755 index 0000000000..2f1a918b7a --- /dev/null +++ b/composite/script.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +echo "Hello world!"