From e65512e5731abde8abe61135e906068a5c2b5da7 Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Wed, 17 Aug 2022 23:48:43 +0200 Subject: [PATCH] MWE combine workflows --- .github/workflows/CustomRunnerMWEs.yml | 144 +++++++++++++++++++++++++ .github/workflows/composite-local.yml | 32 ------ .github/workflows/composite.yml | 32 ------ .github/workflows/docker-manual.yml | 32 ------ .github/workflows/docker-step.yml | 36 ------- .github/workflows/setup-python.yml | 38 ------- 6 files changed, 144 insertions(+), 170 deletions(-) create mode 100644 .github/workflows/CustomRunnerMWEs.yml delete mode 100644 .github/workflows/composite-local.yml delete mode 100644 .github/workflows/composite.yml delete mode 100644 .github/workflows/docker-manual.yml delete mode 100644 .github/workflows/docker-step.yml delete mode 100644 .github/workflows/setup-python.yml diff --git a/.github/workflows/CustomRunnerMWEs.yml b/.github/workflows/CustomRunnerMWEs.yml new file mode 100644 index 0000000000..8235ac6247 --- /dev/null +++ b/.github/workflows/CustomRunnerMWEs.yml @@ -0,0 +1,144 @@ +name: MWE custom vs default runner + +on: + push: + pull_request: + +jobs: + + + 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' + + + 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!' + + + 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 + + + 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 + + + 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 diff --git a/.github/workflows/composite-local.yml b/.github/workflows/composite-local.yml deleted file mode 100644 index 1c258e87af..0000000000 --- a/.github/workflows/composite-local.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: MWE composite local - -on: - push: - pull_request: - -jobs: - - - 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: ./composite - - - Default: - runs-on: ubuntu-latest - - steps: - - - uses: ./composite diff --git a/.github/workflows/composite.yml b/.github/workflows/composite.yml deleted file mode 100644 index d324f3aa90..0000000000 --- a/.github/workflows/composite.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: MWE composite - -on: - push: - pull_request: - -jobs: - - - 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 - - - Default: - runs-on: ubuntu-latest - - steps: - - - uses: antmicro/f4pga-arch-defs/composite@umarcor/runner/mwes diff --git a/.github/workflows/docker-manual.yml b/.github/workflows/docker-manual.yml deleted file mode 100644 index cb14b767ff..0000000000 --- a/.github/workflows/docker-manual.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: MWE docker manual - -on: - push: - pull_request: - -jobs: - - - 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 - - - Default: - runs-on: ubuntu-latest - - steps: - - - run: docker pull debian:bullseye-slim diff --git a/.github/workflows/docker-step.yml b/.github/workflows/docker-step.yml deleted file mode 100644 index 2c54137c43..0000000000 --- a/.github/workflows/docker-step.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: MWE docker step - -on: - push: - pull_request: - -jobs: - - - 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!' - - - Default: - runs-on: ubuntu-latest - - steps: - - - uses: docker://debian:bullseye-slim - with: - args: echo 'Hello world!' diff --git a/.github/workflows/setup-python.yml b/.github/workflows/setup-python.yml deleted file mode 100644 index 278c5e30ae..0000000000 --- a/.github/workflows/setup-python.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: MWE setup-python - -on: - push: - pull_request: - -jobs: - - - 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' - - - Default: - runs-on: ubuntu-latest - - steps: - - - name: '🐍 Setup Python' - uses: actions/setup-python@v2 - with: - python-version: '3.10'