From cc5d3874e9f8eb1f7decc3d885a722de5c7f4407 Mon Sep 17 00:00:00 2001 From: HawkCorrigan Date: Thu, 9 Jan 2025 21:55:05 +0100 Subject: [PATCH] [ele][CI] try this again with bash --- .github/workflows/main.yml | 1 - generate_apl_modules_ci.sh | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9e1eb430872..cc98fe80c0e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -548,7 +548,6 @@ jobs: UBSAN_OPTIONS: print_stacktrace=1 SIMC_CLI_PATH: ${{ runner.workspace }}/b/ninja/simc run: ${{ github.workspace }}/generate_apl_modules_ci.sh - shell: sh - name: Commit code-generated APLs continue-on-error: true diff --git a/generate_apl_modules_ci.sh b/generate_apl_modules_ci.sh index 8a15c37b474..517fe5ed6a1 100755 --- a/generate_apl_modules_ci.sh +++ b/generate_apl_modules_ci.sh @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/bash + set -e alias py=python3 @@ -10,11 +11,10 @@ if [ "$(pwd)" != "${ROOT}" ]; then exit 1 fi -classes_to_generate=( - shaman -) +classes_to_generate=( shaman ) -for class in $classes_to_generate; do +for class in "${classes_to_generate[@]}" +do pushd "engine/class_modules/apl/${class}" ./generate_${class}.sh popd