diff --git a/.github/workflows/test_all_workers.yaml b/.github/workflows/test_all_workers.yaml index 31091c98e..6f7526ffa 100644 --- a/.github/workflows/test_all_workers.yaml +++ b/.github/workflows/test_all_workers.yaml @@ -4,18 +4,103 @@ on: [workflow_dispatch] jobs: HP-DL360G6-1: - name: "HP-DL360G6-1 build" + name: "HP-DL360G6-1" runs-on: [HP-DL360G6-1] timeout-minutes: 10 - steps: - name: Set up repository uses: actions/checkout@v2 - with: - # Number of commits to fetch. `0` indicates all history for all - # branches and tags. (default: 1) - fetch-depth: 0 - + - name: Check the system + run: | + ./tools/check-build-system + HP-DL360G6-2: + name: "HP-DL360G6-2" + runs-on: [HP-DL360G6-2] + timeout-minutes: 10 + steps: + - name: Set up repository + uses: actions/checkout@v2 + - name: Check the system + run: | + ./tools/check-build-system + HP-DL360G6-3: + name: "HP-DL360G6-3" + runs-on: [HP-DL360G6-3] + timeout-minutes: 10 + steps: + - name: Set up repository + uses: actions/checkout@v2 + - name: Check the system + run: | + ./tools/check-build-system + + HP-DL360G6-v2-1: + name: "HP-DL360G6-v2-1" + runs-on: [HP-DL360G6-v2-1] + timeout-minutes: 10 + steps: + - name: Set up repository + uses: actions/checkout@v2 + - name: Check the system + run: | + ./tools/check-build-system + HP-DL360G6-v2-2: + name: "HP-DL360G6-v2-2" + runs-on: [HP-DL360G6-v2-2] + timeout-minutes: 10 + steps: + - name: Set up repository + uses: actions/checkout@v2 + - name: Check the system + run: | + ./tools/check-build-system + HP-DL360G6-v2-3: + name: "HP-DL360G6-v2-3" + runs-on: [HP-DL360G6-v2-3] + timeout-minutes: 10 + steps: + - name: Set up repository + uses: actions/checkout@v2 + - name: Check the system + run: | + ./tools/check-build-system + HP-DL360G6-v2-4: + name: "HP-DL360G6-v2-4" + runs-on: [HP-DL360G6-v2-4] + timeout-minutes: 10 + steps: + - name: Set up repository + uses: actions/checkout@v2 + - name: Check the system + run: | + ./tools/check-build-system + HP-DL360G6-v2-5: + name: "HP-DL360G6-v2-5" + runs-on: [HP-DL360G6-v2-5] + timeout-minutes: 10 + steps: + - name: Set up repository + uses: actions/checkout@v2 + - name: Check the system + run: | + ./tools/check-build-system + HP-DL360G6-v2-6: + name: "HP-DL360G6-v2-6" + runs-on: [HP-DL360G6-v2-6] + timeout-minutes: 10 + steps: + - name: Set up repository + uses: actions/checkout@v2 + - name: Check the system + run: | + ./tools/check-build-system + HP-DL360G6-v2-7: + name: "HP-DL360G6-v2-7" + runs-on: [HP-DL360G6-v2-7] + timeout-minutes: 10 + steps: + - name: Set up repository + uses: actions/checkout@v2 - name: Check the system run: | ./tools/check-build-system diff --git a/tools/check-build-system b/tools/check-build-system index 6c9d95d20..e72c34043 100755 --- a/tools/check-build-system +++ b/tools/check-build-system @@ -1,19 +1,26 @@ #!/bin/bash -e tools=( - go - dotnet - npm - node - java - javac - mono - mcs - virtualenv + go + dotnet + npm + node + java + javac + mono + mcs + virtualenv ) -for tool in ${tools[@]}; do - if ! which $tool >/dev/null; then - echo "$tool not installed!" - fi -done; +is_ok=true +for tool in "${tools[@]}"; do + if ! which "$tool" >/dev/null; then + is_ok=false + echo "$tool not installed!" + fi +done +if [ "$is_ok" = true ]; then + exit 0 +else + exit 1 +fi